fix: review cargo config
* move package settings into correct table * move .cargo into wasm dir * set "std" for burn
This commit is contained in:
parent
b84eaaac82
commit
4152af652b
4 changed files with 17 additions and 9 deletions
8
wasm/.cargo/config.toml
Normal file
8
wasm/.cargo/config.toml
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
[target.wasm32-unknown-unknown]
|
||||
rustflags = [
|
||||
"-Ctarget-feature=+simd128,+bulk-memory,+reference-types",
|
||||
'--cfg', 'getrandom_backend="wasm_js"',
|
||||
"--cfg=has_std",
|
||||
"-Zlocation-detail=none",
|
||||
"-Zthreads=6",
|
||||
]
|
||||
|
|
@ -1,13 +1,16 @@
|
|||
[workspace]
|
||||
resolver = "3"
|
||||
rust-version = "1.94"
|
||||
edition = "2024"
|
||||
members = ["inference-models", "model-ai-text"]
|
||||
|
||||
[workspace.package]
|
||||
version = "0.0.1-rc.1"
|
||||
rust-version = "1.96"
|
||||
edition = "2024"
|
||||
|
||||
[workspace.dependencies]
|
||||
## Workspace models
|
||||
model-ai-text.path = "./model-ai-text"
|
||||
model-ai-text.version = "^0.1"
|
||||
model-ai-text.version = "=0.0.1-rc.1"
|
||||
## Wasm
|
||||
wasm-bindgen.version = "=0.2.114"
|
||||
wasm-bindgen-futures.version = "^0.4"
|
||||
|
|
@ -32,9 +35,11 @@ tokenizers.features = ["unstable_wasm"]
|
|||
burn.git = "https://github.com/tracel-ai/burn.git"
|
||||
burn.rev = "3a0e604cb14e445cd5a3686fbe06d0e11c76f05a"
|
||||
burn.default-features = false
|
||||
burn.features = ["std"]
|
||||
burn-store.git = "https://github.com/tracel-ai/burn.git"
|
||||
burn-store.rev = "3a0e604cb14e445cd5a3686fbe06d0e11c76f05a"
|
||||
burn-store.default-features = false
|
||||
burn-store.features = ["std"]
|
||||
burn-onnx.git = "https://github.com/tracel-ai/burn-onnx.git"
|
||||
burn-onnx.rev = "17a0864e02c19669b143e4227038363bb5194589"
|
||||
burn-onnx.default-features = false
|
||||
|
|
|
|||
|
|
@ -1,7 +1,8 @@
|
|||
[package]
|
||||
name = "inference-models"
|
||||
version = "0.1.0"
|
||||
edition = "2024"
|
||||
version.workspace = true
|
||||
edition.workspace = true
|
||||
rust-version.workspace = true
|
||||
|
||||
[lib]
|
||||
crate-type = ["cdylib", "rlib"]
|
||||
|
|
@ -21,7 +22,7 @@ console_error_panic_hook.workspace = true
|
|||
tracing.workspace = true
|
||||
## Inf
|
||||
burn.workspace = true
|
||||
burn.features = ["ndarray", "webgpu"]
|
||||
burn.features = ["ndarray", "wgpu", "webgpu"]
|
||||
burn-store.workspace = true
|
||||
burn-store.features = ["burnpack"]
|
||||
tokenizers.workspace = true
|
||||
|
|
|
|||
|
|
@ -1,7 +1,8 @@
|
|||
[package]
|
||||
name = "model-ai-text"
|
||||
version = "0.1.0"
|
||||
edition = "2024"
|
||||
version.workspace = true
|
||||
edition.workspace = true
|
||||
rust-version.workspace = true
|
||||
|
||||
[dependencies]
|
||||
## Logging
|
||||
|
|
|
|||
Loading…
Reference in a new issue