-
-
Notifications
You must be signed in to change notification settings - Fork 141
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
Certain feature combination does not compile #137
Comments
Thanks for the report. I'll have a look and see if we can either a) rework the deps or b) at least document this requirement. |
We are planning on addressing this issue with 0.15 where we will split out the codegen into crates. This will make the dependencies much more explicit. Stay tuned. |
Hi @arlyon And also trying to undestand which feature I have to enable to make
I have noticed that this code is generated https://github.com/arlyon/async-stripe/blob/ca5269ebcf9cbd7005f3fecedc63cc31718680a6/src/resources/generated/terminal_location.rs Tried to add "terminal" or "terminal-location" features, but none of them worked:
|
The pr is merged let me know if there are any issues with the terminal API. |
When I updated to v0.15 I ran into a new but similar compile issue. The Cargo.toml line I used: async-stripe = { version = "0.15", default-features = false, features = ["runtime-tokio-hyper-rustls", "billing", "webhook-events", "checkout"] } which leads to this error:
and the new line which makes it work (by adding the "connect" feature which will re-export the AccountCapabilities struct): async-stripe = { version = "0.15", default-features = false, features = ["runtime-tokio-hyper-rustls", "billing", "webhook-events", "checkout", "connect"] } |
I also bumped into this. I only need the In my case this works
It seems like |
Copying from #238: after updating to
The compilation error:
Adding the feature |
I ran into this today with: # Cargo.toml
async-stripe = { version = "0.34.1", default-features = false, features = ["runtime-blocking-rustls", "billing"] } use stripe::{ListSubscriptions, StripeError, Subscription};
const TEST_SECRET_KEY: &str = "sk_test_…";
use stripe::{ListSubscriptions, StripeError, Subscription};
async fn test() -> Result<(), StripeError> {
let client = stripe::Client::new(TEST_SECRET_KEY);
let s = Subscription::list(&client, &ListSubscriptions::default())?;
dbg!(s);
Ok(())
} This results in:
|
#634 is essentially a dupe of this issue. Seems like the common experience is that structs aren't available to webhook handlers without the API feature they belong to. the Structs themselves should probably be available always, or in separate 'model-only' crates that the "webhook-events" feature depends on (as well as their API features) |
I'm using the following line in my
Cargo.toml
:and this is the compile error I get:
As far as I can tell
CheckoutSessionItem
will only be re-exported fromcrate::resources
when thecheckout
Cargo feature is activated.As a quick fix I changed my dependency line to:
The text was updated successfully, but these errors were encountered: