-
Notifications
You must be signed in to change notification settings - Fork 208
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
rlib and cdylib crates are marked as 'not a library' #503
Comments
Seems to have been a regression sometime between rust 1.35 and rust 1.38+ (which also seems to try and include Cargo.lock under the impression that the crate isn't a library) since the manifests didn't change at all besides the version: https://docs.rs/crate/bugsalot/0.1.4/source/Cargo.toml.orig (published with rust 1.35)
(As a side note, if I try to use both
|
Okay, apparently I lied about I also tried publishing with rust 1.35. Again, no docs (https://docs.rs/crate/bugsalot/0.1.7/). While this did exclude Cargo.lock from my local bugsalot-0.1.7.crate, it appears to get re-added by docs.rs: https://docs.rs/crate/bugsalot/0.1.7/source/Cargo.lock The real workaround is just to drop the crate-types specifier entirely. I've verified it's un-necessary - only the final crate needs it for wasm-pack to be happy, not leaf libs like bugsalot. Proper docs generated this time: https://docs.rs/crate/bugsalot/0.1.8/ |
https://docs.rs/crate/bugsalot/0.1.6/source/Cargo.toml may be because #499 hasn't been deployed yet. |
Looks likely, thanks for looking into this! |
closes rust-lang#503 TODO: this tries to build crates that are binaries and don't have a crate-type field
Hmm, so this isn't actually true, you can also have |
Ok I think the issue is that we're actually looking at
Notice that the only crate_types listed are
I think if we filter the crate_types, not the kind, this should work. |
see rust-lang#503 (comment) for context
@MaulingMonkey deployed the fix and queued a rebuild for bugsalot 0.1.6! Let me know if there are other crates to rebuild. |
@pietroalbini can you also rebuild sysinfo 0.10.0? cc @GuillaumeGomez , #511 |
Queued sysinfo 0.10.0. |
Do we need to republish the affected crates or docs.rs will rebuild them by itself? |
@pravic if you tell me the names and versions to rebuild I'll manually queue them. |
@pietroalbini https://docs.rs/crate/sciter-rs/0.5.46, https://docs.rs/crate/sciter-rs/0.5.47. But it would be better to rebuild all affected crates - not everybody has noticed this bug, but those crates are broken anyway. |
@pravic rebuilt those crates: Unfortunately it's not trivial to detect which crates were affected automatically and I don't have the time to write an automation to list them. |
Looking at https://doc.rust-lang.org/reference/linkage.html, everything except
bin
is a type of library. I ran into @MaulingMonkey on discord who was confused why his crate wasn't building when he hadrlib
andcdylib
set: https://docs.rs/crate/bugsalot/0.1.5/builds/202497.The text was updated successfully, but these errors were encountered: