Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions crates/uffs-client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@
//! `uffs-cli`.
//! - **§3.7** N/A — no `pub trait` declarations in this crate.

// On docs.rs only: enable the `doc_cfg` rustdoc feature so cfg-gated items
// (`#[cfg(feature = "async")]`, `#[cfg(windows)]`, etc.) render with their
// cfg badge. Gated behind `cfg(docsrs)` so local `cargo doc` never
// exercises the nightly-only feature. Post-Rust-1.92 the `doc_auto_cfg`
// feature was merged into `doc_cfg` (rust-lang/rust#138907).
#![cfg_attr(docsrs, feature(doc_cfg))]

// Suppress unused crate warnings for deps used in sub-modules
use serde as _;
use uffs_security as _;
Expand Down
7 changes: 7 additions & 0 deletions crates/uffs-mcp/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@
//! # }
//! ```

// On docs.rs only: enable the `doc_cfg` rustdoc feature so cfg-gated items
// render with their cfg badge. Gated behind `cfg(docsrs)` so local
// `cargo doc` never exercises the nightly-only feature. Post-Rust-1.92
// the `doc_auto_cfg` feature was merged into `doc_cfg`
// (rust-lang/rust#138907).
#![cfg_attr(docsrs, feature(doc_cfg))]

// `clap` is used by the `uffsmcp` binary, not this library crate.
use clap as _;

Expand Down
6 changes: 6 additions & 0 deletions crates/uffs-mft/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,12 @@
//! No `pub trait` declarations live in this crate, so the
//! sealed-trait decision (§3.7) is **N/A**.

// On docs.rs only: enable the `doc_cfg` rustdoc feature so cfg-gated items
// (`#[cfg(windows)]`, `#[cfg(feature = "...")]`, etc.) render with their
// cfg badge. Gated behind `cfg(docsrs)` so local `cargo doc` never
// exercises the nightly-only feature. Post-Rust-1.92 the `doc_auto_cfg`
// feature was merged into `doc_cfg` (rust-lang/rust#138907).
#![cfg_attr(docsrs, feature(doc_cfg))]
#![warn(clippy::all, clippy::pedantic)]
#![expect(
clippy::module_name_repetitions,
Expand Down
7 changes: 7 additions & 0 deletions crates/uffs-text/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,11 @@
//! - Locale-aware collation
//! - Search tokenisation

// On docs.rs only: enable the `doc_cfg` rustdoc feature so cfg-gated items
// render with their cfg badge. Gated behind `cfg(docsrs)` so local
// `cargo doc` never exercises the nightly-only feature. Post-Rust-1.92
// the `doc_auto_cfg` feature was merged into `doc_cfg`
// (rust-lang/rust#138907) — `doc_cfg` is now the unified name.
#![cfg_attr(docsrs, feature(doc_cfg))]

pub mod case_fold;
9 changes: 9 additions & 0 deletions crates/uffs-time/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,15 @@
//! site. Future sub-phases may push [`Filetime`] deeper into the index
//! / query layers.

// On docs.rs only: enable the `doc_cfg` rustdoc feature so cfg-gated items
// (e.g. `#[cfg(feature = "...")]` or `#[cfg(target_os = "...")]`) render
// with their cfg badge on the rendered docs. Gated behind `cfg(docsrs)`
// so local `cargo doc` (which doesn't pass `--cfg docsrs`) never exercises
// the nightly-only feature. See `[package.metadata.docs.rs]` in Cargo.toml
// for the cfg wiring. The previously-used `doc_auto_cfg` feature was
// merged into `doc_cfg` in Rust 1.92 (rust-lang/rust#138907); the unified
// `doc_cfg` feature preserves the automatic cfg-badge inference behaviour.
#![cfg_attr(docsrs, feature(doc_cfg))]
#![no_std]

/// Number of 100-nanosecond intervals per second.
Expand Down
Loading