Skip to content

Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

ci: cargo test without default features

appflowy68dfde4cf86e
diff --git a/.github/workflows/dart_lint.yml b/.github/workflows/dart_lint.yml
index c800436c27..83a2c1a97b 100644
--- a/.github/workflows/dart_lint.yml
+++ b/.github/workflows/dart_lint.yml
@@ -25,10 +25,12 @@ jobs:
- uses: subosito/flutter-action@v1
with:
channel: "stable"
+ - name: Flutter pub get
+ run: flutter pub get
+ working-directory: frontend/app_flowy
- name: Generate language files
working-directory: frontend/app_flowy
run:
- flutter pub get
flutter pub run easy_localization:generate -S assets/translations/
flutter pub run easy_localization:generate -f keys -o locale_keys.g.dart -S assets/translations -s en.json
- name: flutter analyze
diff --git a/.github/workflows/rust_test.yml b/.github/workflows/rust_test.yml
index 9fb883565e..d4863c170b 100644
--- a/.github/workflows/rust_test.yml
+++ b/.github/workflows/rust_test.yml
@@ -37,8 +37,8 @@ jobs:
echo PATH="$PATH":"$HOME/.pub-cache/bin" >> $GITHUB_PATH
working-directory: frontend
- name: RustLib tests
- run: cargo test
+ run: cargo test --no-default-features
working-directory: frontend/rust-lib
- name: Sharedlib tests
- run: cargo test
+ run: cargo test --no-default-features
working-directory: shared-lib
diff --git a/frontend/rust-lib/dart-ffi/Cargo.toml b/frontend/rust-lib/dart-ffi/Cargo.toml
index 9d733b13e5..7bbd53f824 100644
--- a/frontend/rust-lib/dart-ffi/Cargo.toml
+++ b/frontend/rust-lib/dart-ffi/Cargo.toml
@@ -24,11 +24,12 @@ bytes = { version = "1.0" }
once_cell = "1"
lib-dispatch = {path = "../lib-dispatch" }
-flowy-sdk = {path = "../flowy-sdk", features = ["dart"]}
+flowy-sdk = {path = "../flowy-sdk"}
dart-notify = {path = "../dart-notify" }
flowy-derive = {path = "../../../shared-lib/flowy-derive" }
[features]
+default = ["flowy-sdk/dart"]
flutter = ["dart-notify/dart"]
http_server = ["flowy-sdk/http_server", "flowy-sdk/use_bunyan"]
#use_serde = ["bincode"]
diff --git a/frontend/rust-lib/flowy-folder/src/protobuf/proto/dart_notification.proto b/frontend/rust-lib/flowy-folder/src/protobuf/proto/dart_notification.proto
index 7a87552f7d..edb92f4ac4 100644
--- a/frontend/rust-lib/flowy-folder/src/protobuf/proto/dart_notification.proto
+++ b/frontend/rust-lib/flowy-folder/src/protobuf/proto/dart_notification.proto
@@ -1,5 +1,4 @@
syntax = "proto3";
-
enum FolderNotification {
Unknown = 0;
UserCreateWorkspace = 10;
diff --git a/frontend/rust-lib/flowy-folder/src/protobuf/proto/event_map.proto b/frontend/rust-lib/flowy-folder/src/protobuf/proto/event_map.proto
index 56d4fecd2d..032d6c4e05 100644
--- a/frontend/rust-lib/flowy-folder/src/protobuf/proto/event_map.proto
+++ b/frontend/rust-lib/flowy-folder/src/protobuf/proto/event_map.proto
@@ -1,5 +1,4 @@
syntax = "proto3";
-
enum FolderEvent {
CreateWorkspace = 0;
ReadCurWorkspace = 1;