856f865cf98d
Cargo.toml
[package]
name = "photocraft-cli"
description = "Headless PhotoCraft: convert, inspect, run commands, batch, MCP server"
version.workspace = true
edition.workspace = true
license.workspace = true
build = "build.rs"
[features]
default = ["gpu"]
# Open HEIC/HEIF photos (the optional craft-heif crate). Not default so distributors choose
# it; official builds (CI, packaging/, release) build with `--features heif`.
heif = ["photocraft-codecs/heif"]
# Optional native GPU rendering backend, enabled by default in native CLI builds.
gpu = ["photocraft-automation/gpu"]
[lints]
workspace = true
[lib]
name = "photocraft_cli"
path = "src/lib.rs"
[[bin]]
name = "photocraft-cli"
path = "src/main.rs"
[[example]]
name = "gpu_bench"
required-features = ["gpu"]
[dependencies]
photocraft-automation = { path = "../../crates/automation" }
# The suite's AI-MCP flag (`craft::automation::agents::mcp_flag`): `mcp` reaches the open window only with it.
craft = { workspace = true, features = ["automation-agents"] }
photocraft-doc = { workspace = true }
photocraft-engine = { workspace = true }
photocraft-io = { workspace = true, features = ["pdf-editable"] }
photocraft-raster = { workspace = true }
photocraft-format = { path = "../../crates/format" }
photocraft-codecs = { workspace = true }
clap = { workspace = true }
serde_json = { workspace = true }
thiserror = { workspace = true }
tokio = { version = "1", features = ["rt-multi-thread", "macros"] }
[dev-dependencies]
serde = { workspace = true }
tempfile = "3"
# Reading back a saved PSD's merged-image flag (#8064).
craft-psd = { workspace = true }
# A real ICC profile for the --metadata test (#9466).
craft-cms = { workspace = true }
# Synthetic camera raws (#7789).
photocraft-raw = { workspace = true, features = ["testgen"] }
# Shell completions and man pages (examples/man-and-completions.rs, for the packages); not in
# the binary.
clap_complete = { workspace = true }
clap_mangen = { workspace = true }
# The PSD write recipe runner (tests/it/psd_write_oracle.rs).
xtask = { path = "../../xtask" }
[build-dependencies]
# Icon + VERSIONINFO for photocraft-cli.exe; build.rs only uses it when targeting Windows.
winresource = "0.1"
No file is open. Choose one in the tree, or press Ctrl+O (⌘O on a Mac) to find one by name.
Syntax highlighting could not load. The unmodified read-only text remains available above.