Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add products to features list in cargo.toml and export from reso… #495

Merged
merged 2 commits into from
Feb 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -8,7 +8,7 @@

mod currency;
pub mod generated;
mod placeholders;

Check warning on line 11 in src/resources.rs

View workflow job for this annotation

GitHub Actions / clippy (blocking-rustls)

file is loaded as a module multiple times: `src/resources/placeholders.rs`

Check warning on line 11 in src/resources.rs

View workflow job for this annotation

GitHub Actions / clippy (tokio-hyper-rustls)

file is loaded as a module multiple times: `src/resources/placeholders.rs`

Check warning on line 11 in src/resources.rs

View workflow job for this annotation

GitHub Actions / clippy (async-std-surf)

file is loaded as a module multiple times: `src/resources/placeholders.rs`

Check warning on line 11 in src/resources.rs

View workflow job for this annotation

GitHub Actions / clippy (tokio-hyper)

file is loaded as a module multiple times: `src/resources/placeholders.rs`

Check warning on line 11 in src/resources.rs

View workflow job for this annotation

GitHub Actions / clippy (blocking)

file is loaded as a module multiple times: `src/resources/placeholders.rs`

Check warning on line 11 in src/resources.rs

View workflow job for this annotation

GitHub Actions / clippy (tokio-hyper-rustls-webpki)

file is loaded as a module multiple times: `src/resources/placeholders.rs`

Check warning on line 11 in src/resources.rs

View workflow job for this annotation

GitHub Actions / clippy (blocking-rustls-webpki)

file is loaded as a module multiple times: `src/resources/placeholders.rs`
mod types;

#[path = "resources"]
Expand Down Expand Up @@ -97,7 +97,7 @@
}

#[rustfmt::skip]
pub use {

Check warning on line 100 in src/resources.rs

View workflow job for this annotation

GitHub Actions / clippy (blocking-rustls)

ambiguous glob re-exports

Check warning on line 100 in src/resources.rs

View workflow job for this annotation

GitHub Actions / clippy (blocking-rustls)

ambiguous glob re-exports

Check warning on line 100 in src/resources.rs

View workflow job for this annotation

GitHub Actions / clippy (blocking-rustls)

ambiguous glob re-exports

Check warning on line 100 in src/resources.rs

View workflow job for this annotation

GitHub Actions / clippy (blocking-rustls)

ambiguous glob re-exports

Check warning on line 100 in src/resources.rs

View workflow job for this annotation

GitHub Actions / clippy (tokio-hyper-rustls)

ambiguous glob re-exports

Check warning on line 100 in src/resources.rs

View workflow job for this annotation

GitHub Actions / clippy (tokio-hyper-rustls)

ambiguous glob re-exports

Check warning on line 100 in src/resources.rs

View workflow job for this annotation

GitHub Actions / clippy (tokio-hyper-rustls)

ambiguous glob re-exports

Check warning on line 100 in src/resources.rs

View workflow job for this annotation

GitHub Actions / clippy (tokio-hyper-rustls)

ambiguous glob re-exports

Check warning on line 100 in src/resources.rs

View workflow job for this annotation

GitHub Actions / clippy (async-std-surf)

ambiguous glob re-exports

Check warning on line 100 in src/resources.rs

View workflow job for this annotation

GitHub Actions / clippy (async-std-surf)

ambiguous glob re-exports

Check warning on line 100 in src/resources.rs

View workflow job for this annotation

GitHub Actions / clippy (async-std-surf)

ambiguous glob re-exports

Check warning on line 100 in src/resources.rs

View workflow job for this annotation

GitHub Actions / clippy (async-std-surf)

ambiguous glob re-exports

Check warning on line 100 in src/resources.rs

View workflow job for this annotation

GitHub Actions / clippy (tokio-hyper)

ambiguous glob re-exports

Check warning on line 100 in src/resources.rs

View workflow job for this annotation

GitHub Actions / clippy (tokio-hyper)

ambiguous glob re-exports

Check warning on line 100 in src/resources.rs

View workflow job for this annotation

GitHub Actions / clippy (tokio-hyper)

ambiguous glob re-exports

Check warning on line 100 in src/resources.rs

View workflow job for this annotation

GitHub Actions / clippy (tokio-hyper)

ambiguous glob re-exports

Check warning on line 100 in src/resources.rs

View workflow job for this annotation

GitHub Actions / clippy (blocking)

ambiguous glob re-exports

Check warning on line 100 in src/resources.rs

View workflow job for this annotation

GitHub Actions / clippy (blocking)

ambiguous glob re-exports

Check warning on line 100 in src/resources.rs

View workflow job for this annotation

GitHub Actions / clippy (blocking)

ambiguous glob re-exports

Check warning on line 100 in src/resources.rs

View workflow job for this annotation

GitHub Actions / clippy (blocking)

ambiguous glob re-exports

Check warning on line 100 in src/resources.rs

View workflow job for this annotation

GitHub Actions / clippy (tokio-hyper-rustls-webpki)

ambiguous glob re-exports

Check warning on line 100 in src/resources.rs

View workflow job for this annotation

GitHub Actions / clippy (tokio-hyper-rustls-webpki)

ambiguous glob re-exports

Check warning on line 100 in src/resources.rs

View workflow job for this annotation

GitHub Actions / clippy (tokio-hyper-rustls-webpki)

ambiguous glob re-exports

Check warning on line 100 in src/resources.rs

View workflow job for this annotation

GitHub Actions / clippy (tokio-hyper-rustls-webpki)

ambiguous glob re-exports

Check warning on line 100 in src/resources.rs

View workflow job for this annotation

GitHub Actions / clippy (blocking-rustls-webpki)

ambiguous glob re-exports

Check warning on line 100 in src/resources.rs

View workflow job for this annotation

GitHub Actions / clippy (blocking-rustls-webpki)

ambiguous glob re-exports

Check warning on line 100 in src/resources.rs

View workflow job for this annotation

GitHub Actions / clippy (blocking-rustls-webpki)

ambiguous glob re-exports

Check warning on line 100 in src/resources.rs

View workflow job for this annotation

GitHub Actions / clippy (blocking-rustls-webpki)

ambiguous glob re-exports
currency::*,
types::*,

Expand Down Expand Up @@ -191,6 +191,15 @@
},
};

#[rustfmt::skip]
#[cfg(feature = "products")]
pub use {
products::{
product_ext::*,
price_ext::*,
}
};

#[rustfmt::skip]
#[cfg(feature = "billing")]
pub use {
Expand Down
Loading