diff options
author | rtkay123 <dev@kanjala.com> | 2025-08-09 11:45:07 +0200 |
---|---|---|
committer | rtkay123 <dev@kanjala.com> | 2025-08-09 11:45:18 +0200 |
commit | d50185df5a5870498b6c7e6b51e0368d051743ca (patch) | |
tree | 2820c340d86650efdc2e231b4190bddcd54c9f73 /lib/warden-core/build.rs | |
parent | 9e3e07220ef10d2b8e5251c4871d54f9c5a1e9d0 (diff) | |
download | warden-d50185df5a5870498b6c7e6b51e0368d051743ca.tar.bz2 warden-d50185df5a5870498b6c7e6b51e0368d051743ca.zip |
feat: money type
Diffstat (limited to 'lib/warden-core/build.rs')
-rw-r--r-- | lib/warden-core/build.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/warden-core/build.rs b/lib/warden-core/build.rs index 1998137..46793ed 100644 --- a/lib/warden-core/build.rs +++ b/lib/warden-core/build.rs @@ -14,6 +14,7 @@ impl Entity { vec![ "proto/iso20022/pacs_008_001_12.proto", "proto/iso20022/pacs_002_001_12.proto", + "proto/googleapis/google/type/money.proto", "proto/warden_message.proto", ] } @@ -84,7 +85,7 @@ fn add_serde(config: tonic_prost_build::Builder) -> tonic_prost_build::Builder { "#[derive(serde::Serialize, serde::Deserialize)] #[serde(rename_all = \"snake_case\")]", ); - #[cfg(feature = "time")] + #[cfg(feature = "serde-time")] let config = config.type_attribute( ".google.protobuf.Timestamp", "#[serde(try_from = \"time::OffsetDateTime\")] #[serde(into = \"String\")]", |