From 29d292637b0bd7a1deb9cc51607b62531109b2bb Mon Sep 17 00:00:00 2001 From: Gary Guo Date: Sat, 29 Jul 2023 15:02:45 +0100 Subject: [PATCH] Allow unwinding_dyn to be built as staticlib --- cdylib/Cargo.toml | 2 +- cdylib/src/lib.rs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/cdylib/Cargo.toml b/cdylib/Cargo.toml index e79d1b9..ce3168f 100644 --- a/cdylib/Cargo.toml +++ b/cdylib/Cargo.toml @@ -5,7 +5,7 @@ authors = ["Gary Guo "] edition = "2018" [lib] -crate-type = ["cdylib"] +crate-type = ["cdylib", "staticlib"] [dependencies] unwinding = { path = "../", features = ["system-alloc", "personality-dummy", "panic-handler-dummy"] } diff --git a/cdylib/src/lib.rs b/cdylib/src/lib.rs index 71cdd2e..d9d98d4 100644 --- a/cdylib/src/lib.rs +++ b/cdylib/src/lib.rs @@ -1,5 +1,4 @@ #![no_std] -#![feature(default_alloc_error_handler)] #![warn(rust_2018_idioms)] #![warn(unsafe_op_in_unsafe_fn)]