返回 CodeWhale
Cargo.toml
根目录 / crates / runtime / Cargo.toml
1 [package]
2 name = "codewhale-runtime"
3 version.workspace = true
4 edition.workspace = true
5 rust-version.workspace = true
6 license.workspace = true
7 repository.workspace = true
8 description = "Headless Codewhale runtime, split out of the terminal UI one module at a time; no terminal UI dependency"
9
10 [lints]
11 workspace = true
12
13 # Test helpers (process-global state guards, snapshots, diff renders) that
14 # the TUI's tests use. It adds `pub` items, and the side-effect trap that
15 # counts external credential reads; it also exposes the existing shared test fixtures.
16 # The TUI enables it from [dev-dependencies] only, so `-p codewhale-cli` /
17 # `-p codewhale-tui` release builds never see it; a `--workspace
18 # --all-features` build does, which is harmless for helpers.
19 #
20 # `test-thread-scoped-state` is the one behavior switch: it makes the retry
21 # banner, provider-wide `Retry-After` pause, and configuration state paths
22 # use the existing sealed test scope. It takes
23 # effect only with debug assertions, so no optimized build ever carries it,
24 # even under `--all-features`.
25 [features]
26 test-support = ["dep:ring"]
27 test-thread-scoped-state = ["test-support"]
28
29 [lib]
30 name = "codewhale_runtime"
31 path = "src/lib.rs"
32
33 # This crate must never depend on codewhale-tui, codewhale-cli, ratatui,
34 # crossterm, ansi-to-tui or a terminal component kit.
35 # scripts/check-command-crate-boundaries.py enforces that with `cargo tree -p`.
36 [dependencies]
37 base64 = "0.23.1"
38 codewhale-cloud-facts = { path = "../cloud-facts", version = "0.10.5" }
39 codewhale-localization = { path = "../localization", version = "0.10.5" }
40 codewhale-protocol = { path = "../protocol", version = "0.10.5" }
41 codewhale-util = { path = "../util", version = "0.10.5" }
42 codewhale-release = { path = "../release", version = "0.10.5" }
43 codewhale-paths = { path = "../paths", version = "0.10.5" }
44 dirs.workspace = true
45 jsonwebtoken = { version = "11", default-features = false, features = ["aws_lc_rs"] }
46 parking_lot = "0.12"
47 reqwest = { workspace = true, features = ["blocking", "stream", "form", "http2"] }
48 ring = { version = "0.17", optional = true }
49 shellexpand = "3"
50 toml_edit.workspace = true
51 ahash = "0.8"
52 anyhow.workspace = true
53 chrono.workspace = true
54 codewhale-command-contract = { path = "../command-contract", version = "0.10.5" }
55 codewhale-config = { path = "../config", version = "0.10.5" }
56 codewhale-error-taxonomy = { path = "../error-taxonomy", version = "0.10.5" }
57 codewhale-core = { path = "../core", version = "0.10.5" }
58 codewhale-execpolicy = { path = "../execpolicy", version = "0.10.5" }
59 codewhale-lane = { path = "../lane", version = "0.10.5" }
60 codewhale-memory = { path = "../memory", version = "0.10.5" }
61 codewhale-models = { path = "../models", version = "0.10.5" }
62 codewhale-palette = { path = "../palette", version = "0.10.5", default-features = false }
63 codewhale-sanitize = { path = "../sanitize", version = "0.10.5" }
64 codewhale-secrets = { path = "../secrets", version = "0.10.5" }
65 colored = "3.0.0"
66 fd-lock = "4.0.4"
67 ignore = "0.4"
68 lru = "0.19"
69 regex = "1.11"
70 serde = { workspace = true, features = ["rc"] }
71 serde_json = { workspace = true, features = ["preserve_order", "raw_value"] }
72 sha2.workspace = true
73 tempfile.workspace = true
74 thiserror.workspace = true
75 tokio.workspace = true
76 tokio-util = { version = "0.7.16", features = ["io"] }
77 toml.workspace = true
78 tracing.workspace = true
79 tracing-subscriber.workspace = true
80 uuid = { workspace = true, features = ["serde"] }
81 wait-timeout = "0.2"
82
83 [dev-dependencies]
84 ring = "0.17"
85 wiremock = "0.6"
86 codewhale-models = { path = "../models", version = "0.10.5", features = [
87 "test-support",
88 ] }
89 tempfile.workspace = true
90
91 [target.'cfg(unix)'.dependencies]
92 libc = "0.2"
93
94 [target.'cfg(windows)'.dependencies]
95 windows-sys = { version = "0.61.2", features = ["Win32_Foundation", "Win32_Security", "Win32_Security_Authorization", "Win32_Storage_FileSystem", "Win32_System_Threading"] }
96 windows = { version = "0.62", features = ["Win32_Foundation", "Win32_Security", "Win32_System_Console", "Win32_System_Diagnostics_ToolHelp", "Win32_System_Environment", "Win32_System_JobObjects", "Win32_System_Registry", "Win32_System_Threading"] }
97
98 [target.'cfg(not(target_env = "ohos"))'.dependencies]
99 portable-pty = "0.9"
100
101 [target.'cfg(all(target_os = "windows", target_arch = "x86_64"))'.dependencies]
102 # JWT verification uses upstream assembly objects when NASM is unavailable.
103 aws-lc-rs = { version = "1.18.1", default-features = false, features = ["prebuilt-nasm"] }
104
104 lines TOML