Skip to content

Commit 436291c

Browse files
authored
fix: update build.rs with cfg flag control (#1627)
Co-authored-by: nathan <[email protected]>
1 parent a2b5d6f commit 436291c

File tree

4 files changed

+4
-7
lines changed

4 files changed

+4
-7
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ dart-notify = { path = "../dart-notify" }
3131
flowy-derive = { path = "../flowy-derive" }
3232

3333
[features]
34-
default = ["flowy-sdk/dart", "dart-notify/dart", "flutter"]
34+
default = ["flowy-sdk/dart", "flutter"]
3535
flutter = []
3636
http_sync = ["flowy-sdk/http_sync", "flowy-sdk/use_bunyan"]
3737
openssl_vendored = ["flowy-sdk/openssl_vendored"]

frontend/rust-lib/dart-notify/Cargo.toml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,5 @@ bytes = { version = "1.0" }
1515
flowy-derive = {path = "../flowy-derive" }
1616
lib-dispatch = {path = "../lib-dispatch" }
1717

18-
[features]
19-
dart = ["flowy-codegen/dart"]
20-
2118
[build-dependencies]
22-
flowy-codegen = { path = "../flowy-codegen"}
19+
flowy-codegen = { path = "../flowy-codegen", features = ["dart"]}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ db = ["flowy-database", "lib-sqlite", "r2d2"]
3131
dart = ["flowy-codegen/dart"]
3232

3333
[build-dependencies]
34-
flowy-codegen = { path = "../flowy-codegen"}
34+
flowy-codegen = { path = "../flowy-codegen", features = ["proto_gen"]}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ edition = "2021"
88
[dependencies]
99
bytes = "1.0"
1010
md5 = "0.7.0"
11-
serde = {versino = "1.0"}
11+
serde = { version = "1.0" }
1212
serde_json = { version = "1.0" }
1313
serde_repr = "0.1"
1414

0 commit comments

Comments
 (0)