Moves the hello plugin out to it's own crate

master
Joey Pollack 2 years ago
parent b9e9069509
commit ee95440d04

18
Cargo.lock generated

@ -293,7 +293,6 @@ version = "0.13.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "65b9eadaacf8fe971331bc3f250f35c18bc9dace3f96b483062f38ac07e3a1b4"
dependencies = [
"bevy_dylib",
"bevy_internal",
]
@ -470,15 +469,6 @@ dependencies = [
"sysinfo",
]
[[package]]
name = "bevy_dylib"
version = "0.13.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "922826e3b8f37c19836b49e18ceca662260cce87ab8faa4db6df8433903660cc"
dependencies = [
"bevy_internal",
]
[[package]]
name = "bevy_ecs"
version = "0.13.2"
@ -1172,6 +1162,7 @@ name = "bricks"
version = "0.1.0"
dependencies = [
"bevy",
"hello",
]
[[package]]
@ -2008,6 +1999,13 @@ dependencies = [
"winapi",
]
[[package]]
name = "hello"
version = "0.1.0"
dependencies = [
"bevy",
]
[[package]]
name = "hermit-abi"
version = "0.3.9"

@ -3,11 +3,9 @@ name = "bricks"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
bevy = { version = "0.13.0", features = ["dynamic_linking"] }
[workspace]
resolver = "2" # Important! wgpu/Bevy needs this!
members = ["crates/hello"]
# Enable a small amount of optimization in debug mode
[profile.dev]
@ -25,3 +23,12 @@ rustflags = ["-C", "link-arg=-fuse-ld=lld"]
# for Windows
[target.x86_64-pc-windows-msvc]
linker = "rust-lld.exe"
[dependencies]
hello = { workspace = true }
bevy = { workspace = true }
# bevy = { version = "0.13.0", features = ["dynamic_linking"] }
[workspace.dependencies]
hello = { path = "crates/hello" }
bevy = { version = "0.13.0" }

@ -0,0 +1,11 @@
[package]
name = "hello"
description = "A Test Module For the Bevy App"
version = "0.1.0"
edition = "2021"
[dependencies]
bevy = { workspace = true }

@ -0,0 +1,3 @@
pub mod hello;

@ -1,8 +1,8 @@
use bevy::prelude::*;
mod hello_plugin;
use hello_plugin::HelloPlugin;
// extern crate hello;
use hello::hello::HelloPlugin;
fn main()
{

Loading…
Cancel
Save