Closed hsfzxjy closed 4 months ago
LGTM. The wasm-bindgen was activated by default since it is impossible to set feature flags with wasm-pack-plugin, which is required by the web app. Now I am kind of not sure whether it is good to leave such feature enabled by default.
Thanks!
Currently
zhconv-rs
forcibly adds#[wasm_bindgen]
to its public functions whentarget = wasm
, leading to that these functions always appear in the generated binary, which is not desired whenzhconv-rs
is used as an dependency for a wasm program. This PR adds a feature to disable such behavior.