How to create .a library of c++ headers for wasm? #3857
Unanswered
riajain0412
asked this question in
Q&A
Replies: 3 comments 5 replies
|
Build For examples, see https://github.com/unicode-org/icu4x/tree/main/ffi/diplomat/js/examples |
5 replies
|
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. |
0 replies
Yeah right, I wrote it by mistake. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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?All reactions