--- a/src/lib.rs +++ b/src/lib.rs @@ -1,4 +1,3 @@ -#![doc = include_str!("../README.md")] //! # Features //! - `crossterm` (default): Enables the [`From<&Event>`](enum.Input.html#method.from-2) implementation for [`Input`]. //! - `termion`: Enables the [`From<&Event>`](enum.Input.html#method.from-1) implementation for [`Input`]. @@ -15,3 +14,7 @@ pub use file_explorer::{File, FileExplorer, FileExplorerBuilder}; pub use input::Input; pub use widget::Theme; + +#[cfg(all(doctest, feature = "crossterm"))] +#[doc = include_str!("../README.md")] +pub struct ReadmeDoctests;