-
-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathCargo.toml
More file actions
56 lines (49 loc) · 1.36 KB
/
Copy pathCargo.toml
File metadata and controls
56 lines (49 loc) · 1.36 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
54
55
56
[package]
name = "cpc"
version = "5.0.0"
description = "evaluates math expressions, with support for units and conversion between units"
authors = ["Kasper Henningsen"]
edition = "2024"
readme = "README.md"
license = "MIT"
homepage = "https://github.com/kasper9n/cpc#readme"
repository = "https://github.com/kasper9n/cpc"
documentation = "https://docs.rs/cpc"
keywords = ["math", "expression", "evaluate", "units", "convert"]
categories = [
"mathematics",
"science",
"parsing",
"text-processing",
"value-formatting",
]
[lib]
crate-type = ["cdylib", "rlib"]
[dependencies]
fastnum = { version = "0.7", features = ["serde"] }
unicode-segmentation = "1.13"
web-time = "1.1.0"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
reqwest = { version = "0.13", features = ["blocking", "json"] }
sys-locale = "0.3.2"
rustyline = "18.0.1"
[target.'cfg(target_arch = "wasm32")'.dependencies]
console_error_panic_hook = "0.1.7"
wasm-bindgen = "0.2"
js-sys = "0.3"
serde-wasm-bindgen = "0.6.5"
[dev-dependencies]
regex = "1.11"
serial_test = "3.5.0"
[lints.clippy]
comparison_chain = "allow"
if_same_then_else = "allow"
match_like_matches_macro = "allow"
get_first = "allow"
[profile.release]
lto = true
opt-level = "z" # small code size
codegen-units = 1
# stripping symbols causes wasm build to fail