text-extract/Cargo.toml
flemming-it 6e35e5a797
All checks were successful
CI / Linux x86_64 (Forgejo) (push) Successful in 2s
ci: bisect step 1 — own checkout via external URL only
Bumps 0.1.2 -> 0.1.3.

Signed-off-by: flemming-it <sf@flemming.it>
2026-05-01 18:05:25 +02:00

51 lines
1.3 KiB
TOML

# Standalone Cargo.toml — targets wasm32-wasip2.
#
# Build with:
# cargo build --release --target wasm32-wasip2
[package]
name = "text_extract"
version = "0.1.3"
edition = "2024"
authors = ["Dr. Stefan Flemming <platform@flemming.ai>"]
license = "Apache-2.0"
publish = false
description = "F∆I module — extract plain text from PDF and DOCX documents"
repository = "https://git.flemming.ws/fai-modules/text-extract"
rust-version = "1.85"
[lib]
crate-type = ["cdylib", "rlib"]
[dependencies]
fai-module-sdk = { path = "../../module_sdk/crates/fai-module-sdk" }
serde = { version = "1", features = ["derive"] }
pdf-extract = "0.7"
zip = { version = "2", default-features = false, features = ["deflate"] }
quick-xml = "0.36"
[dev-dependencies]
serde_json = "1"
# Restricted features: deflate64 (a default feature of zip 2.x)
# requires the unstable `unbounded_shifts` library feature.
# We only need DEFLATE for round-tripping a minimal DOCX in tests.
zip = { version = "2", default-features = false, features = ["deflate"] }
[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.