mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 04:48:53 +00:00
It would cause the napi-derive not work as expect in workspace level <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Refactor** - Improved internal handling and type definitions for document parsing, resulting in clearer and more maintainable data structures. - **Chores** - Introduced a new feature flag for mobile native builds, enabling conditional compilation for enhanced flexibility across Android and iOS. - Updated build scripts to support the new feature flag for both Android and iOS platforms. - Updated iOS app dependencies to newer versions, including Apollo iOS, ChidoriMenu, and swift-collections, and removed SQLite.swift. - **Tests** - Enhanced Rust linting and testing workflows to run selectively across workspace packages with the new feature flag enabled. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
36 lines
1.1 KiB
TOML
36 lines
1.1 KiB
TOML
[package]
|
|
edition = "2021"
|
|
name = "affine_mobile_native"
|
|
version = "0.0.0"
|
|
|
|
[lib]
|
|
crate-type = ["cdylib", "staticlib"]
|
|
|
|
[[bin]]
|
|
# This can be whatever name makes sense for your project, but the rest of this tutorial assumes uniffi-bindgen.
|
|
name = "uniffi-bindgen"
|
|
path = "uniffi-bindgen.rs"
|
|
|
|
[features]
|
|
use-as-lib = ["affine_nbstore/use-as-lib"]
|
|
|
|
[dependencies]
|
|
affine_common = { workspace = true }
|
|
affine_nbstore = { workspace = true }
|
|
anyhow = { workspace = true }
|
|
base64-simd = { workspace = true }
|
|
chrono = { workspace = true }
|
|
sqlx = { workspace = true }
|
|
thiserror = { workspace = true }
|
|
uniffi = { workspace = true, features = ["cli", "tokio"] }
|
|
|
|
[target.'cfg(any(target_os = "ios", target_os = "macos"))'.dependencies]
|
|
objc2 = { workspace = true }
|
|
objc2-foundation = { workspace = true, features = ["NSArray", "NSFileManager", "NSPathUtilities", "NSString", "NSURL"] }
|
|
|
|
[target.'cfg(not(any(target_os = "ios", target_os = "macos")))'.dependencies]
|
|
homedir = { workspace = true }
|
|
|
|
[build-dependencies]
|
|
uniffi = { workspace = true, features = ["build"] }
|