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.
This commit is contained in:
Ivan Enderlin
2020-11-26 17:26:55 +01:00
parent d413b907b4
commit 2ab83eec7a

View File

@@ -66,6 +66,8 @@ pub use crate::write::write_function;
pub use cranelift_bforest as bforest; pub use cranelift_bforest as bforest;
pub use cranelift_entity as entity; pub use cranelift_entity as entity;
#[cfg(feature = "unwind")]
pub use gimli;
pub mod binemit; pub mod binemit;
pub mod cfg_printer; pub mod cfg_printer;