[package]
name                   = "hydra-proto"
version.workspace      = true
edition                = "2024"
license                = "GPL-3.0"
rust-version.workspace = true

[dependencies]
bytes.workspace                          = true
harmonia-store-content-address.workspace = true
harmonia-store-derivation.workspace      = true
harmonia-store-nar-info.workspace        = true
harmonia-store-path.workspace            = true
harmonia-store-path-info.workspace       = true
harmonia-utils-hash.workspace            = true
harmonia-utils-signature.workspace       = true
prost.workspace                          = true
serde_json.workspace                     = true
tonic.workspace                          = true
tonic-prost.workspace                    = true

db                         = { workspace = true, optional = true }
nix-support.workspace      = true
store-path-utils.workspace = true

[features]
client = [  ]
db     = [ "dep:db" ]
server = [  ]

[build-dependencies]
fs-err                      = { workspace = true }
sha2.workspace              = true
thiserror.workspace         = true
tonic-prost-build.workspace = true
