Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
129 lines (122 loc) · 4.37 KB
/
Copy pathCargo.toml
File metadata and controls
129 lines (122 loc) · 4.37 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
[workspace]
exclude = ["libraries/bridgerton/fuzz"]
members = [
"publish-packs",
"yap-ai-backend",
"generate-data",
"language-utils",
"libraries/stroke-order",
"libraries/stroke-order-sources",
"yap-frontend-rs",
"yap-frontend-reducers",
"libraries/autograde-core",
"libraries/weapon",
"libraries/imdex_map",
"libraries/eyedee",
"libraries/bridgerton",
"libraries/bridgerton/macros",
"libraries/bridgerton/fixture",
"libraries/bridgerton/cli",
"libraries/course-spot-check",
"libraries/sentence-sampler",
"libraries/clean-nlp-data",
"libraries/token-corrections",
"libraries/enumap",
"libraries/opensubtitles-downloader",
"libraries/movie-subtitles",
"libraries/movie-metadata",
"libraries/subtitle-corpus",
"libraries/phoneme-verify",
"libraries/omnigram",
"libraries/user-metrics",
"libraries/google-speech",
"libraries/audio-codec",
"libraries/whisper",
"libraries/rate-limit",
"generate-dictionary-data",
"yap-mcp",
"yap-ios",
"xtask",
"libraries/yap-i18n",
]
resolver = "3"
[workspace.dependencies]
bridgerton = { path = "libraries/bridgerton" }
web-time = "1.1.0"
html2text = "0.17"
html-escape = "0.2"
markdown-tables = "0.1.0"
rusqlite = "0.40"
serde_json = "1.0"
tempfile = "3.27.0"
zip = "8"
schemars = "1"
futures = "0.3.32"
env_logger = "0.11.10"
tsify = { version = "0.5.6", features = ["js"], default-features = false }
tysm = { git = "https://github.com/anchpop/tysm.git", rev = "24c5b3c1fddd30e303d10cdd056c98f9f84f8adc" }
# Local-first KV cache store synced to R2 (github.com/anchpop/osmo). All of
# generate-data's caches live in one store at .cache.
osmo = "0.2.0"
reqwest = { version = "0.13", features = ["json", "query", "multipart"] }
tokio = { version = "1.52.3", features = ["full"] }
opfs = "0.3"
idb = { version = "0.6.5" }
# Native + wasm fetch wrapper and its cross-platform abort mechanism.
fetch-happen = "0.5.0"
abort-signal = "0.1.0"
# Grapheme-to-phoneme owns the language and variety defaults. This pin describes
# the renderer, not an assertion that a deployed model used identical labels;
# corpus response keys separate actual WAV content and exact target sequences.
# Needs cmake + a C compiler to build the embedded espeak fork.
g2p = { git = "https://github.com/anchpop/g2p", rev = "ef90533979a537469a2dc03546cb5d5c5d208c77" }
xxhash-rust = { version = "0.8.15", features = ["xxh3", "const_xxh3"] }
indexmap = { version = "2" }
chrono = "0.4.44"
im = { version = "15.1.0", features = ["serde"] }
log = "0.4"
wasm-bindgen = "0.2.122"
wasm-bindgen-futures = "0.4"
js-sys = "0.3"
thiserror = "2"
slotmap = { version = "1.1", features = ["serde"] }
wasm-logger = "0.2.0"
unicode-normalization = "0.1.25"
# Shared browser/native named locks.
weblocks = { git = "https://github.com/anchpop/weblocks", rev = "b4e7db5af829e357ab67407609e1fb896ee30cde" }
lexide = { git = "https://github.com/anchpop/lexide.git", rev = "65818d30c2fb53e696f692f33262f9f2e4645f31", default-features = false }
lexide-types = { git = "https://github.com/anchpop/lexide.git", rev = "65818d30c2fb53e696f692f33262f9f2e4645f31" }
indicatif = "0.18"
[workspace.dependencies.rkyv]
git = "https://github.com/anchpop/rkyv.git"
rev = "3639e126c26b6071dea12eeab8b6376196eb9f59"
[workspace.dependencies.lasso]
git = "https://github.com/anchpop/lasso.git"
rev = "babd734da2646353c0924f16882bc61888ae3ba1"
[workspace.dependencies.serde]
version = "1.0"
features = ["derive"]
[profile.release]
opt-level = "s"
# Full LTO makes iterative native tools such as generate-data spend several
# minutes in their final rustc invocation. Release WASM builds opt back into
# LTO explicitly at their build entry points.
lto = false
# Cargo's default release strip ("debuginfo") makes Xcode 27's toolchain emit
# dylibs that macOS 27's dyld rejects ("mis-aligned LINKEDIT string pool"), which
# breaks `cargo bridgerton swift` loading the yap-ios-host library.
strip = "none"
# Native data-pipeline crates with hot numeric loops (embedding mining,
# unigram training, clustering) want speed, not size. None of these are in
# the WASM dependency graph, so the size-focused default above is pure loss
# for them.
[profile.release.package.generate-data]
opt-level = 3
[profile.release.package.omnigram]
opt-level = 3
[profile.release.package.hdbscan]
opt-level = 3
[profile.profiling]
inherits = "release"
debug = true
strip = "none"