mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-10-24 18:17:44 -06:00
New files from Combine, Extract, Split and Create, signed, timestamped and LTV-embedded files and the OCR batch output reopen with their pages before anyone writes them, as saves already did. The desktop app, the automation tools (with or without --root) and the CLI's edit, combine, extract and split write through pdfcraft_platform::staging::write_atomically, so a failed write or --out naming the input never leaves a half-written file. Special files such as /dev/stdout are still written as given. Claude-Session: https://claude.ai/code/session_01RUNQSPVXx3dDBabRZHAnjz Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com> Co-authored-by: Brandon Thomas <echelon@gmail.com>
38 lines
1.1 KiB
TOML
38 lines
1.1 KiB
TOML
[package]
|
|
name = "pdfcraft-cli"
|
|
description = "PdfCraft command-line tool: inspect, render and robustness-check PDFs"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
|
|
[[bin]]
|
|
name = "pdfcraft-cli"
|
|
path = "src/main.rs"
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dependencies]
|
|
pdfcraft-render = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
pdfcraft-engine = { workspace = true }
|
|
pdfcraft-audit = { workspace = true }
|
|
pdfcraft-cos = { workspace = true }
|
|
pdfcraft-automation = { workspace = true }
|
|
pdfcraft-platform = { workspace = true }
|
|
base64 = "0.22"
|
|
|
|
[target.'cfg(unix)'.dependencies]
|
|
# `geteuid` for `ui`'s control-file owner check: safe, so no `unsafe` libc call here.
|
|
# Already in Cargo.lock through the GUI crates.
|
|
rustix = { version = "1", features = ["process"] }
|
|
|
|
[build-dependencies]
|
|
# VERSIONINFO for pdfcraft-cli.exe; build.rs only uses it when targeting Windows.
|
|
winresource = "0.1"
|
|
|
|
[features]
|
|
default = ["mcp"]
|
|
# The opt-in MCP server (`pdfcraft-cli mcp`). Build with --no-default-features to leave it out.
|
|
mcp = ["pdfcraft-automation/mcp"]
|