engine: add aliases for engine_ crates

master
q3k 2021-07-11 01:24:58 +00:00
parent fab7c59038
commit 296006a280
4 changed files with 10 additions and 12 deletions

View File

@ -18,6 +18,7 @@ rust_library(
"scripting.rs",
],
deps = [
"//engine/input",
"//engine/util",
"//engine/physics",
"//engine/render",

View File

@ -14,5 +14,9 @@
// You should have received a copy of the GNU General Public License along with
// Abrasion. If not, see <https://www.gnu.org/licenses/>.
pub use engine_input as input;
pub mod globals;
pub use engine_physics as physics;
pub use engine_render as render;
pub use engine_util as util;
pub mod scripting;

View File

@ -20,10 +20,6 @@ rust_binary(
],
deps = [
"//engine",
"//engine/input",
"//engine/util",
"//engine/physics",
"//engine/render",
"//lib/ecs",
"//third_party/cargo:cgmath",
"//third_party/cargo:env_logger",

View File

@ -2,14 +2,11 @@ use std::sync::Arc;
use cgmath as cgm;
use ecs_macros::Access;
use engine_input as input;
use engine_render as render;
use engine_render::material;
use engine_render::vulkan::data;
use engine::{globals, scripting};
use engine_physics as physics;
use engine_util as util;
use engine::{
globals, input, physics, render, scripting, util,
};
use engine::render::material;
use engine::render::vulkan::data;
struct Main {
light1: ecs::EntityID,