Skip to content

Commit

Permalink
docs: Raise visibility of 'string' feature
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Sep 26, 2022
1 parent 2f93c17 commit bac3eb3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/_features.rs
Expand Up @@ -19,7 +19,7 @@
//! * **env**: Turns on the usage of environment variables during parsing.
//! * **unicode**: Turns on support for unicode characters (including emoji) in arguments and help messages.
//! * **wrap_help**: Turns on the help text wrapping feature, based on the terminal size.
//! * **string**: Allow runtime generated strings
//! * **string**: Allow runtime generated strings (e.g. with [`Str`][crate::builder::Str]).
//!
//! #### Experimental features
//!
Expand Down
3 changes: 3 additions & 0 deletions src/builder/os_str.rs
@@ -1,6 +1,9 @@
use crate::builder::Str;

/// A UTF-8-encoded fixed string
///
/// **NOTE:** To support dynamic values (i.e. `OsString`), enable the [`string`
/// feature][crate::_features]
#[derive(Default, Clone, Eq, PartialEq, PartialOrd, Ord, Hash)]
pub struct OsStr {
name: Inner,
Expand Down
3 changes: 3 additions & 0 deletions src/builder/str.rs
@@ -1,4 +1,7 @@
/// A UTF-8-encoded fixed string
///
/// **NOTE:** To support dynamic values (i.e. `String`), enable the [`string`
/// feature][crate::_features]
#[derive(Default, Clone, Eq, PartialEq, PartialOrd, Ord, Hash)]
pub struct Str {
name: Inner,
Expand Down

0 comments on commit bac3eb3

Please sign in to comment.