Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
feat: improve compile times
Elijah Pottercad3f660d3ec
diff --git a/Cargo.lock b/Cargo.lockindex b10d34db3..2d2984187 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -2650,8 +2650,6 @@ version = "0.70.0"dependencies = ["harper-pos-utils","lazy_static",- "rs-conllu",- "serde","serde_json",]@@ -2675,7 +2673,6 @@ dependencies = ["serde","serde_json","strum",- "strum_macros",][[package]]@@ -2833,10 +2830,8 @@ dependencies = ["burn-ndarray","hashbrown 0.16.0","is-macro",- "itertools 0.14.0","lru","rand 0.9.2",- "rayon","rs-conllu","serde","serde_json",diff --git a/Cargo.toml b/Cargo.tomlindex 09f688174..75ff6eea2 100644--- a/Cargo.toml+++ b/Cargo.toml@@ -2,13 +2,10 @@members = ["harper-cli", "harper-core", "harper-ls", "harper-comments", "harper-wasm", "harper-tree-sitter", "harper-html", "harper-literate-haskell", "harper-typst", "harper-stats", "harper-pos-utils", "harper-brill", "harper-ink", "harper-python", "harper-jjdescription"]resolver = "2"-# Comment out the below lines if you plan to use a debugger.[profile.test]opt-level = 3[profile.release]-codegen-units = 1-lto = trueopt-level = 3# Stripping binaries triggers a bug in `wasm-opt`.# Disable it for now.diff --git a/harper-brill/Cargo.toml b/harper-brill/Cargo.tomlindex 04ed363a7..02c743991 100644--- a/harper-brill/Cargo.toml+++ b/harper-brill/Cargo.toml@@ -9,11 +9,7 @@ repository = "https://github.com/automattic/harper"[dependencies]harper-pos-utils = { path = "../harper-pos-utils/", version = "0.70.0" }lazy_static = "1.5.0"-rs-conllu = "0.3.0"-serde = "1.0.228"serde_json = "1.0.145"[build-dependencies]-rs-conllu = "0.3.0"-serde = "1.0.228"serde_json = "1.0.145"diff --git a/harper-cli/Cargo.toml b/harper-cli/Cargo.tomlindex a87dee473..108a66f4b 100644--- a/harper-cli/Cargo.toml+++ b/harper-cli/Cargo.toml@@ -8,20 +8,19 @@ repository = "https://github.com/automattic/harper"[dependencies]anyhow = "1.0.100"ariadne = "0.4.1"-clap = { version = "4.5.51", features = ["derive", "string"] }+clap = { version = "4.5.51", features = ["derive", "std", "string"], default-features = false }harper-stats = { path = "../harper-stats", version = "0.70.0" }dirs = "6.0.0"harper-literate-haskell = { path = "../harper-literate-haskell", version = "0.70.0" }harper-python = { path = "../harper-python", version = "0.70.0" }harper-core = { path = "../harper-core", version = "0.70.0" }-harper-pos-utils = { path = "../harper-pos-utils", version = "0.70.0", features = ["threaded"] }+harper-pos-utils = { path = "../harper-pos-utils", version = "0.70.0", features = [] }harper-comments = { path = "../harper-comments", version = "0.70.0" }harper-typst = { path = "../harper-typst", version = "0.70.0" }hashbrown = "0.16.0"serde = { version = "1.0.228", features = ["derive"] }serde_json = "1.0.145"strum = "0.27.2"-strum_macros = "0.27.2"harper-ink = { version = "0.70.0", path = "../harper-ink" }[features]diff --git a/harper-pos-utils/Cargo.toml b/harper-pos-utils/Cargo.tomlindex da0b62554..cf50dd451 100644--- a/harper-pos-utils/Cargo.toml+++ b/harper-pos-utils/Cargo.toml@@ -13,15 +13,12 @@ strum = "0.27.2"strum_macros = "0.27.2"serde = { version = "1.0.228", features = ["derive"] }is-macro = "0.3.7"-rayon = { version = "1.11.0", optional = true }rand = { version = "0.9.1", optional = true }burn = { version = "0.19.0", default-features = false, features = ["std"] }burn-ndarray = { version = "0.19.0", default-features = false }serde_json = "1.0.145"-itertools = "0.14.0"lru = "0.16.2"[features]default = []-threaded = ["dep:rayon"]training = ["dep:rand", "burn/train", "burn/autodiff"]