P0: devenv libsystemd + pinned Cargo dependencies
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
389c4f998a
commit
aa9b0da962
4 files changed
+4134
-1
No files matched your search
@@ -11,3 +11,6 @@ devenv.local.yaml
|
||||
|
||||
.commandcode
|
||||
.claude-account
|
||||
|
||||
# Rust
|
||||
/target
|
||||
Generated
+4043
File diff suppressed because it is too large.
Load diff
+73
@@ -0,0 +1,73 @@
|
||||
[package]
|
||||
name = "skyg-linux-tracker"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
description = "Read-only Linux system monitor: systemd, journald and Docker over REST, MCP and OpenTelemetry"
|
||||
license = "MIT"
|
||||
publish = false
|
||||
|
||||
[lib]
|
||||
name = "skyg_linux_tracker"
|
||||
path = "src/lib.rs"
|
||||
|
||||
[[bin]]
|
||||
name = "slinuxm"
|
||||
path = "src/main.rs"
|
||||
|
||||
[dependencies]
|
||||
# Runtime
|
||||
tokio = { version = "1.53.3", features = ["full"] }
|
||||
tokio-util = "0.7.20"
|
||||
futures = "0.3.34"
|
||||
async-trait = "0.1.92"
|
||||
anyhow = "1.0.104"
|
||||
thiserror = "2.0.21"
|
||||
|
||||
# HTTP
|
||||
axum = "0.8.9"
|
||||
tower = "0.5.3"
|
||||
tower-http = { version = "0.7.1", features = ["trace"] }
|
||||
|
||||
# Data
|
||||
serde = { version = "1.0.229", features = ["derive"] }
|
||||
serde_json = "1.0.154"
|
||||
schemars = { version = "1.2.3", features = ["jiff02"] }
|
||||
jiff = { version = "0.2.38", features = ["serde"] }
|
||||
|
||||
# Config / CLI
|
||||
figment = { version = "0.10.19", features = ["toml", "env"] }
|
||||
toml = "1.1.8"
|
||||
clap = { version = "4.6.7", features = ["derive", "env"] }
|
||||
|
||||
# MCP
|
||||
rmcp = { version = "3.5.1", features = ["server", "macros", "schemars", "transport-streamable-http-server"] }
|
||||
|
||||
# systemd (D-Bus) and journal (libsystemd FFI)
|
||||
zbus = { version = "5.19.0", default-features = false, features = ["tokio"] }
|
||||
zbus_systemd = { version = "0.26200.0", default-features = false, features = ["systemd1", "zbus-async-tokio"] }
|
||||
systemd = { version = "0.10.1", default-features = false, features = ["journal", "systemd_v245"] }
|
||||
|
||||
# Docker (unix socket only; default features pull no TLS)
|
||||
bollard = "0.21.1"
|
||||
|
||||
# OpenTelemetry
|
||||
opentelemetry = "0.33.1"
|
||||
opentelemetry_sdk = "0.33.1"
|
||||
opentelemetry-otlp = { version = "0.33.1", default-features = false, features = ["grpc-tonic", "http-proto", "logs", "metrics", "trace", "reqwest-rustls", "tls-ring", "tls-webpki-roots"] }
|
||||
tracing = "0.1.44"
|
||||
tracing-subscriber = "0.3.23"
|
||||
tracing-opentelemetry = "0.34.0"
|
||||
|
||||
# Auth / DB
|
||||
sqlx = { version = "0.9.0", default-features = false, features = ["runtime-tokio", "sqlite", "migrate", "macros"] }
|
||||
sha2 = "0.11.1"
|
||||
rand = "0.10.3"
|
||||
base64 = "0.23.1"
|
||||
|
||||
[dev-dependencies]
|
||||
figment = { version = "0.10.19", features = ["test"] }
|
||||
|
||||
[profile.release]
|
||||
lto = true
|
||||
strip = true
|
||||
codegen-units = 1
|
||||
+15
-1
@@ -1,8 +1,22 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
packages = [ pkgs.git ];
|
||||
packages = [
|
||||
pkgs.git
|
||||
pkgs.pkg-config
|
||||
# libsystemd.pc lives in the .dev output; the pkg-config setup hook finds
|
||||
# it when the package is in `packages`.
|
||||
pkgs.systemd
|
||||
# Local OTLP collector for the telemetry workstream (G7).
|
||||
pkgs.opentelemetry-collector-contrib
|
||||
];
|
||||
|
||||
languages.rust.enable = true;
|
||||
|
||||
scripts.build.exec = ''cargo build "$@"'';
|
||||
scripts.run.exec = ''cargo run -- "$@"'';
|
||||
scripts.token.exec = ''cargo run -- token "$@"'';
|
||||
|
||||
enterShell = ''
|
||||
export CLAUDE_CONFIG_DIR="$(pwd)/.claude-account"
|
||||
'';
|
||||
|
||||
Reference in new issue
Block a user