Skip to content
Draft
Show file tree
Hide file tree
Changes from 6 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 }}
31 changes: 22 additions & 9 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"
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.73"
authors = ["DaniPopes <[email protected]>"]
license = "MIT OR Apache-2.0"
categories = ["data-structures", "no-std"]
keywords = ["nibbles", "vector", "ethereum"]
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