Files
cardclaws/cardclaws-backend/crates/cardclaws-api/Cargo.toml
T
Omar SobhandClaude Opus 4.8 63f60bfb9e
CI / policy (push) Has been cancelled
CI / backend (push) Has been cancelled
CI / profile (push) Has been cancelled
CI / mobile (push) Has been cancelled
ClawBrainHub: read clawhdf5 (HDF5) .brains, not just JSON
Add the pure-Rust clawhdf5 crate (git dep, no C deps) and parse HDF5 .brain
blobs: pull fetches raw bytes, brain_from_blob branches on the magic byte
(JSON '{' vs HDF5 \x89HDF) and reads the same datasets (identity/agent_md,
soul_md, skills/skills_md, tool_defs_json) into the shared card normalizer.
All 19 of omar's HDF5 brains now pull + appear in the picker (was JSON-only).
Verified live: omar/rust-2024 yields real skills; list now 22 brains.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
2026-06-06 21:07:43 -05:00

69 lines
2.0 KiB
TOML

[package]
name = "cardclaws-api"
version.workspace = true
edition.workspace = true
license.workspace = true
authors.workspace = true
[lints]
workspace = true
[features]
# Enable real Apple PKCS#7 pass signing in the binary (pulls in openssl via the
# wallet crate). Without it the dev build uses a fake signer that produces
# structurally-correct but unsigned passes — logged loudly at startup.
default = []
apple-signing = ["cardclaws-wallet/apple-signing"]
geoip = ["dep:maxminddb"]
[[bin]]
name = "cardclaws-api"
path = "src/main.rs"
[dependencies]
cardclaws-types = { workspace = true }
cardclaws-config = { workspace = true }
cardclaws-db = { workspace = true }
cardclaws-auth = { workspace = true }
cardclaws-wallet = { workspace = true }
tokio = { workspace = true }
axum = { workspace = true }
tower = { workspace = true }
tower-http = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
sqlx = { workspace = true }
redis = { workspace = true }
reqwest = { workspace = true }
rusty-s3 = { workspace = true }
uuid = { workspace = true }
chrono = { workspace = true }
sha2 = { workspace = true }
rand = { workspace = true }
base64 = { workspace = true }
validator = { workspace = true }
async-trait = { workspace = true }
# Pure-Rust HDF5 reader: parse clawhdf5-format .brain files pulled from ClawBrainHub.
clawhdf5 = { git = "https://github.com/quantumclaws/clawhdf5", package = "clawhdf5" }
maxminddb = { version = "0.24", optional = true }
tracing = { workspace = true }
tracing-subscriber = { workspace = true }
thiserror = { workspace = true }
[dev-dependencies]
cardclaws-auth = { workspace = true }
cardclaws-wallet = { workspace = true }
cardclaws-config = { workspace = true }
cardclaws-db = { workspace = true }
tower = { workspace = true, features = ["util"] }
http-body-util = "0.1"
tokio = { workspace = true }
axum = { workspace = true }
serde_json = { workspace = true }
uuid = { workspace = true }
sqlx = { workspace = true }
async-trait = { workspace = true }
zip = { workspace = true }
base64 = { workspace = true }