Some checks failed
CI / Linux x86_64 (Forgejo) (push) Failing after 2s
Signed-off-by: flemming-it <sf@flemming.it>
51 lines
1.4 KiB
TOML
51 lines
1.4 KiB
TOML
# Standalone Cargo.toml — targets wasm32-wasip2.
|
|
#
|
|
# Build with:
|
|
# cargo build --release --target wasm32-wasip2
|
|
|
|
[package]
|
|
name = "text_extract"
|
|
version = "0.1.5"
|
|
edition = "2024"
|
|
authors = ["Dr. Stefan Flemming <chain@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/chain-modules/text-extract"
|
|
rust-version = "1.85"
|
|
|
|
[lib]
|
|
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"] }
|
|
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.
|