mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-10-25 17:54:34 +08:00
33 lines
856 B
TOML
33 lines
856 B
TOML
[package]
|
|
name = "chatlab-parser-native"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
license = "AGPL-3.0"
|
|
description = "ChatLab Rust chat-export parsing kernels for N-API and browser WASM"
|
|
|
|
[lib]
|
|
crate-type = ["cdylib"]
|
|
|
|
[features]
|
|
default = ["napi"]
|
|
napi = ["dep:napi", "dep:napi-derive", "dep:napi-build"]
|
|
wasm = ["dep:wasm-bindgen"]
|
|
|
|
[dependencies]
|
|
napi = { version = "3", features = ["napi8"], optional = true }
|
|
napi-derive = { version = "3", optional = true }
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = { version = "1", features = ["preserve_order", "raw_value"] }
|
|
memchr = "2"
|
|
wasm-bindgen = { version = "0.2.126", optional = true }
|
|
|
|
[build-dependencies]
|
|
napi-build = { version = "2", optional = true }
|
|
|
|
[profile.release]
|
|
lto = true
|
|
strip = "symbols"
|
|
|
|
[package.metadata.wasm-pack.profile.release]
|
|
wasm-opt = ["-O", "--enable-bulk-memory"]
|