aboutsummaryrefslogtreecommitdiff
path: root/mingling_picker/src/lib.rs
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-07-17 04:04:11 +0800
committer魏曹先生 <1992414357@qq.com>2026-07-17 04:04:11 +0800
commitdc9d5ea0026a6cb6bb477d5db8e9190a79ecb337 (patch)
treefffa1630946e8299e25f805955cc3baa0479be0d /mingling_picker/src/lib.rs
parentb9f208deed7b8e012fbcd84202e2fb1d5eb8eeb9 (diff)
docs: add module-level documentation and improve doc comments
Diffstat (limited to 'mingling_picker/src/lib.rs')
-rw-r--r--mingling_picker/src/lib.rs16
1 files changed, 15 insertions, 1 deletions
diff --git a/mingling_picker/src/lib.rs b/mingling_picker/src/lib.rs
index afc7aca..ffa6e13 100644
--- a/mingling_picker/src/lib.rs
+++ b/mingling_picker/src/lib.rs
@@ -1,3 +1,5 @@
+#![doc = include_str!("../README.md")]
+
mod builtin;
mod picker;
@@ -12,16 +14,28 @@ 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::*;
+ pub use mingling_picker_macros::arg;
}
/// Provides the types necessary for implementing the `Pickable` trait