# Standalone Cargo.toml — targets wasm32-wasip2. # # Build with: # cargo build --release --target wasm32-wasip2 [package] name = "law_source_bund" version = "0.1.0" edition = "2024" authors = ["Dr. Stefan Flemming "] license = "Apache-2.0" publish = false description = "F∆I module — fetch German federal law from gesetze-im-internet.de by slug (BMJ XML, content-addressed)" repository = "https://git.flemming.ai/chain-modules/law-source-bund" rust-version = "1.85" [lib] 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" sha2 = "0.10" # gesetze-im-internet serves each norm as an xml.zip archive. # Pure-Rust deflate only — same restricted feature set text-extract # uses (deflate64/bzip2/zstd stay out of the WASM build). zip = { version = "2", default-features = false, features = ["deflate"] } # WASI-0.2 HTTP client — same one http-request / law-source-eurlex use. # Only compiled into the wasm32-wasip2 build. [target.'cfg(target_arch = "wasm32")'.dependencies] waki = "0.5" [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 workspace table so this package is NOT picked up by a parent.