-
Notifications
You must be signed in to change notification settings - Fork 824
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
Test that docs.rs can build our crates #3802
Comments
/bounty $100 |
💎 $100.00 bounty created by syrusakbary |
Can I work on this? |
@meskill of course! |
I've tried to build and run the docs.rs cli but as mentioned here it actually requires the running database and ability to run container. That all sounds a bit like overkill for just the testing purpose. My suggestion is to automate process of building the right set of features for building doc by implementing bash script that reads Cargo.toml content and if there are docs.rs related features it will build the doc with these features passed. The implemented script is in #3819 |
💡 meskill submitted a pull request that claims the bounty. You can visit your org dashboard to reward. |
@meskill I don't think #3819 completely solves the problem. That PR only tested packages with Can you tweak the script to build docs for all crates in the repository, and use the docs.rs metadata to figure out how the |
I'll handle this. I want the docs to be publichsed for the 3.3 |
Oh, well, I expected some other job in pipelines would show the errors in that case, but seems like they are built with different set of features. Ok, let me try to improve the script. But, looking at the build log output, I can see a lot of errors that I'm not sure I can fix quickly in order to pass the new test pipeline. |
🎉🎈 @meskill has been awarded $100.00! 🎈🎊 |
I see that @ptitSeb has already changed the script to run on all packages. I've also changed the script accordingly. My version might be used as a reference in case you face problems with figuring out workspace members right. |
Motivation
We found that docs for the
wasmer 3.2.0
crate weren't able to build in docs.rs because of some bugs around conditional compliation. The underlying issue was fixed in #3791, but it'd be nice to make sure CI warns us when this happens.Proposed solution
We can use the
docs.rs
CLI to build things locally (instructions).In theory, it's "just" a case of running the following:
(this should be automatable using the
cargo-metadata
crate and acargo xtask
helper)Alternatives
We can always leave things as they were done in #3791 and make sure we keep that
Makefile
command in sync with our[package.metadata.docs.rs]
metadata.The text was updated successfully, but these errors were encountered: