-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCargo.toml
More file actions
91 lines (76 loc) · 2.4 KB
/
Cargo.toml
File metadata and controls
91 lines (76 loc) · 2.4 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
[package]
name = "link-calculator"
version = "0.15.5"
edition = "2021"
description = "A Rust WebAssembly calculator with grammar-based expression parsing using links-notation"
readme = "README.md"
license = "Unlicense"
keywords = ["calculator", "wasm", "grammar", "links-notation", "expression-parser"]
categories = ["wasm", "parsing", "mathematics"]
repository = "https://github.com/link-assistant/calculator"
documentation = "https://github.com/link-assistant/calculator"
rust-version = "1.70"
[lib]
name = "link_calculator"
path = "src/lib.rs"
crate-type = ["cdylib", "rlib"]
[[bin]]
name = "link-calculator"
path = "src/main.rs"
[[example]]
name = "test_advanced_math"
path = "experiments/test_advanced_math.rs"
[[example]]
name = "test_issue84_lino"
path = "experiments/test_issue84_lino.rs"
[dependencies]
wasm-bindgen = "0.2"
wasm-bindgen-futures = "0.4"
js-sys = "0.3"
web-sys = { version = "0.3", features = ["Window", "WorkerGlobalScope", "Request", "RequestInit", "RequestMode", "Response", "Headers"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
console_error_panic_hook = "0.1"
chrono = { version = "0.4", default-features = false, features = ["alloc", "std", "serde", "clock", "wasmbind"] }
rust_decimal = { version = "1.33", features = ["serde"] }
thiserror = "1.0"
lazy_static = "1.4"
regex = "1.10"
num-rational = { version = "0.4", features = ["serde", "num-bigint"] }
num-bigint = { version = "0.4", features = ["serde"] }
num-integer = "0.1"
num-traits = "0.2"
serde-wasm-bindgen = "0.6"
[dev-dependencies]
wasm-bindgen-test = "0.3"
tokio = { version = "1.0", features = ["rt-multi-thread", "macros", "time"] }
tokio-test = "0.4"
[lints.rust]
unsafe_code = "forbid"
[lints.clippy]
all = { level = "warn", priority = -1 }
pedantic = { level = "warn", priority = -1 }
nursery = { level = "warn", priority = -1 }
# Allow some common patterns
module_name_repetitions = "allow"
too_many_lines = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
[package.metadata.wasm-pack.profile.release]
wasm-opt = false
[profile.release]
lto = true
codegen-units = 1
strip = true
opt-level = "s"
[profile.release.package."*"]
opt-level = "s"
[[example]]
name = "test_issue23"
path = "experiments/test_issue23.rs"
[[example]]
name = "test_issue104_ton_ambiguity"
path = "experiments/test_issue104_ton_ambiguity.rs"
[[example]]
name = "test_issue128_year"
path = "experiments/test_issue128_year.rs"