# Standalone Cargo.toml — targets wasm32-wasip2. # # Build: # cargo build --release --target wasm32-wasip2 # # Local link-install into the running hub: # fai install --link $(pwd) [package] name = "text_anonymize_legal_de" version = "0.1.0" edition = "2024" license = "UNLICENSED" publish = false description = "F∆I module providing text.anonymize.legal-de — bridge to the judge-ner host service (JuraNER anonymization of German legal texts)" [lib] # cdylib for the wasm artifact, rlib so unit tests can link the # request/response mapping on the host. crate-type = ["cdylib", "rlib"] [dependencies] chain-module-sdk = { git = "https://git.flemming.ai/fai/chain-module-sdk-rust.git", branch = "main" } serde = { version = "1", features = ["derive"] } serde_json = "1" base64 = "0.22" thiserror = "2" # WASI-0.2 HTTP client. Only compiled into the wasm32-wasip2 build. [target.'cfg(target_arch = "wasm32")'.dependencies] waki = "0.5" [dev-dependencies] serde_json = "1" [profile.release] opt-level = "s" lto = true codegen-units = 1 strip = "symbols" [lints.rust] unsafe_op_in_unsafe_fn = "warn" [lints.clippy] unwrap_used = "deny" expect_used = "deny" panic = "deny" print_stdout = "deny" print_stderr = "deny" [workspace] # Empty so this package is NOT picked up by a parent.