fespbvgg_docs_rs/
lib.rs

1//! Dummy crate that allows me to test how crates are published to docs.rs
2//!
3//! Do not use this. I tried to avoid "stealing" a useful crate name.
4#![cfg_attr(docsrs, feature(doc_cfg))]
5#![no_std]
6/// Bar.
7#[cfg_attr(docsrs, doc(cfg(feature = "bar")))]
8#[cfg(feature = "bar")]
9pub mod bar;
10/// Foo.
11#[cfg_attr(docsrs, doc(cfg(feature = "foo")))]
12#[cfg(feature = "foo")]
13pub mod foo;
14/// A.
15///
16/// See [`u32`].
17#[derive(Clone, Copy, Debug)]
18pub struct A;
19impl A {
20    /// Stuff.
21    #[inline]
22    #[must_use]
23    pub const fn b(self) -> u32 {
24        10
25    }
26}