[package] name = "mathcat-wasm" version = "1.0.0" edition = "2021" license = "MIT" publish = false description = "A tiny wasm-bindgen wrapper round MathCAT's braille API for johnmcm.com's Equation Editor" [lib] crate-type = ["cdylib"] [dependencies] # MathCAT, cloned to /mathcat at a pinned tag and commit by the Dockerfile. # Only the English rules (always embedded: the library falls back to them) # and the Nemeth and UEB braille rules go into the embedded zip. libmathcat = { package = "mathcat", path = "/mathcat", default-features = false, features = ["include-zip", "lang-en", "braille-nemeth", "braille-ueb"] } wasm-bindgen = "=0.2.100" [profile.release] lto = true opt-level = "z" codegen-units = 1 panic = "abort" # MathCAT asks dirs for a user config folder, which a browser does not have; # the real crate pulls in option-ext (MPL-2.0) through dirs-sys. The stand-in # in stub/dirs answers None, as the real one does on wasm32-unknown-unknown. [patch.crates-io] dirs = { path = "stub/dirs" }