642d5a256791
Cargo.toml
[package]
name = "craft-anything-platform"
description = "Native platform services for Craft Anything: owned processes, capture, sandbox, engine store"
version.workspace = true
edition.workspace = true
license.workspace = true
publish = false
[lints]
workspace = true
[dependencies]
craft-anything-evidence = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
log = { workspace = true }
sha2 = { workspace = true }
hex = { workspace = true }
process-wrap = { version = "10", default-features = false, features = ["std", "process-group", "job-object", "kill-on-drop", "creation-flags"] }
# Process capture under a pseudo-terminal (safe public APIs; we write no unsafe).
portable-pty = "0.9"
vt100 = "0.16"
# Window screenshots of a running program (safe API). Windows and macOS only for now: on Linux it
# needs PipeWire, Wayland/GBM, XCB and clang to build (ROADMAP R2.4).
[target.'cfg(any(windows, target_os = "macos"))'.dependencies]
xcap = "0.9"
# Whether Screen Recording is allowed (a safe call; xcap uses the same crate).
[target.'cfg(target_os = "macos")'.dependencies]
objc2-core-graphics = "0.3"
[target.'cfg(unix)'.dependencies]
nix = { version = "0.31", default-features = false, features = ["signal", "process"] }
[target.'cfg(windows)'.dependencies]
# Only for the creation-flags type process-wrap takes (already in the tree through it).
windows = { version = "0.62", default-features = false, features = ["Win32_System_Threading"] }
[dev-dependencies]
tempfile = "3"
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.