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}
27/// B.
28///
29/// See [`u32`].
30#[cfg(all(target_arch = "x86_64", target_os = "linux", target_env = "gnu"))]
31#[derive(Clone, Copy, Debug)]
32pub struct B;
33#[cfg(all(target_arch = "x86_64", target_os = "linux", target_env = "gnu"))]
34impl B {
35    /// Stuff.
36    #[inline]
37    #[must_use]
38    pub const fn b(self) -> u32 {
39        10
40    }
41}
42/// C.
43///
44/// See [`u32`].
45#[cfg(all(target_arch = "aarch64", target_os = "macos"))]
46#[derive(Clone, Copy, Debug)]
47pub struct C;
48#[cfg(all(target_arch = "aarch64", target_os = "macos"))]
49impl C {
50    /// Stuff.
51    #[inline]
52    #[must_use]
53    pub const fn b(self) -> u32 {
54        10
55    }
56}