Skip to content

Commit

Permalink
rename feature to _unstable_api.
Browse files Browse the repository at this point in the history
  • Loading branch information
ratmice committed Dec 18, 2023
1 parent 32f11cc commit 505f05c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions lrlex/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ name = "lrlex"
path = "src/lib/mod.rs"

[features]
_unstable_api_key = []
_unsealed_unstable_traits = ["_unstable_api_key"]
_unstable_api = []
_unsealed_unstable_traits = ["_unstable_api"]

[build-dependencies]
vergen = { version = "8", default-features = false, features = ["build"] }
Expand Down
6 changes: 3 additions & 3 deletions lrlex/src/lib/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,9 @@ mod unstable {
/// A module for lifting restrictions on visibility of unstable features.
pub mod unstable_api {
/// Unstable functions that take a value `UnstableApi` require
/// the "_unstable_api_key" feature. This feature controls
/// the "_unstable_api" feature. This feature controls
/// whether the value has `pub` visibility outside the crate.
#[cfg(feature = "_unstable_api_key")]
#[cfg(feature = "_unstable_api")]
pub use unstable::UnstableApi;

/// This is a a supertrait for traits that are considered to be Unstable.
Expand Down Expand Up @@ -229,7 +229,7 @@ pub mod unstable_api {
/// ```
///
///
/// Calling an implementation of the trait outside the crate (requires feature `_unstable_api_key`:
/// Calling an implementation of the trait outside the crate (requires feature `_unstable_api`:
/// ```
/// let x: &dyn Foo = ...;
/// x.foo(unstable_api::UnstableApi);
Expand Down
4 changes: 2 additions & 2 deletions lrpar/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ path = "src/lib/mod.rs"

[features]
serde = []
_unstable_api_key = []
_unsealed_unstable_traits = ["_unstable_api_key"]
_unstable_api = []
_unsealed_unstable_traits = ["_unstable_api"]

[build-dependencies]
vergen = { version = "8", default-features = false, features = ["build"] }
Expand Down
6 changes: 3 additions & 3 deletions lrpar/src/lib/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,9 @@ mod unstable {
/// A module for lifting restrictions on visibility of unstable features.
pub mod unstable_api {
/// Unstable functions that take a value `UnstableApi` require
/// the "_unstable_api_key" feature. This feature controls
/// the "_unstable_api" feature. This feature controls
/// whether the value has `pub` visibility outside the crate.
#[cfg(feature = "_unstable_api_key")]
#[cfg(feature = "_unstable_api")]
pub use unstable::UnstableApi;

/// This is a a supertrait for traits that are considered to be Unstable.
Expand Down Expand Up @@ -274,7 +274,7 @@ pub mod unstable_api {
/// ```
///
///
/// Calling an implementation of the trait outside the crate (requires feature `_unstable_api_key`:
/// Calling an implementation of the trait outside the crate (requires feature `_unstable_api`:
/// ```
/// let x: &dyn Foo = ...;
/// x.foo(unstable_api::UnstableApi);
Expand Down

0 comments on commit 505f05c

Please sign in to comment.