Skip to content

Commit

Permalink
Remove bench
Browse files Browse the repository at this point in the history
  • Loading branch information
dani-garcia committed Oct 7, 2024
1 parent 32088c7 commit f882fb2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 194 deletions.
6 changes: 1 addition & 5 deletions crates/bitwarden-crypto/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ memsec = { version = "0.7.0", features = [
], git = "https://github.com/dani-garcia/memsec", rev = "3d2e272d284442637bac0a7d94f76883960db7e2" }

[dev-dependencies]
criterion = { version = "0.5.1", features = ["html_reports"] }
criterion = "0.5.1"
rand_chacha = "0.3.1"
serde_json = { workspace = true }

Expand All @@ -66,9 +66,5 @@ name = "zeroizing_allocator"
harness = false
required-features = ["no-memory-hardening"]

[[bench]]
name = "new_encryptable"
harness = false

[lints]
workspace = true
187 changes: 0 additions & 187 deletions crates/bitwarden-crypto/benches/new_encryptable.rs

This file was deleted.

4 changes: 2 additions & 2 deletions crates/memory-testing/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ RUN mkdir -p /app/crates/bitwarden-crypto/src \
&& touch /app/crates/bitwarden-crypto/src/lib.rs \
/app/crates/bitwarden-crypto/benches/default_allocator.rs \
/app/crates/bitwarden-crypto/benches/zeroizing_allocator.rs \
/app/crates/bitwarden-crypto/benches/new_encryptable.rs \
&& echo 'fn main(){}' > /app/crates/memory-testing/src/main.rs \
&& cargo build -p memory-testing --release

# Delete dummy files and copy the actual source code
RUN rm /app/crates/bitwarden-crypto/src/lib.rs \
/app/crates/bitwarden-crypto/benches/*.rs \
/app/crates/bitwarden-crypto/benches/default_allocator.rs \
/app/crates/bitwarden-crypto/benches/zeroizing_allocator.rs \
/app/crates/memory-testing/src/main.rs

COPY crates/bitwarden-crypto /app/crates/bitwarden-crypto
Expand Down

0 comments on commit f882fb2

Please sign in to comment.