From d26860f9049dd3a9ef934ad1a5f5ed3e6b365e70 Mon Sep 17 00:00:00 2001 From: Adrian Cubelic Date: Sun, 4 Feb 2024 07:57:26 +1030 Subject: [PATCH] fix: add products to features list in cargo.toml and export from resourses --- Cargo.toml | 2 ++ src/resources.rs | 9 +++++++++ 2 files changed, 11 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 4bed7d14f..6d0c14476 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -43,6 +43,7 @@ full = [ "terminal", "webhook-endpoints", "tax-calculation", + "products", ] stream = [] @@ -58,6 +59,7 @@ sigma = [] terminal = [] webhook-endpoints = [] tax-calculation = [] +products = [] # deserialize events from webhooks webhook-events = ["events", "hmac", "sha2", "chrono", "hex"] diff --git a/src/resources.rs b/src/resources.rs index a4adeca74..42ced2ae0 100644 --- a/src/resources.rs +++ b/src/resources.rs @@ -191,6 +191,15 @@ pub use { }, }; +#[rustfmt::skip] +#[cfg(feature = "products")] +pub use { + products::{ + product_ext::*, + price_ext::*, + } +}; + #[rustfmt::skip] #[cfg(feature = "billing")] pub use {