Pārlūkot izejas kodu

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

Co-authored-by: nathan <[email protected]>
Nathan.fooo 2 gadi atpakaļ
vecāks
revīzija
436291c01a

+ 1 - 1
frontend/rust-lib/dart-ffi/Cargo.toml

@@ -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"]

+ 1 - 4
frontend/rust-lib/dart-notify/Cargo.toml

@@ -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"]}

+ 1 - 1
frontend/rust-lib/flowy-error/Cargo.toml

@@ -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"]}

+ 1 - 1
shared-lib/flowy-http-model/Cargo.toml

@@ -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"