at main 41 lines 1.2 kB view raw
1[package] 2name = "weaver-editor-core" 3version.workspace = true 4edition.workspace = true 5license.workspace = true 6 7[dependencies] 8ropey = "1.6" 9smol_str = "0.3" 10thiserror = { workspace = true } 11tracing = { workspace = true } 12web-time = "1.1" 13markdown-weaver = { workspace = true } 14markdown-weaver-escape = { workspace = true } 15weaver-common = { path = "../weaver-common" } 16# Only needs syntax-highlighting, not CSS generation 17weaver-renderer = { path = "../weaver-renderer", default-features = false, features = ["syntax-highlighting"] } 18weaver-api = { path = "../weaver-api" } 19jacquard = { workspace = true } 20 21# Native: syntect with onig 22[target.'cfg(not(all(target_family = "wasm", target_os = "unknown")))'.dependencies] 23syntect = { workspace = true, default-features = false, features = [ 24 "parsing", 25 "html", 26 "default-syntaxes", 27 "regex-onig" 28] } 29 30# WASM: syntect with fancy-regex 31[target.'cfg(all(target_family = "wasm", target_os = "unknown"))'.dependencies] 32syntect = { workspace = true, default-features = false, features = [ 33 "parsing", 34 "html", 35 "default-syntaxes", 36 "regex-fancy" 37] } 38 39[dev-dependencies] 40insta = { version = "1.40", features = ["yaml"] } 41serde = { workspace = true, features = ["derive"] }