2021-04-16 23:22:06 +00:00
|
|
|
//! This crate hacks around the inability to dynamically specify the
|
|
|
|
//! `crate-type` for cargo to build.
|
|
|
|
//!
|
|
|
|
//! For more details on the issue this is a decent starting point: https://github.com/rust-lang/cargo/pull/8789
|
|
|
|
//!
|
|
|
|
//! This crate avoids use building the dynamic lib when it isn't needed and the
|
|
|
|
//! same with the non dynamic build. Additionally, this allows compilation to
|
|
|
|
//! start earlier since a cdylib doesn't pipeline with it's dependencies.
|
|
|
|
//!
|
|
|
|
//! NOTE: the `be-dyn-lib` feature must be used for this crate to be useful, it
|
2021-07-04 09:47:18 +00:00
|
|
|
//! is not on by default because this causes cargo to switch the feature on in
|
2021-04-16 23:22:06 +00:00
|
|
|
//! the anim crate when compiling the static lib into voxygen.
|
|
|
|
#[cfg(feature = "be-dyn-lib")]
|
|
|
|
pub use veloren_voxygen_anim::*;
|