Skip to content

Commit

Permalink
Merge pull request #495 from addacub/add-products-to-features-list
Browse files Browse the repository at this point in the history
Add products to features list in cargo.toml and export from reso…
  • Loading branch information
arlyon committed Feb 27, 2024
2 parents cd92ed9 + a427943 commit e57e1fe
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ full = [
"terminal",
"webhook-endpoints",
"tax-calculation",
"products",
]

stream = []
Expand All @@ -58,6 +59,7 @@ sigma = []
terminal = []
webhook-endpoints = []
tax-calculation = []
products = []

# deserialize events from webhooks
webhook-events = ["events", "hmac", "sha2", "chrono", "hex"]
Expand Down
3 changes: 2 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ pub use crate::client::*;
pub use crate::error::{ErrorCode, ErrorType, RequestError, StripeError, WebhookError};
pub use crate::ids::*;
pub use crate::params::{
Expandable, Headers, IdOrCreate, List, Metadata, Object, RangeBounds, RangeQuery, Timestamp,
Expandable, Headers, IdOrCreate, List, Metadata, Object, RangeBounds, RangeQuery, SearchList,
Timestamp,
};
pub use crate::resources::*;
9 changes: 9 additions & 0 deletions src/resources.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit e57e1fe

Please sign in to comment.