diff options
author | rtkay123 <dev@kanjala.com> | 2025-08-12 21:05:07 +0200 |
---|---|---|
committer | rtkay123 <dev@kanjala.com> | 2025-08-12 21:05:07 +0200 |
commit | b6924a50c9ec49e1b2b0d286abbbe608410af87d (patch) | |
tree | 9c5cf583fedfbb585985ac829bbdfdadce1571fe /lib | |
parent | d75b5fc9c0497f56e6b8602d8ff8991bfaeff18c (diff) | |
download | warden-b6924a50c9ec49e1b2b0d286abbbe608410af87d.tar.bz2 warden-b6924a50c9ec49e1b2b0d286abbbe608410af87d.zip |
feat(router): get config
Diffstat (limited to 'lib')
-rw-r--r-- | lib/warden-core/Cargo.toml | 2 | ||||
-rw-r--r-- | lib/warden-core/build.rs | 10 |
2 files changed, 10 insertions, 2 deletions
diff --git a/lib/warden-core/Cargo.toml b/lib/warden-core/Cargo.toml index dc9e83e..67ea279 100644 --- a/lib/warden-core/Cargo.toml +++ b/lib/warden-core/Cargo.toml @@ -24,7 +24,7 @@ utoipa = { workspace = true, optional = true } [features] default = [] configuration = ["dep:prost", "dep:tonic", "dep:tonic-types", "dep:tonic-prost"] -message = ["dep:prost", "dep:tonic", "dep:tonic-types", "dep:tonic-prost"] +message = ["configuration"] pseudonyms = ["dep:prost", "dep:tonic", "dep:tonic-types", "dep:tonic-prost"] serde = ["dep:serde", "serde/derive", "dep:serde_json"] serde-time = [ diff --git a/lib/warden-core/build.rs b/lib/warden-core/build.rs index 3992cd8..83b0407 100644 --- a/lib/warden-core/build.rs +++ b/lib/warden-core/build.rs @@ -20,10 +20,18 @@ impl Entity { #[cfg(feature = "configuration")] fn configuration_protos() -> Vec<&'static str> { + if cfg!(feature = "message") { + vec![ + "proto/configuration/reload_event.proto", + ] + } else { vec![ - "proto/configuration/routing.proto", + "proto/configuration/routing.proto", "proto/configuration/reload_event.proto", ] + + } + } #[cfg(feature = "pseudonyms")] |