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 -->
52 lines
1.4 KiB
TOML
52 lines
1.4 KiB
TOML
[package]
|
|
edition = "2024"
|
|
license-file = "LICENSE"
|
|
name = "affine_server_native"
|
|
publish = false
|
|
version = "1.0.0"
|
|
|
|
[lib]
|
|
crate-type = ["cdylib"]
|
|
|
|
[dependencies]
|
|
affine_common = { workspace = true, features = [
|
|
"doc-loader",
|
|
"hashcash",
|
|
"napi",
|
|
"ydoc-loader",
|
|
] }
|
|
anyhow = { workspace = true }
|
|
chrono = { workspace = true }
|
|
file-format = { workspace = true }
|
|
image = { workspace = true }
|
|
infer = { workspace = true }
|
|
libwebp-sys = { workspace = true }
|
|
little_exif = { workspace = true }
|
|
llm_adapter = { workspace = true, default-features = false, features = [
|
|
"ureq-client",
|
|
] }
|
|
matroska = { workspace = true }
|
|
mp4parse = { workspace = true }
|
|
napi = { workspace = true, features = ["async"] }
|
|
napi-derive = { workspace = true }
|
|
rand = { workspace = true }
|
|
serde = { workspace = true, features = ["derive"] }
|
|
serde_json = { workspace = true }
|
|
sha3 = { workspace = true }
|
|
tiktoken-rs = { workspace = true }
|
|
v_htmlescape = { workspace = true }
|
|
y-octo = { workspace = true, features = ["large_refs"] }
|
|
|
|
[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]
|
|
rayon = { workspace = true }
|
|
tokio = { workspace = true }
|
|
|
|
[build-dependencies]
|
|
napi-build = { workspace = true }
|