Skip to content

Commit

Permalink
Cargo: use "dep:.." syntax for optional dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
GrigorenkoPV committed Jul 27, 2024
1 parent 8a5feb3 commit 8b8e2fe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,12 @@ append-only-vec = { version = "0.1.2", optional = true }

[features]

arc = ["ahash", "dashmap", "once_cell"]
bench = ["arc", "arc-interner", "arena", "memorable-wordlist", "append-only-vec"]
arc = ["dep:ahash", "dep:dashmap", "dep:once_cell"]
bench = ["arc", "arena", "_experimental-new-intern", "dep:memorable-wordlist"]
arena = []
intern = []
default = ["intern"]
_experimental-new-intern = ["dep:append-only-vec"]

[dev-dependencies]
quickcheck = "^0.9.2"
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@

mod boxedset;

#[cfg(feature = "append-only-vec")]
#[cfg(feature = "_experimental-new-intern")]
mod typearena;

#[doc(hidden)]
#[cfg(feature = "append-only-vec")]
#[cfg(feature = "_experimental-new-intern")]
pub use typearena::Intern as NewIntern;

#[cfg(feature = "intern")]
Expand Down

0 comments on commit 8b8e2fe

Please sign in to comment.