once_cell has now been merged into rust core. This removes the
lazy_static dependency and migrates over to the built in `OnceLock`.
Its always good to remove dependencies where possible, this also give us
a preference for the built in `OnceLock`
```
Benchmark 1: chore: add benchmark for `set_items`
Time (mean ± σ): 6.327 s ± 0.199 s [User: 15.316 s, System: 1.323 s]
Range (min … max): 6.087 s … 6.712 s 10 runs
Benchmark 2: refactor: remove lazy_static
Time (mean ± σ): 6.171 s ± 0.251 s [User: 15.223 s, System: 1.382 s]
Range (min … max): 5.910 s … 6.776 s 10 runs
Summary
'refactor: remove lazy_static' ran
1.03 ± 0.05 times faster than 'chore: add benchmark for `set_items`'
```
31 lines
402 B
TOML
31 lines
402 B
TOML
[package]
|
|
name = "ivy"
|
|
version = "0.0.1"
|
|
edition = "2021"
|
|
|
|
[lib]
|
|
name = "ivyrs"
|
|
crate-type = ["cdylib", "rlib"]
|
|
path = "rust/lib.rs"
|
|
|
|
[dependencies]
|
|
ignore = "0.4.20"
|
|
fuzzy-matcher = "0.3.7"
|
|
rayon = "1.7.0"
|
|
|
|
[dev-dependencies]
|
|
criterion = "0.5.1"
|
|
|
|
[profile.release]
|
|
opt-level = 3
|
|
|
|
[profile.bench]
|
|
debug = true
|
|
|
|
[[bench]]
|
|
name = "ivy_match"
|
|
harness = false
|
|
|
|
[[bench]]
|
|
name = "ivy_files"
|
|
harness = false
|