Add pdftract-libpdftract as 4th workspace member with dual crate-type configuration (cdylib + staticlib) for C/C++ SDK flexibility. Changes: - Create crates/pdftract-libpdftract/Cargo.toml with cdylib+staticlib - Create crates/pdftract-libpdftract/src/lib.rs scaffold - Update root Cargo.toml workspace.members - Configure [lib] name="pdftract" for correct artifact naming Artifacts produced: - target/debug/libpdftract.so (shared, cdylib) - target/debug/libpdftract.a (static, staticlib) Acceptance criteria: - PASS: cargo build -p pdftract-libpdftract produces libpdftract.so/.a - PASS: Workspace cargo build builds all 4 crates without regression - PASS: cargo metadata shows pdftract-libpdftract in workspace members - PASS: nm -D shows no exported symbols (empty API scaffold) References: pdftract-uyhq7, Phase SDK epic Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
26 lines
754 B
TOML
26 lines
754 B
TOML
[workspace]
|
|
resolver = "2"
|
|
members = ["crates/pdftract-core", "crates/pdftract-cli", "crates/pdftract-py", "crates/pdftract-libpdftract"]
|
|
exclude = ["tests/fixtures/generate_lzw_fixtures.rs"]
|
|
|
|
[workspace.package]
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
rust-version = "1.78"
|
|
license = "MIT OR Apache-2.0"
|
|
repository = "https://github.com/jedarden/pdftract"
|
|
authors = ["Jedarden <bot@ardenone.com>"]
|
|
homepage = "https://github.com/jedarden/pdftract"
|
|
documentation = "https://docs.rs/pdftract-core"
|
|
|
|
[workspace.dependencies]
|
|
# Dependencies shared across workspace crates
|
|
anyhow = "1.0"
|
|
flate2 = "1.0"
|
|
lzw = "0.10"
|
|
memchr = "2.7"
|
|
secrecy = "0.10"
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
thiserror = "1.0"
|
|
tracing = "0.1"
|
|
unicode-normalization = "0.1"
|