Is It Possible To Set The Doc Build Flags For crates.io?

I have this crate: crates.io: Rust Package Registry

And the docs are currently failing to be built for crates.io (error_set 0.4.4 - Docs.rs) since --all-features is passed to the build. I don't want to pass --all-features since some features are exclusive.

Is there a way to set the flags crates.io uses to build the docs?

https://docs.rs/about/metadata

2 Likes

See also the other tab on the site @sfackler already linked.

Also check out this tool if you want to imitate the effects of a docs.rs built locally to test if it works as intended.

1 Like

features are supposed to be additive, otherwise issues can happen during feature unification.

2 Likes

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.