-
Notifications
You must be signed in to change notification settings - Fork 212
Dependency fails with "the feature doc_cfg
has already been declared"
#1289
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
Comments
This should be reported upstream to Tokio, we can't fix it on our end.
Local builds don't pass --cfg docsrs by default. |
There is a bug somewhere here since |
I tried to imitate docs.rs build with Am I missing something? |
I've opened rust-lang/rust#82588 for the rustdoc bug that allowed Using |
Crate name: geozero
Build failure link: https://docs.rs/crate/geozero/0.7.2/builds/355163
Additional details:
geozero has the following Cargo.toml entry:
cfg(docsrs)
is required for a doc.rs build of the dependencygdal
: https://github.com/georust/gdal/blob/master/build.rs#L3The failing
tokio-stream
crate does in fact set a feature twice based ondocsrs
: https://github.com/tokio-rs/tokio/blob/master/tokio-stream/src/lib.rs#L17-L23But a local doc build is successful!
The text was updated successfully, but these errors were encountered: