tl;dr - Update your Cargo.toml and make sure doc_auto_cfg is turned on in lib.rs How do you properly show feature specific functionality (and mark them with the required feature) for library crates in 2024? First, you need to update your Cargo.toml: [package.metadata.docs.rs] all-features = true If you don’t want all features to be enabled (if you want some features and related code to be legitimately hidden from docs), you can use specific features: