[package]
edition = "2021"
name = "cindermark"
version = "0.2.0"
authors = ["Rene DeAnda <rene@deanda.org>"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "High-performance incremental Markdown parser with UTF-16 offsets, built for native text editors on Apple platforms"
homepage = "https://embernotes.app"
readme = "README.md"
keywords = [
"markdown",
"parser",
"incremental",
"commonmark",
"uniffi",
]
categories = [
"parser-implementations",
"text-processing",
]
license = "MIT"
repository = "https://github.com/renedeanda/cindermark"
[package.metadata.docs.rs]
features = ["ffi"]
[package.metadata.wasm-pack.profile.release]
wasm-opt = false
[features]
bindgen = [
"ffi",
"uniffi/cli",
]
default = []
ffi = ["dep:uniffi"]
wasm = ["dep:wasm-bindgen"]
[lib]
name = "cindermark"
crate-type = [
"staticlib",
"cdylib",
"lib",
]
path = "src/lib.rs"
[[bin]]
name = "uniffi-bindgen"
path = "uniffi-bindgen.rs"
required-features = ["bindgen"]
[[example]]
name = "trace_email"
path = "examples/trace_email.rs"
[[example]]
name = "trace_feat"
path = "examples/trace_feat.rs"
[[test]]
name = "parser_tests"
path = "tests/parser_tests.rs"
[[bench]]
name = "parser_bench"
path = "benches/parser_bench.rs"
harness = false
[dependencies.memchr]
version = "2"
[dependencies.rustc-hash]
version = "2"
[dependencies.unicode-segmentation]
version = "1"
[dependencies.uniffi]
version = "0.28"
optional = true
[dependencies.wasm-bindgen]
version = "0.2"
optional = true
[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]
[dev-dependencies.proptest]
version = "1"
[build-dependencies.uniffi]
version = "0.28"
features = ["build"]
[profile.dev-optimized]
lto = false
codegen-units = 16
debug = 1
incremental = true
inherits = "release"
strip = false
[profile.release]
lto = "fat"
codegen-units = 1
strip = true