How to tell docs.rs not to build dependencies?
⚓ Rust 📅 2025-07-27 👤 surdeus 👁️ 12Hi!
Today I published my first crate on crates.io. That went fine, but the documentation on docs.rs won't build. There is no problem building it locally.
As far as I understand, docs.rs tries to include the documentation of all dependencies, which fails because xkbcommon-sys is not installed there.
This is not what I want anyway, so what do I need to do to make docs.rs ommit all dependencies?
I tried to upload a new version with the following added to Cargo.toml:
[package.metadata.docs.rs]
cargo-args = ["--no-deps"]
but that just causes different build errors.
The build log can be found here: xkb_evdev_trans 0.1.0 - Docs.rs
5 posts - 4 participants
🏷️ Rust_feed