How to create .a library of c++ headers for wasm? #3857
Replies: 3 comments 5 replies
-
Build For examples, see https://github.com/unicode-org/icu4x/tree/main/ffi/diplomat/js/examples |
Beta Was this translation helpful? Give feedback.
-
If you want to use it directly from JS, @sffc's answer is correct. If you want to use it from C++ but your C++ application is being built to wasm, use the emscripten target instead. See https://github.com/unicode-org/icu4x/tree/main/ffi/diplomat/cpp/examples/fixeddecimal_wasm for an example. |
Beta Was this translation helpful? Give feedback.
-
Yeah right, I wrote it by mistake. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
For using ICU4X in c++, we can build .a library with the following command
cargo build -p icu_capi_staticlib --all-features
. I want to build ICU4X for wasm so how can I create this static library for wasm?Beta Was this translation helpful? Give feedback.
All reactions