mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-03-22 23:30:36 +08:00
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Native/WASM Mermaid and Typst SVG preview rendering on desktop and mobile, plus cross-platform Preview plugin integrations. * **Improvements** * Centralized, sanitized rendering bridge with automatic Typst font-directory handling and configurable native renderer selection. * More consistent and robust error serialization and worker-backed preview flows for improved stability and performance. * **Tests** * Extensive unit and integration tests for preview rendering, font discovery, sanitization, and error serialization. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
58 lines
1.5 KiB
TOML
58 lines
1.5 KiB
TOML
[package]
|
|
edition = "2024"
|
|
name = "affine_native"
|
|
publish = false
|
|
version = "0.0.0"
|
|
|
|
[lib]
|
|
crate-type = ["cdylib", "rlib"]
|
|
|
|
[dependencies]
|
|
affine_common = { workspace = true, features = ["hashcash"] }
|
|
affine_media_capture = { path = "./media_capture" }
|
|
affine_nbstore = { workspace = true, features = ["napi"] }
|
|
affine_sqlite_v1 = { path = "./sqlite_v1" }
|
|
napi = { workspace = true }
|
|
napi-derive = { workspace = true }
|
|
once_cell = { workspace = true }
|
|
sqlx = { workspace = true, default-features = false, features = [
|
|
"chrono",
|
|
"macros",
|
|
"migrate",
|
|
"runtime-tokio",
|
|
"sqlite",
|
|
"tls-rustls",
|
|
] }
|
|
thiserror = { workspace = true }
|
|
tokio = { workspace = true, features = ["full"] }
|
|
|
|
[target.'cfg(not(any(target_os = "android", target_os = "ios")))'.dependencies]
|
|
mermaid-rs-renderer = { workspace = true }
|
|
typst = { workspace = true }
|
|
typst-as-lib = { workspace = true }
|
|
typst-svg = { workspace = true }
|
|
|
|
[target.'cfg(not(target_os = "linux"))'.dependencies]
|
|
mimalloc = { workspace = true }
|
|
|
|
[target.'cfg(all(target_os = "linux", not(target_arch = "arm")))'.dependencies]
|
|
mimalloc = { workspace = true, features = ["local_dynamic_tls"] }
|
|
|
|
[dev-dependencies]
|
|
chrono = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
uuid = { workspace = true }
|
|
|
|
[build-dependencies]
|
|
napi-build = { workspace = true }
|
|
sqlx = { workspace = true, default-features = false, features = [
|
|
"chrono",
|
|
"json",
|
|
"macros",
|
|
"migrate",
|
|
"runtime-tokio",
|
|
"sqlite",
|
|
"tls-rustls",
|
|
] }
|
|
tokio = { workspace = true, features = ["full"] }
|