Open iliana opened 2 months ago
Would it solve this problem to disable doc builds for the binary? We already do this for some binaries (for outdated reasons, it looks like): https://github.com/oxidecomputer/omicron/blob/a14b41a2342fc3e8dcb2abf777a82289055e39c8/dev-tools/omdb/Cargo.toml#L69-L73
Oh, I didn't know you could do that! That probably makes the most sense.
I think we hadn't noticed this before because we had been running
cargo doc
without--no-deps
, so it got lost in all the duplicate targets from having several dependencies at different versions:(output wrapped for readability)
Specifically, having a crate named "oximeter" and having a bin target in a separate package (oximeter-collector) called "oximeter" is triggering an output filename collision warning while building documentation. It's unclear whether this matters long-term; Cargo can't reasonably make this a hard error in the future until
cargo doc
is capable of supporting multiple crates with the same names (at different versions), at which point they might also support this particular issue.Options:
[lib]
section with a different name.cc @bnaecker