Skip to content
Draft
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
4 changes: 2 additions & 2 deletions .github/workflows/bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ jobs:
with:
tool: cargo-codspeed
- name: Build the benchmark target(s)
run: cargo codspeed build --profile profiling --features="arbitrary"
run: cargo codspeed build --profile profiling -p nybbles-bench
- name: Run the benchmarks
uses: CodSpeedHQ/action@v3
with:
run: cargo codspeed run --workspace
run: cargo codspeed run -p nybbles-bench
token: ${{ secrets.CODSPEED_TOKEN }}
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
i686-unknown-linux-gnu,
x86_64-unknown-linux-gnu,
]
rust: [nightly, stable, "1.73"] # MSRV
rust: [nightly, stable, "1.82"] # MSRV
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
Expand All @@ -45,12 +45,12 @@ jobs:

- run: cargo build
- run: cargo test
if: matrix.rust != '1.73' # MSRV
if: matrix.rust != '1.82' # MSRV
- run: cargo build --no-default-features
- run: cargo test --no-default-features
if: matrix.rust != '1.73' # MSRV
if: matrix.rust != '1.82' # MSRV
- run: cargo test
if: matrix.rust != '1.73' # MSRV
if: matrix.rust != '1.82' # MSRV
- run: cargo test --all-features
if: matrix.rust == 'nightly'

Expand Down
33 changes: 23 additions & 10 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,16 +1,32 @@
[package]
name = "nybbles"
version = "0.3.4"
authors = ["DaniPopes <[email protected]>"]
description = "Efficient nibble-sized (4-bit) byte sequence data structure"
edition = "2021"
rust-version = "1.73"
license = "MIT OR Apache-2.0"
categories = ["data-structures", "no-std"]
keywords = ["nibbles", "vector", "ethereum"]
exclude = [".github/", "deny.toml", "release.toml", "rustfmt.toml"]

edition.workspace = true
rust-version.workspace = true
authors.workspace = true
license.workspace = true
homepage.workspace = true
repository.workspace = true

[workspace]
members = [".", "nybbles-bench"]
resolver = "2"

[workspace.package]
edition = "2021"
rust-version = "1.82"
authors = ["DaniPopes <[email protected]>"]
license = "MIT OR Apache-2.0"
homepage = "https://github.com/alloy-rs/nybbles"
repository = "https://github.com/alloy-rs/nybbles"
exclude = [".github/", "deny.toml", "release.toml", "rustfmt.toml"]

[lib]
bench = false

[dependencies]
smallvec = { version = "1.0", default-features = false, features = [
Expand All @@ -36,6 +52,8 @@ proptest = { version = "1.4", default-features = false, optional = true, feature
] }

[dev-dependencies]
nybbles = { path = ".", features = ["arbitrary"] }

hex-literal = "1"
criterion = { version = "2.10", package = "codspeed-criterion-compat" }

Expand All @@ -47,11 +65,6 @@ serde = ["dep:serde", "smallvec/serde"]
rlp = ["dep:alloy-rlp"]
arbitrary = ["dep:arbitrary", "dep:proptest", "smallvec/arbitrary", "std"]

[[bench]]
name = "bench"
harness = false
required-features = ["arbitrary"]

# Use the `--profile profiling` flag to show symbols in release mode.
# e.g. `cargo build --profile profiling`
[profile.profiling]
Expand Down
Loading
Loading