Fix two compilation errors at lines 584 and 658 where code was calling .code on &String diagnostics. Replaced d.code.to_string() with direct Vec<String> clone since diagnostics is already Vec<String>. Accepts criteria: - cargo check -p pdftract-cli emits no 'no field code' errors - serve.rs compiles cleanly
42 lines
775 B
TOML
42 lines
775 B
TOML
[workspace]
|
|
|
|
[package]
|
|
name = "xtask"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
license = "MIT OR Apache-2.0"
|
|
publish = false
|
|
|
|
[[bin]]
|
|
name = "xtask"
|
|
path = "src/main.rs"
|
|
|
|
[[bin]]
|
|
name = "gen_schema"
|
|
path = "src/bin/gen_schema.rs"
|
|
|
|
[[bin]]
|
|
name = "gen_cli_reference"
|
|
path = "src/bin/gen_cli_reference.rs"
|
|
|
|
[[bin]]
|
|
name = "migrate_schema"
|
|
path = "src/bin/migrate_schema.rs"
|
|
|
|
[lib]
|
|
name = "pdftract_schema_migrate"
|
|
path = "src/lib.rs"
|
|
|
|
[dependencies]
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
serde_json = "1.0"
|
|
serde_yaml = "0.9"
|
|
glob = "0.3"
|
|
humantime = "2.1"
|
|
lopdf = "0.34"
|
|
schemars = "1.2"
|
|
pdftract-core = { path = "../crates/pdftract-core", features = ["schemars"] }
|
|
fontdue = "0.9"
|
|
clap = { version = "4.5", features = ["derive"] }
|
|
clap-markdown = "0.1"
|
|
anyhow = "1.0"
|