text-anonymize-legal-de/Cargo.toml
flemming-it c07290c7a9
Some checks failed
CI / Linux x86_64 (Forgejo) (push) Failing after 1m15s
chore: pin chain-module-sdk v0.3.0 and switch to #[chain_module]
The pre-rename #[fai_module] attribute is gone in SDK 0.3.0; the
dependency is tag-pinned so an SDK push can no longer change what
this module builds against. Rebuilt artifact where tracked.

Signed-off-by: flemming-it <sf@flemming.it>
2026-07-12 13:52:36 +02:00

53 lines
1.3 KiB
TOML

# 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", tag = "v0.3.0" }
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.