aboutsummaryrefslogtreecommitdiff
path: root/mingling_picker/src/lib.rs
blob: ffa6e132bf07b5191a080753d49393afe7736492 (plain) (blame)
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#![doc = include_str!("../README.md")]

mod builtin;

mod picker;
pub use picker::*;

mod pickable;
pub use pickable::*;

mod arg;
pub use arg::*;

mod infos;
pub use infos::*;

/// Provides the specific parsing logic for command-line arguments and common utilities,
/// as well as customization of command-line argument styles.
pub mod parselib;

/// Parser-provided parseable command-line types
pub mod value;

/// The prelude module, which re-exports the most commonly used traits and types.
///
/// This module is intended to be imported with a wildcard import:
///
/// ```ignore
/// use mingling_picker::prelude::*;
/// ```
pub mod prelude {
    pub use crate::IntoPicker;
    pub use crate::macros::arg;
}

/// Re-export of the `mingling_picker_macros` crate
pub mod macros {
    pub use mingling_picker_macros::arg;
}

/// Provides the types necessary for implementing the `Pickable` trait
pub mod pickable_needed {
    pub use crate::{Pickable, PickerArg, PickerArgAttr, PickerArgResult, TagPhaseContext};
}

/// Provides the types necessary for implementing the `Matcher` trait
pub mod matcher_needed {
    pub use crate::PickerArgInfo;
    pub use crate::parselib::{MaskedArg, Matcher, ParserStyle};
}

#[cfg(feature = "mingling_support")]
mod corebind;

#[allow(unused_imports)]
#[cfg(feature = "mingling_support")]
pub use corebind::*;