-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
54 lines (47 loc) · 1.68 KB
/
Copy pathCargo.toml
File metadata and controls
54 lines (47 loc) · 1.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
[package]
name = "alias"
version = "1.0.1"
description = "A Tauri App"
authors = ["you"]
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
# The `_lib` suffix may seem redundant but it is necessary
# to make the lib name unique and wouldn't conflict with the bin name.
# This seems to be only an issue on Windows, see https://github.com/rust-lang/cargo/issues/8519
name = "alias_lib"
crate-type = ["staticlib", "cdylib", "rlib"]
[build-dependencies]
tauri-build = { version = "2.6", features = [] }
[features]
default = ["onnx-ner"]
onnx-ner = ["dep:ndarray", "dep:ort", "dep:tokenizers"]
[dependencies]
tauri = { version = "2.11", features = [] }
tauri-plugin-opener = "2"
tauri-plugin-dialog = "2"
tauri-plugin-fs = "2"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
reqwest = { version = "0.12", default-features = false, features = ["stream", "native-tls"] }
futures-util = "0.3"
zip = { version = "2", default-features = false, features = ["deflate"] }
calamine = { version = "0.24", features = ["dates"] }
regex = "1"
once_cell = "1"
uuid = { version = "1", features = ["v4"] }
thiserror = "1"
anyhow = "1"
tokenizers = { version = "0.20", optional = true }
ndarray = { version = "0.17", optional = true }
ort = { version = "2.0.0-rc.12", optional = true }
# Size-focused release (main cost is still ONNX + tokenizers + WebView2 stack).
# Much smaller binary without local ML NER: from src-tauri run
# cargo build --release --no-default-features
# (wire the same into `tauri build` / CI if you ship a “slim” variant).
[profile.release]
strip = true
opt-level = "z"
lto = true
codegen-units = 1
panic = "abort"