Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
[package]
name = "harper-wasm"
version = "3.1.0"
edition = "2024"
publish = false
repository = "https://github.com/automattic/harper"
[lib]
crate-type = ["cdylib", "rlib"]
[dependencies]
console_error_panic_hook = "0.1.7"
tracing = "0.1.44"
tracing-wasm = "0.2.1"
wasm-bindgen = "0.2.97"
harper-core = { path = "../harper-core", version = "3.0.0", features = [], default-features = false }
harper-typst = { path = "../harper-typst", version = "3.0.0", optional = true }
once_cell = "1.21.4"
serde-wasm-bindgen = "0.6.5"
serde_json = "1.0.150"
serde = { version = "1.0.228", features = ["derive"] }
getrandom = { version = "0.3.4", default-features = false, features = ["wasm_js"] }
harper-stats = { path = "../harper-stats", version = "3.0.0", features = ["js"] }
[dev-dependencies]
sysinfo = { version = "0.39.5", default-features = false, features = [ "system" ] }
[features]
default = ["typst", "thesaurus"]
typst = ["dep:harper-typst"]
thesaurus = ["harper-core/thesaurus"]
bench = []