Skip to content

Commit

Permalink
Merge pull request #58 from GrigorenkoPV/dep
Browse files Browse the repository at this point in the history
Cargo: use "dep:.." syntax for optional dependencies
  • Loading branch information
droundy authored Sep 14, 2024
2 parents 8a5feb3 + 8b8e2fe commit 1e07522
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 1e07522

Please sign in to comment.