2021-06-18 00:08:39 +00:00
|
|
|
#![allow(clippy::single_component_path_imports)]
|
|
|
|
|
2020-11-10 03:26:08 +00:00
|
|
|
//! Forces dynamic linking of Bevy.
|
|
|
|
//!
|
|
|
|
//! Dynamically linking Bevy makes the "link" step much faster. This can be achieved by adding
|
|
|
|
//! `bevy_dylib` as dependency and `#[allow(unused_imports)] use bevy_dylib` to `main.rs`. It is
|
|
|
|
//! recommended to disable the `bevy_dylib` dependency in release mode by adding
|
|
|
|
//! `#[cfg(debug_assertions)]` to the `use` statement. Otherwise you will have to ship `libstd.so`
|
|
|
|
//! and `libbevy_dylib.so` with your game.
|
|
|
|
|
|
|
|
// Force linking of the main bevy crate
|
|
|
|
#[allow(unused_imports)]
|
|
|
|
use bevy_internal;
|