mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
refactor: generate dart pb files with feature flag: dart
This commit is contained in:
@ -7,7 +7,7 @@ edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
flowy-derive = { path = "../../../shared-lib/flowy-derive" }
|
||||
error-code = { path = "../../../shared-lib/error-code" }
|
||||
error-code = { path = "../../../shared-lib/error-code"}
|
||||
lib-dispatch = { path = "../lib-dispatch" }
|
||||
protobuf = {version = "2.20.0"}
|
||||
bytes = "1.0"
|
||||
@ -27,6 +27,7 @@ ot = ["lib-ot"]
|
||||
serde = ["serde_json"]
|
||||
http_server = ["http-flowy"]
|
||||
db = ["flowy-database", "lib-sqlite", "r2d2"]
|
||||
dart = ["error-code/dart", "lib-infra/dart"]
|
||||
|
||||
[build-dependencies]
|
||||
lib-infra = { path = "../../../shared-lib/lib-infra", features = ["gen_pb"] }
|
||||
lib-infra = { path = "../../../shared-lib/lib-infra", features = ["pb_gen"] }
|
@ -1,5 +1,5 @@
|
||||
use lib_infra::pb;
|
||||
use lib_infra::pb_gen;
|
||||
|
||||
fn main() {
|
||||
pb::gen("flowy-error", "./src/protobuf/proto");
|
||||
pb_gen::gen("flowy-error", "./src/protobuf/proto");
|
||||
}
|
||||
|
Reference in New Issue
Block a user