Skip to content

Commit

Permalink
rename again
Browse files Browse the repository at this point in the history
  • Loading branch information
philiplinden committed Dec 17, 2024
1 parent 5ace724 commit 0b8abf7
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 14 deletions.
19 changes: 10 additions & 9 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,31 +12,31 @@ default-run = "yahs"
# When importing this crate as a dependency, use the simulator library as "yahs"
[lib]
name = "yahs"
path = "src/simulator/src/lib.rs"
path = "crates/yahs/src/lib.rs"

# When running this project as a CLI, use the CLI binary as "yahs"
[[bin]]
name = "yahs"
path = "src/cli/src/main.rs"
path = "crates/yahs-cli/src/main.rs"

# These are the dependencies when building the CLI from the project root
[dependencies]
# Simulator dependencies
yahs-simulator = { path = "src/simulator" }
yahs = { path = "crates/yahs" }
bevy = { workspace = true }
avian3d = { workspace = true }
bevy-trait-query = { workspace = true }

# CLI dependencies
yahs-cli = { path = "src/cli" }
yahs-cli = { path = "crates/yahs-cli" }
bevy_ratatui = "0.7.0"
ratatui = "0.29"
color-eyre = "0.6.3"
crossterm = "0.28.1"

[features]
default = ["dev"]
dev = ["yahs-cli/dev", "yahs-simulator/dev"]
dev = ["yahs-cli/dev", "yahs/dev"]

[workspace.package]
authors = ["Philip Linden <[email protected]>"]
Expand All @@ -46,9 +46,9 @@ license = "MIT or Apache-2.0"
[workspace]
resolver = "2" # Important for Bevy
members = [
"src/simulator",
"src/cli",
"src/ui"
"crates/yahs",
"crates/yahs-cli",
"crates/yahs-ui"
]

[workspace.dependencies]
Expand Down Expand Up @@ -92,7 +92,8 @@ debug = false
[profile.release]
# Compile the entire crate as one unit. Slows compile times, marginal
# improvements.
codegen-units = 1
# codegen-units = 1

# Optimize with size in mind (also try "z", sometimes it is better).
# Slightly slows compile times, great improvements to file size and runtime
# performance.
Expand Down
2 changes: 1 addition & 1 deletion crates/yahs-ui/src/camera.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use bevy::{
use std::f32::consts::PI;

use super::controls::{CameraControls, KeyBindingsConfig};
use yahs_simulator::prelude::Balloon;
use yahs::prelude::Balloon;

pub struct CameraPlugin;

Expand Down
2 changes: 1 addition & 1 deletion crates/yahs-ui/src/controls.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use bevy::prelude::*;

use yahs_simulator::prelude::{SimState, TimeScaleOptions};
use yahs::prelude::{SimState, TimeScaleOptions};

pub struct ControlsPlugin;

Expand Down
2 changes: 1 addition & 1 deletion crates/yahs-ui/src/gizmos.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use bevy::{color::palettes::basic::*, prelude::*};

use crate::simulator::forces::Force;
use yahs::forces::Force;

const ARROW_SCALE: f32 = 0.1;

Expand Down
2 changes: 1 addition & 1 deletion crates/yahs-ui/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ use bevy::{
asset::AssetMetaCheck,
};

use yahs_simulator::prelude::SimulatorPlugins;
use yahs::prelude::SimulatorPlugins;

fn main() {
App::new()
Expand Down
2 changes: 1 addition & 1 deletion crates/yahs-ui/src/scene.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use avian3d::prelude::*;
use bevy::prelude::*;
use std::f32::consts::PI;

use yahs_simulator::prelude::*;
use yahs::prelude::*;

pub struct ScenePlugin;

Expand Down

0 comments on commit 0b8abf7

Please sign in to comment.