Skip to main content

getargs_derive/
lib.rs

1#![doc = include_str!("../docs/rustdoc-links.md")]
2#![doc = include_str!("../README.md")]
3#![no_std]
4#![deny(missing_docs)]
5#![cfg_attr(docsrs, feature(doc_cfg))]
6
7#[doc(hidden)]
8extern crate self as getargs_derive;
9
10#[cfg(feature = "alloc")]
11extern crate alloc;
12
13#[cfg(feature = "std")]
14extern crate std;
15
16mod collection;
17mod command;
18#[cfg(feature = "std")]
19pub mod completions;
20mod env;
21mod error;
22pub mod guide;
23mod input;
24#[cfg(feature = "std")]
25mod os;
26mod parsing;
27mod suggest;
28mod value_enum;
29
30#[doc(hidden)]
31#[path = "private.rs"]
32pub mod __private;
33
34pub use collection::Values;
35pub use command::{ArgInfo, ArgKind, Command, CommandInfo};
36pub use error::*;
37pub use input::Lossy;
38pub use value_enum::{ParseValueEnumError, ValueEnum};
39
40#[doc(hidden)]
41pub use collection::{
42    Collection as __Collection, finish_values as __finish_values, push_values as __push_values,
43    values_len as __values_len,
44};
45
46#[doc(hidden)]
47pub use env::{__EnvSupport, __env};
48
49#[doc(hidden)]
50pub use parsing::{
51    RawArgs as __RawArgs, accepts_value as __accepts_value, negative_number as __negative_number,
52};
53#[doc(hidden)]
54pub use suggest::suggest as __suggest;
55
56#[doc(hidden)]
57pub use value_enum::{
58    HelpPart as __HelpPart, help_bytes as __help_bytes, help_len as __help_len,
59    help_str as __help_str, value_name as __value_name,
60};
61
62pub use getargs_derive_macros::{GetArgs, Subcommand, ValueEnum};