1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
//! This is a dummy package to test //! [[package.metadata.docs.rs]](https://github.com/onur/docs.rs/pull/73). extern crate serde; /// This function is only available on feature1 #[cfg(feature="feature1")] pub fn feature1() {} /// This function is only available on feature2 #[cfg(feature="feature2")] pub fn feature2() {} /// This function is only available on feature3 #[cfg(feature="feature3")] pub fn feature3() {} /// This function is only available on i686 unix systems #[cfg(all(unix, target_pointer_width = "32"))] pub fn i386_only_func() {} /// This is a demostration to external links pub struct MyStruct<T: serde::Serialize> { pub trait_from_serde: T, } /// Some private const const PRIVATE_CONST: bool = true;