2026-07-16 06:46:02 +01:00
|
|
|
[package]
|
|
|
|
|
license = "Apache-2.0"
|
|
|
|
|
name = "xai-grok-shell-base"
|
|
|
|
|
version = "0.1.0"
|
|
|
|
|
edition.workspace = true
|
|
|
|
|
description = "Foundation modules for the grok shell crate family: environment presets, CPU profiling, and process/filesystem utilities."
|
|
|
|
|
|
|
|
|
|
[features]
|
2026-07-16 20:27:30 +01:00
|
|
|
# Exposes `#[cfg(test)]`-only helpers (`env::EnvVarGuard`,
|
|
|
|
|
# `cpu_profile` test seams) to downstream crates' test targets. Enabled by
|
|
|
|
|
test-support = ["xai-grok-env/test-support"]
|
|
|
|
|
default-bazel = ["test-support"]
|
2026-07-16 06:46:02 +01:00
|
|
|
|
|
|
|
|
[dependencies]
|
|
|
|
|
anyhow = { workspace = true }
|
|
|
|
|
chrono = { workspace = true }
|
|
|
|
|
reqwest = { workspace = true, features = ["blocking"] }
|
|
|
|
|
serde = { workspace = true }
|
|
|
|
|
serde_json = { workspace = true }
|
|
|
|
|
thiserror = { workspace = true }
|
|
|
|
|
tokio = { workspace = true, features = ["sync"] }
|
|
|
|
|
tracing = { workspace = true }
|
|
|
|
|
url = { workspace = true }
|
|
|
|
|
xai-grok-config = { workspace = true }
|
|
|
|
|
xai-grok-env = { workspace = true }
|
|
|
|
|
xai-grok-shared = { workspace = true }
|
|
|
|
|
xai-grok-version = { workspace = true }
|
|
|
|
|
xai-tty-utils = { workspace = true }
|
|
|
|
|
|
|
|
|
|
[target.'cfg(unix)'.dependencies]
|
|
|
|
|
libc = { workspace = true }
|
|
|
|
|
nix = { workspace = true }
|
|
|
|
|
# No `flamegraph` feature: that pulls in inferno (CDDL-1.0), which we keep out
|
|
|
|
|
# of shipped binaries. stop() emits folded stacks via pprof's public Report
|
|
|
|
|
# API instead; render externally with speedscope or inferno-flamegraph.
|
|
|
|
|
pprof = { workspace = true }
|
|
|
|
|
|
|
|
|
|
[target.'cfg(windows)'.dependencies]
|
|
|
|
|
windows = { workspace = true }
|
|
|
|
|
|
|
|
|
|
[dev-dependencies]
|
|
|
|
|
tempfile = { workspace = true }
|
|
|
|
|
# `cfg(test)` in this crate does not enable features on dependencies, so the
|
|
|
|
|
# tests' `EnvVarGuard` re-export needs the feature turned on explicitly.
|
2026-07-16 20:27:30 +01:00
|
|
|
xai-grok-env = { workspace = true, features = ["test-support"] }
|
2026-07-16 06:46:02 +01:00
|
|
|
|
|
|
|
|
[lints]
|
|
|
|
|
workspace = true
|