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.

chore: set error_task script

appflowy1c1e9551513c
diff --git a/frontend/Makefile.toml b/frontend/Makefile.toml
index e661a425b6..4a492f4671 100644
--- a/frontend/Makefile.toml
+++ b/frontend/Makefile.toml
@@ -9,6 +9,12 @@ extend = [
{ path = "scripts/makefile/flutter.toml" },
]
+[config]
+on_error_task = "catch"
+
+[tasks.catch]
+run_task = {name = ["restore-crate-type"]}
+
[env]
RUST_LOG = "info"
CARGO_MAKE_EXTEND_WORKSPACE_MAKEFILE = true
diff --git a/frontend/rust-lib/dart-ffi/Cargo.toml b/frontend/rust-lib/dart-ffi/Cargo.toml
index 046fd85668..df26694331 100644
--- a/frontend/rust-lib/dart-ffi/Cargo.toml
+++ b/frontend/rust-lib/dart-ffi/Cargo.toml
@@ -7,8 +7,8 @@ edition = "2018"
[lib]
name = "dart_ffi"
# this value will change depending on the target os
-# default cdylib
-crate-type = ["cdylib"]
+# default static lib
+crate-type = ["staticlib"]
[dependencies]