Files
xet-core/data/Cargo.toml
Di Xiao fa030edcd5 upgrade rust edition to 2024; upgrade rustc to 1.89 (#494)
- 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(...))] {...}`?)
2025-09-17 10:28:50 -07:00

67 lines
1.7 KiB
TOML

[package]
name = "data"
version = "0.14.5"
edition = "2024"
[lib]
doctest = false
[[bin]]
name = "x"
path = "src/bin/example.rs"
[[bin]]
name = "xtool"
path = "src/bin/xtool.rs"
[dependencies]
cas_client = { path = "../cas_client" }
cas_object = { path = "../cas_object" }
cas_types = { path = "../cas_types" }
deduplication = { path = "../deduplication" }
error_printer = { path = "../error_printer" }
hub_client = { path = "../hub_client" }
mdb_shard = { path = "../mdb_shard" }
merklehash = { path = "../merklehash" }
progress_tracking = { path = "../progress_tracking" }
utils = { path = "../utils" }
xet_runtime = { path = "../xet_runtime" }
anyhow = { workspace = true }
async-trait = { workspace = true }
bytes = { workspace = true }
chrono = { workspace = true }
clap = { workspace = true }
dirs = { workspace = true }
jsonwebtoken = { workspace = true }
lazy_static = { workspace = true }
more-asserts = { workspace = true }
prometheus = { workspace = true }
rand = { workspace = true }
rand_chacha = { workspace = true }
regex = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
tempfile = { workspace = true }
thiserror = { workspace = true }
tokio = { workspace = true, features = ["rt-multi-thread", "rt"] }
tracing = { workspace = true }
ulid = { workspace = true }
walkdir = { workspace = true }
# Windows doesn't support assembly for compilation
[target.'cfg(not(target_os = "windows"))'.dependencies]
sha2 = { workspace = true, features = ["asm"] }
[target.'cfg(target_os = "windows")'.dependencies]
sha2 = { workspace = true }
[dev-dependencies]
serial_test = { workspace = true }
tracing-test = { workspace = true }
ctor = { workspace = true }
[features]
strict = []
expensive_tests = []