Skip to content

Commit

Permalink
Merge branch 'master' into simd
Browse files Browse the repository at this point in the history
  • Loading branch information
james7132 committed Feb 26, 2024
2 parents 55a08db + 9de771c commit ebb4a99
Show file tree
Hide file tree
Showing 7 changed files with 681 additions and 160 deletions.
27 changes: 26 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ env:
CARGO_INCREMENTAL: 0

jobs:
# Ensure the crate builds
build:

runs-on: ubuntu-latest
Expand All @@ -32,6 +33,7 @@ jobs:
cargo test --verbose --features "$FEATURES" &&
cargo test --verbose --release --features "$FEATURES"
# Use clippy to lint for code smells
clippy:

runs-on: ubuntu-latest
Expand All @@ -52,6 +54,7 @@ jobs:
run: |
cargo clippy
# Enforce rustfmt formatting
formatting:

runs-on: ubuntu-latest
Expand All @@ -70,4 +73,26 @@ jobs:
override: true
- name: Run Clippy
run: |
cargo fmt --all --check
cargo fmt --all --check
# Ensure the benchmarks compile
benchmark_compiles:

runs-on: ubuntu-latest
strategy:
matrix:
# Check builds only on stable
rust: [stable]

steps:
- uses: actions/checkout@v2
- uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: ${{ matrix.rust }}
components: clippy
override: true
- name: Run Clippy
run: |
cd benches
cargo bench --bench benches --no-run
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[package]
name = "fixedbitset"
version = "0.4.2"
version = "0.5.0"
authors = ["bluss"]
license = "MIT/Apache-2.0"
license = "MIT OR Apache-2.0"
readme = "README.md"

description = "FixedBitSet is a simple bitset collection"
Expand Down
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,17 @@ Please read the [API documentation here](https://docs.rs/fixedbitset/)

# Recent Changes

- 0.5.0
- [#74](https://github.com/petgraph/fixedbitset/pull/74): Accelerated set operations (union, intersection, difference,
symmetric difference) by using larger blocks internally, by @james7132.
- [#88](https://github.com/petgraph/fixedbitset/pull/88): Added `FixedBitSet::remove` by @james7132.
- [#89](https://github.com/petgraph/fixedbitset/pull/89): Added `FixedBitSet::zeros` and the `Zeros` iterator by @james7132.
- [#92](https://github.com/petgraph/fixedbitset/pull/92): Added `FixedBitSet::grow_and_insert` function, a
non-panicking version of `insert` that grows the underlying storage as need, by @shuoli84.
- [#98](https://github.com/petgraph/fixedbitset/pull/98): `Ones` now implements `DoubleEndedIterator`, by @tikhu.
- [#99](https://github.com/petgraph/fixedbitset/pull/99): **Breaking change**: serde now serializes and deserializes from a little-endian encoded
raw byte buffer. Existing stored instances of the serialized bitsets will need to be
re-encoded.
- 0.4.2
- [#79](https://github.com/petgraph/fixedbitset/pull/79): Add `is_clear`,
clarify `is_empty` and `len` documentation by \@nicopap.
Expand Down
15 changes: 15 additions & 0 deletions benches/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[package]
name = "benches"
version = "0.1.0"
edition = "2021"
description = "Benchmarks for FixedBitset"
publish = false
license = "MIT OR Apache-2.0"

[dev-dependencies]
fixedbitset = { path = ".." }
criterion = { version = "0.4", features = ["html_reports"] }

[[bench]]
name = "benches"
harness = false
131 changes: 0 additions & 131 deletions benches/benches.rs

This file was deleted.

Loading

0 comments on commit ebb4a99

Please sign in to comment.