-
Notifications
You must be signed in to change notification settings - Fork 60
Expand file tree
/
Copy pathCargo.toml
More file actions
72 lines (60 loc) · 2.06 KB
/
Cargo.toml
File metadata and controls
72 lines (60 loc) · 2.06 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
[package]
name = "mathcat"
version = "0.7.6-beta.1"
authors = ["Neil Soiffer <soiffer@alum.mit.edu>"]
license = "MIT"
description = "MathCAT: Math Capable Assistive Technology ('Speech and braille from MathML')"
repository = "https://github.com/NSoiffer/MathCAT"
homepage = "https://nsoiffer.github.io/MathCAT/"
documentation = "https://nsoiffer.github.io/MathCAT/"
edition = "2024"
exclude = ["src/main.rs", "docs", "PythonScripts"] # should have "Rules/", but then one can't run build.rs to build the zip file
[features]
"include-zip" = []
"enable-logs" = ["android_logger"]
"tts" = [ "natural-tts" ]
[dependencies]
sxd-document = "0.3"
sxd-xpath = "0.4"
yaml-rust = "0.4"
# yaml-rust = { version = "0.11", package = "yaml-rust2" }
strum = "0.27.2"
strum_macros = "0.27.2"
anyhow = "1.0"
regex = "1.10"
dirs = "6.0"
bitflags = "2.10"
phf = { version = "0.13", features = ["macros"] }
roman-numerals-rs = "4.1.0"
radix_fmt = "1.0"
unicode-script = "0.5"
log = "0.4"
env_logger = "0.11.8"
cfg-if = "1.0.1"
fastrand = { version = "2.3.0" }
clap = { version = "*", features = ["derive"] }
[target.'cfg(target_family = "wasm")'.dependencies]
zip = { version = "7.0", default-features = false, features = ["deflate"] }
[target.'cfg(not(target_family = "wasm"))'.dependencies]
zip = { version = "7.0", default-features = false, features = ["bzip2"] }
android_logger = {version = "0.15.1", optional = true}
natural-tts = { version = "*", optional = true }
[build-dependencies]
bitflags = "2.6"
[target.'cfg(target_family = "wasm")'.build-dependencies]
zip = { version = "7.0", default-features = false, features = ["deflate"] }
[target.'cfg(not(target_family = "wasm"))'.build-dependencies]
zip = { version = "7.0", default-features = false, features = ["bzip2"] }
[lib]
name = "libmathcat"
crate-type = ["rlib", "cdylib"]
[[bin]]
name = "mathml2text"
path = "src/bin/mathml2text.rs"
[profile.test]
debug = true
opt-level = 1 # adds a few seconds to the compile, but cuts testing time by ~75% (~90 secs on 5/24)
[profile.release]
debug = false
lto = true
# opt-level = "z" # Optimize for size.