Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ redundant_else = "allow"
foldhash = { version = "0.2.0", default-features = false, optional = true }

# For external trait impls
paralight = { version = "0.0.10", optional = true }
rayon = { version = "1.9.0", optional = true }
serde_core = { version = "1.0.221", default-features = false, optional = true }

Expand Down Expand Up @@ -107,5 +108,5 @@ default-hasher = ["dep:foldhash"]
inline-more = []

[package.metadata.docs.rs]
features = ["nightly", "rayon", "serde", "raw-entry"]
features = ["nightly", "paralight", "rayon", "serde", "raw-entry"]
rustdoc-args = ["--generate-link-to-definition"]
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ This crate has the following Cargo features:
- `nightly`: Enables nightly-only features including: `#[may_dangle]`.
- `serde`: Enables serde serialization support.
- `rayon`: Enables rayon parallel iterator support.
- `paralight`: Enables paralight parallel iterator support.
- `equivalent`: Allows comparisons to be customized with the `Equivalent` trait. (enabled by default)
- `raw-entry`: Enables access to the deprecated `RawEntry` API.
- `inline-more`: Adds inline hints to most functions, improving run-time performance at the cost
Expand Down
2 changes: 1 addition & 1 deletion ci/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ if [ "${NO_STD}" = "1" ]; then
FEATURES="rustc-internal-api"
OP="build"
else
FEATURES="rustc-internal-api,serde,rayon"
FEATURES="rustc-internal-api,serde,rayon,paralight"
OP="test"
fi

Expand Down
4 changes: 2 additions & 2 deletions ci/tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ if rustc --version | grep --quiet nightly ; then
export RUSTDOCFLAGS="-Zunstable-options --check"
fi

cargo doc --no-deps --features serde,rayon
cargo doc --no-deps --features serde,rayon,paralight

if retry rustup component add rustfmt ; then
cargo fmt --all -- --check
fi

if retry rustup component add clippy ; then
cargo clippy --all --tests --features serde,rayon -- -D warnings
cargo clippy --all --tests --features serde,rayon,paralight -- -D warnings
fi

if command -v taplo ; then
Expand Down
2 changes: 2 additions & 0 deletions src/external_trait_impls/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#[cfg(feature = "paralight")]
mod paralight;
#[cfg(feature = "rayon")]
pub(crate) mod rayon;
#[cfg(feature = "serde")]
Expand Down
Loading