瀏覽代碼

chore: set error_task script

appflowy 3 年之前
父節點
當前提交
1c1e955151
共有 2 個文件被更改,包括 8 次插入2 次删除
  1. 6 0
      frontend/Makefile.toml
  2. 2 2
      frontend/rust-lib/dart-ffi/Cargo.toml

+ 6 - 0
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

+ 2 - 2
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]