pub fn setup_with(options: SetupOptions)Expand description
Configure the build of a napi-rs addon crate with explicit SetupOptions.
See setup for details on the build-script directives emitted.
For WASI builds, -zstack-size is resolved in the following priority order
(highest to lowest):
NAPI_WASI_STACK_SIZEenvironment variable (non-empty; an empty string""is treated as unset)napi.wasm.stackSizeBytesinpackage.json(forwarded by@napi-rs/cliasNAPI_WASI_STACK_SIZEwhen the environment variable is unset or empty)SetupOptions::wasi_stack_size(...)inbuild.rs- Default:
64_000_000bytes (~61.04 MiB)