From 2ab83eec7aca4502f3b6e501fae3faf8ddc1a5ee Mon Sep 17 00:00:00 2001 From: Ivan Enderlin Date: Thu, 26 Nov 2020 17:26:55 +0100 Subject: [PATCH] feat(cranelift-codegen) Re-export `gimli` when `unwind` feature is enabled. When one wants to manipulate the unwind information, the exact version of `gimli` must be used both by the user and `cranelift-codegen`. It makes the update procedure less obvious. This patch proposes to re-export `gimli` when the `unwind` feature is turned on. --- cranelift/codegen/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cranelift/codegen/src/lib.rs b/cranelift/codegen/src/lib.rs index e3be3e0aaf..f975e28066 100644 --- a/cranelift/codegen/src/lib.rs +++ b/cranelift/codegen/src/lib.rs @@ -66,6 +66,8 @@ pub use crate::write::write_function; pub use cranelift_bforest as bforest; pub use cranelift_entity as entity; +#[cfg(feature = "unwind")] +pub use gimli; pub mod binemit; pub mod cfg_printer;