feat: using workspace crate deps (#3924)

* chore: workspace deps

* chore: use workspace deps
This commit is contained in:
Nathan.fooo
2023-11-12 21:18:27 +08:00
committed by GitHub
parent 7eb20b232a
commit 50e612511d
40 changed files with 437 additions and 339 deletions

View File

@ -7,18 +7,18 @@ edition = "2018"
[dependencies]
flowy-derive = { path = "../../../shared-lib/flowy-derive" }
protobuf = { version = "2.28.0" }
bytes = "1.4"
anyhow = "1.0"
protobuf.workspace = true
bytes.workspace = true
anyhow.workspace = true
thiserror = "1.0"
validator = "0.16.0"
tokio = { version = "1.0", features = ["sync"]}
tokio = { workspace = true, features = ["sync"]}
fancy-regex = { version = "0.11.0" }
lib-dispatch = { workspace = true, optional = true }
serde_json = { version = "1.0", optional = true }
serde_repr = { version = "0.1" }
serde = "1.0"
serde_json.workspace = true
serde_repr.workspace = true
serde.workspace = true
reqwest = { version = "0.11.14", optional = true, features = [
"native-tls-vendored",
] }
@ -33,7 +33,7 @@ client-api = { version = "0.1.0", optional = true }
[features]
default = ["impl_from_appflowy_cloud", "impl_from_collab", "impl_from_reqwest", "impl_from_serde"]
impl_from_dispatch_error = ["lib-dispatch"]
impl_from_serde = ["serde_json"]
impl_from_serde = []
impl_from_reqwest = ["reqwest"]
impl_from_sqlite = ["flowy-sqlite", "r2d2"]
impl_from_collab = ["collab-database", "collab-document", "impl_from_reqwest"]