-
Notifications
You must be signed in to change notification settings - Fork 136
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
Need cargo doc --all-features
test in CI/CD
#1311
Comments
This comment was marked as outdated.
This comment was marked as outdated.
cargo doc --all-features
test in CI/CD
this is not a comprehensive analysis (maybe more crates are broken), but I tried it locally and it seems
cc @jbesraa |
ok after digging a bit, it seems the error on AFAIU @Georges760 #1230 is yet to send a PR addressing that on for now, |
for instance, During my |
I dont think there is a problem here. |
Thats is exactly why usually crates don't have a That's what I called the "no_std logic" being inverted in our crates. And all my PR removed these |
Subprotocols don't need any |
I was blindly talking about a But yes, if they are "only defining structs and not doing any impl or writing any function" the [features]
default = ["std"]
std = []
prop_test = ["std"] So |
why are we expecting |
edit: I had forgotten that all
|
Hmm requiring each crate to build with While we could try and make sure each crate build with You might be able to achieve what you want with this: https://vadosware.io/post/getting-features-to-show-up-in-your-rust-docs The advantage of always making sure With all of the above said, once we remove no_std/std, no_serde/serde the |
I agree with @jbesraa . Currently, the features in our protocol crates are mutually exclusive. Some feature sets cannot compile or coexist, which goes against Rust's standards. The primary issue is with |
#1315 is proposing all 4 This will not solve the |
I should correct some innacurate statements. We're not running
this already already the equivalent of doing
ideally we want to catch these problems sooner rather than later otherwise, we will always have to do last-minute PRs on releases to publish crates overall, I see how the main point of this should be that for all relevant crate features:
|
I just created #1318 to simplify the with this PR, while publishing we only enable features that are relevant for API usage with regards to the request on this original issue, the proposed CI would enforce |
Currently there is no checks to ensure the cargo documentation builds. To ensure no code changes break documentation, we need to ensure that
cargo doc --all-features
passes for every crate.The text was updated successfully, but these errors were encountered: