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