From 32bb13aef93e3a50db37e6ccf54adb23915b308a Mon Sep 17 00:00:00 2001 From: "Shane F. Carr" Date: Tue, 10 Oct 2023 14:42:49 -0700 Subject: [PATCH] Add comment about features --- ffi/capi/js/examples/tinywasm/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ffi/capi/js/examples/tinywasm/Makefile b/ffi/capi/js/examples/tinywasm/Makefile index 24586e39203..81c67e4581f 100755 --- a/ffi/capi/js/examples/tinywasm/Makefile +++ b/ffi/capi/js/examples/tinywasm/Makefile @@ -26,6 +26,8 @@ target/wasm32-unknown-unknown/release/icu_capi_cdylib.wasm: FORCE rustup toolchain install ${ICU4X_NIGHTLY_TOOLCHAIN} rustup component add rust-src --toolchain ${ICU4X_NIGHTLY_TOOLCHAIN} # Build the WASM library + # NOTE: the --features below only work within the workspace. Outside of the workspace, you should + # create your own cdylib crate that depends on icu_capi and enables the features you need. RUSTFLAGS="-Cpanic=abort -Copt-level=s -C link-arg=-zstack-size=${WASM_STACK_SIZE} -Clinker-plugin-lto -Ccodegen-units=1 -C linker=${BASEDIR}/ld.py -C linker-flavor=wasm-ld" \ CARGO_TARGET_DIR="target" `# Special linker flags shouldn't overwrite the top-level target directory` \ cargo +${ICU4X_NIGHTLY_TOOLCHAIN} build \