From 1c1e9551513c14b2924c1c31c1d5668ffb350fd6 Mon Sep 17 00:00:00 2001 From: appflowy Date: Mon, 7 Mar 2022 08:30:59 +0800 Subject: [PATCH] chore: set error_task script --- frontend/Makefile.toml | 6 ++++++ frontend/rust-lib/dart-ffi/Cargo.toml | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) 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]