[workspace]
resolver = "2"
members = [
    "crates/hammer-core",
    "crates/hammer-build",
    "crates/hammer-bootstrap",
    "crates/hammer-overlay",
    "crates/hammer-journal",
    "crates/hammer-mirror",
    "crates/hammer-upgrade",
    "crates/hammer-recover",
    "crates/hammer-agent",
    "crates/hammer-cli",
    "crates/hammerd",
    "crates/netup",
]

[workspace.package]
version = "0.0.1"
edition = "2021"
license = "MIT"
authors = ["sergio <gerencia@jlsoltech.com>"]
repository = "https://gitea.gioser.net/sergio/hammer"

[workspace.dependencies]
hammer-core = { path = "crates/hammer-core" }
hammer-build = { path = "crates/hammer-build" }
hammer-bootstrap = { path = "crates/hammer-bootstrap" }
hammer-overlay = { path = "crates/hammer-overlay" }
hammer-journal = { path = "crates/hammer-journal" }
hammer-mirror = { path = "crates/hammer-mirror" }
hammer-upgrade = { path = "crates/hammer-upgrade" }
hammer-agent = { path = "crates/hammer-agent" }

# shared third-party deps, pinned at the workspace level
anyhow = "1"
thiserror = "2"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
serde_yaml = "0.9"
toml = "0.8"
# postcard + ulid: SÓLO para releer el frame del bus de arje (hammerd::arje_link). Versiones
# alineadas con las que usa arje-bus (postcard 1.1.x, ulid 1.2.x) para garantizar el mismo wire.
postcard = { version = "1", features = ["use-std"] }
ulid = { version = "1", features = ["serde"] }
blake3 = "1"
sha2 = "0.10"
hex = "0.4"
base64 = "0.22"
ed25519-dalek = "2"
getrandom = "0.2"
nix = { version = "0.30", default-features = false, features = ["fanotify", "fs", "user"] }
tempfile = "3"
clap = { version = "4", features = ["derive"] }
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }

[profile.release]
# small, static-friendly binaries for the userland
opt-level = "z"
lto = true
codegen-units = 1
strip = true
panic = "abort"
