From 42eeb29992429ab2314d43e5e80eeedf8cab35c7 Mon Sep 17 00:00:00 2001 From: Aevyrie Date: Thu, 5 Dec 2024 00:05:12 -0800 Subject: [PATCH] use tracing instead of bevy log, fix no default features --- Cargo.toml | 8 +++++--- src/floating_origins.rs | 2 +- src/reference_frame/local_origin.rs | 2 +- src/validation.rs | 2 +- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 8c3cd51..5a3968e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "big_space" -version = "0.7.0" +version = "0.8.0" edition = "2021" description = "A floating origin plugin for bevy" license = "MIT OR Apache-2.0" @@ -9,13 +9,15 @@ repository = "https://github.com/aevyrie/big_space" documentation = "https://docs.rs/crate/big_space/latest" [dependencies] +tracing = { version = "0.1", default-features = false } bevy_app = { version = "0.15.0", default-features = false } bevy_ecs = { version = "0.15.0", default-features = false } bevy_hierarchy = { version = "0.15.0", default-features = false } -bevy_log = { version = "0.15.0", default-features = false } bevy_math = { version = "0.15.0", default-features = false } bevy_reflect = { version = "0.15.0", default-features = false } -bevy_transform = { version = "0.15.0", default-features = false } +bevy_transform = { version = "0.15.0", default-features = false, features = [ + "bevy-support", +] } bevy_utils = { version = "0.15.0", default-features = false } # Optional bevy_color = { version = "0.15.0", default-features = false, optional = true } diff --git a/src/floating_origins.rs b/src/floating_origins.rs index ce32f78..9610ff3 100644 --- a/src/floating_origins.rs +++ b/src/floating_origins.rs @@ -2,9 +2,9 @@ use bevy_ecs::prelude::*; use bevy_hierarchy::prelude::*; -use bevy_log::prelude::*; use bevy_reflect::prelude::*; use bevy_utils::HashMap; +use tracing::error; /// Marks the entity to use as the floating origin. /// diff --git a/src/reference_frame/local_origin.rs b/src/reference_frame/local_origin.rs index fff1a17..3ef9df1 100644 --- a/src/reference_frame/local_origin.rs +++ b/src/reference_frame/local_origin.rs @@ -10,9 +10,9 @@ use bevy_ecs::{ }, }; use bevy_hierarchy::prelude::*; -use bevy_log::prelude::*; use bevy_math::{prelude::*, DAffine3, DQuat}; use bevy_transform::prelude::*; +use tracing::error; pub use inner::LocalFloatingOrigin; diff --git a/src/validation.rs b/src/validation.rs index 6a79a23..62823ac 100644 --- a/src/validation.rs +++ b/src/validation.rs @@ -4,9 +4,9 @@ use std::marker::PhantomData; use bevy_ecs::prelude::*; use bevy_hierarchy::prelude::*; -use bevy_log::prelude::*; use bevy_transform::prelude::*; use bevy_utils::HashMap; +use tracing::error; use crate::{ precision::GridPrecision, reference_frame::ReferenceFrame, BigSpace, FloatingOrigin, GridCell,