mirror of
https://github.com/huggingface/xet-core.git
synced 2026-06-04 13:30:29 +08:00
- Upgrade Rust edition and rustc version to bring in some nice features,
e.g. let chains instead of nested if block.
- Fix clippy and format due to the upgrade.
- Fix a bug identified by the new rustc:
6cb0a7fb4e/xet_runtime/src/runtime.rs (L195)
```
#[cfg(not(target_family = "wasm"))]
{
// A new multithreaded runtime with a capped number of threads
TokioRuntimeBuilder::new_multi_thread().worker_threads(get_num_tokio_worker_threads())
}
```
here the end curly bracket drops the temporary builder while a `&mut
Self` to the dropped value is returned. (this may be due to a difference
between compilers regarding how they treat the scope of "{...}" of
`#[cfg(...))] {...}`?)
31 lines
611 B
TOML
31 lines
611 B
TOML
[package]
|
|
name = "chunk_cache_bench"
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
|
|
[dependencies]
|
|
cas_types = { path = "../cas_types" }
|
|
chunk_cache = { path = "../chunk_cache" }
|
|
|
|
async-trait = "0.1"
|
|
base64 = "0.22"
|
|
clap = { version = "4", features = ["derive"] }
|
|
r2d2 = "0.8.10"
|
|
r2d2_postgres = "0.18.1"
|
|
sccache = "0.8"
|
|
tempdir = "0.3"
|
|
tokio = { version = "1.44", features = ["full"] }
|
|
|
|
[[bench]]
|
|
name = "cache_bench"
|
|
harness = false
|
|
bench = true
|
|
|
|
# To run: ./cache_resilience_test parent
|
|
[[bin]]
|
|
name = "cache_resilience_test"
|
|
|
|
[dev-dependencies]
|
|
criterion = { version = "0.4", features = ["async_tokio"] }
|
|
rand = "0.8"
|