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]
|
[workspace]
|
||||||
resolver = "3"
|
resolver = "3"
|
||||||
rust-version = "1.94"
|
|
||||||
edition = "2024"
|
|
||||||
members = ["inference-models", "model-ai-text"]
|
members = ["inference-models", "model-ai-text"]
|
||||||
|
|
||||||
|
[workspace.package]
|
||||||
|
version = "0.0.1-rc.1"
|
||||||
|
rust-version = "1.96"
|
||||||
|
edition = "2024"
|
||||||
|
|
||||||
[workspace.dependencies]
|
[workspace.dependencies]
|
||||||
## Workspace models
|
## Workspace models
|
||||||
model-ai-text.path = "./model-ai-text"
|
model-ai-text.path = "./model-ai-text"
|
||||||
model-ai-text.version = "^0.1"
|
model-ai-text.version = "=0.0.1-rc.1"
|
||||||
## Wasm
|
## Wasm
|
||||||
wasm-bindgen.version = "=0.2.114"
|
wasm-bindgen.version = "=0.2.114"
|
||||||
wasm-bindgen-futures.version = "^0.4"
|
wasm-bindgen-futures.version = "^0.4"
|
||||||
|
|
@ -32,9 +35,11 @@ tokenizers.features = ["unstable_wasm"]
|
||||||
burn.git = "https://github.com/tracel-ai/burn.git"
|
burn.git = "https://github.com/tracel-ai/burn.git"
|
||||||
burn.rev = "3a0e604cb14e445cd5a3686fbe06d0e11c76f05a"
|
burn.rev = "3a0e604cb14e445cd5a3686fbe06d0e11c76f05a"
|
||||||
burn.default-features = false
|
burn.default-features = false
|
||||||
|
burn.features = ["std"]
|
||||||
burn-store.git = "https://github.com/tracel-ai/burn.git"
|
burn-store.git = "https://github.com/tracel-ai/burn.git"
|
||||||
burn-store.rev = "3a0e604cb14e445cd5a3686fbe06d0e11c76f05a"
|
burn-store.rev = "3a0e604cb14e445cd5a3686fbe06d0e11c76f05a"
|
||||||
burn-store.default-features = false
|
burn-store.default-features = false
|
||||||
|
burn-store.features = ["std"]
|
||||||
burn-onnx.git = "https://github.com/tracel-ai/burn-onnx.git"
|
burn-onnx.git = "https://github.com/tracel-ai/burn-onnx.git"
|
||||||
burn-onnx.rev = "17a0864e02c19669b143e4227038363bb5194589"
|
burn-onnx.rev = "17a0864e02c19669b143e4227038363bb5194589"
|
||||||
burn-onnx.default-features = false
|
burn-onnx.default-features = false
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,8 @@
|
||||||
[package]
|
[package]
|
||||||
name = "inference-models"
|
name = "inference-models"
|
||||||
version = "0.1.0"
|
version.workspace = true
|
||||||
edition = "2024"
|
edition.workspace = true
|
||||||
|
rust-version.workspace = true
|
||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
crate-type = ["cdylib", "rlib"]
|
crate-type = ["cdylib", "rlib"]
|
||||||
|
|
@ -21,7 +22,7 @@ console_error_panic_hook.workspace = true
|
||||||
tracing.workspace = true
|
tracing.workspace = true
|
||||||
## Inf
|
## Inf
|
||||||
burn.workspace = true
|
burn.workspace = true
|
||||||
burn.features = ["ndarray", "webgpu"]
|
burn.features = ["ndarray", "wgpu", "webgpu"]
|
||||||
burn-store.workspace = true
|
burn-store.workspace = true
|
||||||
burn-store.features = ["burnpack"]
|
burn-store.features = ["burnpack"]
|
||||||
tokenizers.workspace = true
|
tokenizers.workspace = true
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,8 @@
|
||||||
[package]
|
[package]
|
||||||
name = "model-ai-text"
|
name = "model-ai-text"
|
||||||
version = "0.1.0"
|
version.workspace = true
|
||||||
edition = "2024"
|
edition.workspace = true
|
||||||
|
rust-version.workspace = true
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
## Logging
|
## Logging
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue