fix: update build.rs with cfg flag control (#1627)

Co-authored-by: nathan <nathan@appflowy.io>
This commit is contained in:
Nathan.fooo 2023-01-01 17:21:19 +08:00 committed by GitHub
parent a2b5d6fa99
commit 436291c01a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 7 deletions

View File

@ -31,7 +31,7 @@ dart-notify = { path = "../dart-notify" }
flowy-derive = { path = "../flowy-derive" }
[features]
default = ["flowy-sdk/dart", "dart-notify/dart", "flutter"]
default = ["flowy-sdk/dart", "flutter"]
flutter = []
http_sync = ["flowy-sdk/http_sync", "flowy-sdk/use_bunyan"]
openssl_vendored = ["flowy-sdk/openssl_vendored"]

View File

@ -15,8 +15,5 @@ bytes = { version = "1.0" }
flowy-derive = {path = "../flowy-derive" }
lib-dispatch = {path = "../lib-dispatch" }
[features]
dart = ["flowy-codegen/dart"]
[build-dependencies]
flowy-codegen = { path = "../flowy-codegen"}
flowy-codegen = { path = "../flowy-codegen", features = ["dart"]}

View File

@ -31,4 +31,4 @@ db = ["flowy-database", "lib-sqlite", "r2d2"]
dart = ["flowy-codegen/dart"]
[build-dependencies]
flowy-codegen = { path = "../flowy-codegen"}
flowy-codegen = { path = "../flowy-codegen", features = ["proto_gen"]}

View File

@ -8,7 +8,7 @@ edition = "2021"
[dependencies]
bytes = "1.0"
md5 = "0.7.0"
serde = {versino = "1.0"}
serde = { version = "1.0" }
serde_json = { version = "1.0" }
serde_repr = "0.1"