Skip to content

Commit

Permalink
added features
Browse files Browse the repository at this point in the history
  • Loading branch information
Arteiii committed Apr 21, 2024
1 parent a2414f1 commit be62dae
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
8 changes: 8 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@ path = "src/lib.rs"
test = true


[features]
default = ["spinner", "progressbar", "menu"]

spinner = []
progressbar = []
menu = []


[dependencies]
crossterm = "0.27.0"
rand = "0.8.5"
Expand Down
14 changes: 12 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,20 @@
// #![feature(rustdoc_missing_doc_code_examples)]
// #![warn(rustdoc::missing_doc_code_examples)]pub mod color;

// Helper
pub mod color;
pub(crate) mod iterators;
pub mod style;

// Main features
#[cfg(feature = "menu")]
pub mod menu;

#[cfg(feature = "progressbar")]
pub mod progress;

#[cfg(feature = "spinner")]
pub mod spinner;
pub mod style;

// Crate
pub(crate) mod iterators;
pub(crate) mod terminal;

0 comments on commit be62dae

Please sign in to comment.