Comments (2)
Some additional context. The repo linked in zulip has two components created using cargo-component
. One is called hello
, and just exposes a function that prepends a greeting string to an input name. This is imported by another component, big
, which takes the greeting with the input name, and capitalizes all of the characters in the string, exporting this logic in a function called big_greet
. The component linked in this issue is the result of using wasmbuilder to try and compose the components. The error message occurs when trying to use jco transpile
on the result component.
panicked at 'not implemented', crates/js-component-bindgen/src/bindgen.rs:1029:49
(jsct transpile) RuntimeError: unreachable
at __rust_start_panic (wasm://wasm/0122631e:wasm-function[3490]:0x1fdc92)
at rust_panic (wasm://wasm/0122631e:wasm-function[3486]:0x1fdc3f)
at _ZN3std9panicking20rust_panic_with_hook17h1e5f3993ce22fe2aE (wasm://wasm/0122631e:wasm-function[3485]:0x1fdc0f)
at _ZN3std9panicking19begin_panic_handler28_$u7b$$u7b$closure$u7d$$u7d$17h757395b3caa1a881E (wasm://wasm/0122631e:wasm-function[3471]:0x1fcbd6)
at _ZN3std10sys_common9backtrace26__rust_end_short_backtrace17h3e911ea98537fbdbE (wasm://wasm/0122631e:wasm-function[3470]:0x1fcb38)
at rust_begin_unwind (wasm://wasm/0122631e:wasm-function[3480]:0x1fd866)
at _ZN4core9panicking9panic_fmt17he9c46855d60d636eE (wasm://wasm/0122631e:wasm-function[3604]:0x206c27)
at _ZN4core9panicking5panic17hf333278c14c20b5eE (wasm://wasm/0122631e:wasm-function[3610]:0x207190)
at _ZN20js_component_bindgen7bindgen9JsBindgen11instantiate17hfe4cbb5545331156E (wasm://wasm/0122631e:wasm-function[101]:0xf8e0)
at _ZN20js_component_bindgen9component8generate17h2fb6336405b47ca9E (wasm://wasm/0122631e:wasm-function[198]:0x280ae)
from jco.
I believe this is resolved with the transcoding support.
from jco.
Related Issues (20)
- plain enums are generating complex typescript HOT 8
- Question: `jco types` generating namespaces instead of modules? HOT 3
- Better instantiation workflows HOT 1
- Better errors when failing to parse a wit directory
- Compiled wasm crashes on Rust 1.78.0, but not on 1.77.2 HOT 8
- preview2-shims: remove all class state
- preview2-shims: investigating fetch setting accept-encoding header HOT 1
- Reinstate zero-copy encoding in next adapter upgrade
- Calling into a component that includes the println macro hangs HOT 5
- Still having issues with the env vars memory leak HOT 1
- How to use WASI functionality w/ `jco`? HOT 1
- [preview2-shim] OutgoingRequest.setAuthority rejects ports >9999
- Incorrect type annotations
- More incorrect typescript annotations HOT 3
- [preview2-shim] Consider giving guest no preopens by default HOT 3
- Wasm modules with shared memories are rejected even if they do not spawn threads HOT 3
- Wrong function type for `instantiate` with `InstantiationMode::Async` HOT 1
- Conversion between incomingHandler and request/response HOT 5
- Latest preview2 tests
- Update test cases HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jco.