firaid-moz/wasm/inference-models/Cargo.toml
masters 4152af652b
fix: review cargo config
* move package settings into correct table
* move .cargo into wasm dir
* set "std" for burn
2026-03-12 02:20:01 +05:00

56 lines
1.2 KiB
TOML

[package]
name = "inference-models"
version.workspace = true
edition.workspace = true
rust-version.workspace = true
[lib]
crate-type = ["cdylib", "rlib"]
[dependencies]
## Models
model-ai-text.workspace = true
model-ai-text.optional = true
## Wasm
wasm-bindgen.workspace = true
wasm-bindgen-futures.workspace = true
js-sys.workspace = true
gloo.workspace = true
wasm-tracing.workspace = true
console_error_panic_hook.workspace = true
## Logging
tracing.workspace = true
## Inf
burn.workspace = true
burn.features = ["ndarray", "wgpu", "webgpu"]
burn-store.workspace = true
burn-store.features = ["burnpack"]
tokenizers.workspace = true
## Seri
serde.workspace = true
serde_json.workspace = true
## Codegen
thiserror.workspace = true
## Wrkrnd
getrandom_v4.workspace = true
getrandom_v3.workspace = true
[build-dependencies]
hf-hub.workspace = true
burn-onnx.workspace = true
serde_json.workspace = true
[features]
ai_text = ["dep:model-ai-text"]
[package.metadata.wasm-pack]
profile.release.wasm-opt = [
"-O4",
"-ffm",
"--enable-simd",
"--enable-bulk-memory",
"--enable-reference-types",
"--enable-nontrapping-float-to-int",
"--strip-debug",
"--strip-producers",
]