feat(native): provide FSWatcher

This commit is contained in:
LongYinan
2023-05-10 17:16:48 +08:00
parent ee1e50f391
commit e54a5b6128
23 changed files with 1215 additions and 788 deletions

View File

@@ -7,23 +7,25 @@ version = "0.0.0"
crate-type = ["cdylib"]
[dependencies]
anyhow = "1"
# Default enable napi4 feature, see https://nodejs.org/api/n-api.html#node-api-version-matrix
napi = { version = "2.11.1", default-features = false, features = ["napi4", "tokio_rt"] }
napi-derive = "2.11.0"
jwst = { git = "https://github.com/toeverything/OctoBase", rev = "b701935", package = "jwst" }
jwst-storage = { git = "https://github.com/toeverything/OctoBase", rev = "b701935", package = "jwst-storage", features = [ "sqlite"] }
cloud-database = { git = "https://github.com/toeverything/OctoBase", rev = "b701935", package = "cloud-database", features = [ "sqlite"] }
jwst-rpc = { git = "https://github.com/toeverything/OctoBase", rev = "b701935", package = "jwst-rpc" }
lib0 = "0.16.3"
tokio = "1.24.2"
yrs = "0.16.3"
bytes = "1.3.0"
futures = "^0.3.25"
napi = { version = "2", default-features = false, features = [
"napi4",
"tokio_rt",
"serde-json",
"error_anyhow",
] }
napi-derive = "2"
notify = { version = "5", features = ["serde"] }
parking_lot = "0.12"
serde = "1"
serde_json = "1"
tokio = "1"
uuid = { version = "1", default-features = false, features = [
"serde",
"v4",
"fast-rng",
] }
[build-dependencies]
napi-build = "2.0.1"
[patch.crates-io]
rust-embed = { git = "https://github.com/pyrossh/rust-embed", rev = "7c0fc42" }
lib0 = { git = "https://github.com/toeverything/y-crdt", rev = "a3f7263" }
yrs = { git = "https://github.com/toeverything/y-crdt", rev = "a3f7263" }
napi-build = "2"