Files
xet-core/hf_xet_wasm/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

71 lines
1.7 KiB
TOML

[package]
name = "hf_xet_wasm"
version = "0.0.1"
edition = "2024"
[lib]
crate-type = ["cdylib", "rlib"]
[dependencies]
cas_client = { path = "../cas_client" }
cas_object = { path = "../cas_object" }
cas_types = { path = "../cas_types" }
deduplication = { path = "../deduplication" }
mdb_shard = { path = "../mdb_shard" }
merklehash = { path = "../merklehash" }
progress_tracking = { path = "../progress_tracking" }
utils = { path = "../utils" }
anyhow = "1"
async-channel = "2.3.1"
async-trait = "0.1.88"
blake3 = "1.7.0"
bytes = "1.10.1"
console_error_panic_hook = "0.1.7"
console_log = { version = "1.0.0", features = ["color"] }
env_logger = "0.11.5"
futures = "0.3.31"
futures-io = "0.3.31"
getrandom = { version = "0.3", features = ["wasm_js"] }
js-sys = "0.3.72"
log = "0.4.22"
serde = { version = "1.0.217", features = ["derive"] }
serde_json = "1.0.140"
serde-wasm-bindgen = "0.6.5"
sha2 = { version = "0.10.8", features = ["asm"] }
thiserror = "2.0"
tokio = { version = "1.44", features = ["sync", "rt"] }
tokio_with_wasm = { version = "0.8.2", features = ["rt"] }
tokio-stream = "0.1.17"
uuid = { version = "1", features = ["v4", "js"] }
wasm_thread = "0.3"
wasm-bindgen = "=0.2.100"
wasm-bindgen-futures = "0.4.50"
web-sys = { version = "0.3.72", features = [
"File",
"ReadableStream",
"ReadableStreamDefaultReader",
"Blob",
"DedicatedWorkerGlobalScope",
"MessageEvent",
"Url",
"Worker",
"WorkerType",
"WorkerOptions",
"WorkerGlobalScope",
"Window",
"Navigator",
"WorkerNavigator",
"Headers",
"Request",
"RequestInit",
"RequestMode",
"Response",
] }
[package.metadata.docs.rs]
targets = ["wasm32-unknown-unknown"]
[dev-dependencies]
wasm-bindgen-test = "0.3.50"