Browse Source

chore: set error_task script

appflowy 3 năm trước cách đây
mục cha
commit
1c1e955151

+ 6 - 0
frontend/Makefile.toml

@@ -9,6 +9,12 @@ extend = [
     { path = "scripts/makefile/flutter.toml" },
     { path = "scripts/makefile/flutter.toml" },
 ]
 ]
 
 
+[config]
+on_error_task = "catch"
+
+[tasks.catch]
+run_task = {name = ["restore-crate-type"]}
+
 [env]
 [env]
 RUST_LOG = "info"
 RUST_LOG = "info"
 CARGO_MAKE_EXTEND_WORKSPACE_MAKEFILE = true
 CARGO_MAKE_EXTEND_WORKSPACE_MAKEFILE = true

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

@@ -7,8 +7,8 @@ edition = "2018"
 [lib]
 [lib]
 name = "dart_ffi"
 name = "dart_ffi"
 # this value will change depending on the target os
 # this value will change depending on the target os
-# default cdylib
-crate-type = ["cdylib"]
+# default static lib
+crate-type = ["staticlib"]
 
 
 
 
 [dependencies]
 [dependencies]