From f98e742f9bbc36b639aa8b1c1964b16c90b01b0c Mon Sep 17 00:00:00 2001 From: Ryan Ruckley Date: Wed, 29 Jan 2025 10:23:48 +1100 Subject: [PATCH 1/3] bug: Fix example with conditional compile --- examples/create_ticket.rs | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/examples/create_ticket.rs b/examples/create_ticket.rs index e337519..8263686 100644 --- a/examples/create_ticket.rs +++ b/examples/create_ticket.rs @@ -1,11 +1,15 @@ //! Create Ticket Example +#[cfg(feature = "tmf621")] use tmflib::{tmf621::trouble_ticket::TroubleTicket, HasDescription}; fn main() { - let ticket = TroubleTicket::new("A Ticket") - .description("This is a trouble ticket"); - - - dbg!(ticket); + #[cfg(feature = "tmf621")] + { + let ticket = TroubleTicket::new("A Ticket") + .description("This is a trouble ticket"); + + + dbg!(ticket); + } } \ No newline at end of file From b0ae0e4a67becc6159aa793179bb58c167436093 Mon Sep 17 00:00:00 2001 From: Ryan Ruckley Date: Wed, 29 Jan 2025 10:23:57 +1100 Subject: [PATCH 2/3] bug: Add missing APIs --- Cargo.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 231df1f..e56986c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -93,7 +93,7 @@ common = ["tmf620","tmf629","tmf632","tmf666","tmf667","tmf669","tmf674"] # Product Catalog Management TMFC001 = ["tmf620","common"] # Product Order Capture and Validation -TMFC002 = ["tmf622","common"] +TMFC002 = ["tmf622","tmf648","tmf663","common"] # Product Order Delivery Orchestration and Management TMFC003 = ["common"] TMFC004 = ["common"] @@ -210,13 +210,13 @@ TMFC061 = ["common"] # Resource Configuration and Activation TMFC062 = ["common"] -default = ["all","build-V4"] +default = ["TMFC002","build-V4"] [dependencies] chrono = "0.4.39" rust_iso4217 = "0.1.1" serde = { version = "1.0.217", features = ["derive"]} -serde_json = "1.0.137" +serde_json = "1.0.138" sha256 = { version = "1.5", default-features = false } uuid = { version = "1.12.1", features = ["v4"]} tmflib-derive = { version = "0.1.30" } From fef6952f5e3f743010152e4564b28ca9846460a3 Mon Sep 17 00:00:00 2001 From: Ryan Ruckley Date: Wed, 29 Jan 2025 11:08:40 +1100 Subject: [PATCH 3/3] bug: return defaul to 'all' --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index e56986c..e5dda8f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -210,7 +210,7 @@ TMFC061 = ["common"] # Resource Configuration and Activation TMFC062 = ["common"] -default = ["TMFC002","build-V4"] +default = ["all","build-V4"] [dependencies] chrono = "0.4.39"