-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #32 from hyoi/split_crate
Split crate
- Loading branch information
Showing
56 changed files
with
598 additions
and
498 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,28 @@ | ||
[workspace] | ||
resolver = "2" | ||
members = [ "tigtag", "macros", "macros_inside" ] | ||
members = [ "crates/tigtag" ] | ||
|
||
[workspace.package] | ||
version = "0.13.0" | ||
edition = "2021" | ||
|
||
[workspace.dependencies] | ||
#bevy = { git = "https://github.com/bevyengine/bevy" } #Master branch | ||
bevy = "0.13" | ||
once_cell = "1" | ||
rand = "0.8" | ||
chrono = "0.4" | ||
|
||
syn = "2" | ||
quote = "1" | ||
proc-macro2 = "1" | ||
|
||
tigtag_inside = { path = "crates/tigtag_inside" } | ||
share = { path = "crates/share" } | ||
macros = { path = "crates/macros" } | ||
macros_inside = { path = "crates/macros_inside" } | ||
|
||
# WASMの場合にどれか指定する必要がある?? | ||
# rand = { version = "0.8.4", features = [ "wasm-bindgen" ] } | ||
# getrandom = { version = "0.2.4", features = [ "js" ] } | ||
# getrandom = { version = "0.2.4", features = [ "wasm-bindgen" ] } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
[package] | ||
name = "macros" | ||
version = "0.1.0" | ||
edition = "2021" | ||
version.workspace = true | ||
edition.workspace = true | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[lib] | ||
proc-macro = true | ||
|
||
[dependencies] | ||
macros_inside = { path = "../macros_inside" } | ||
macros_inside.workspace = true |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
[package] | ||
name = "macros_inside" | ||
version = "0.1.0" | ||
edition = "2021" | ||
version.workspace = true | ||
edition.workspace = true | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[dependencies] | ||
syn = "2.0" | ||
quote = "1.0" | ||
proc-macro2 = "1.0" | ||
syn.workspace = true | ||
quote.workspace = true | ||
proc-macro2.workspace = true |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[package] | ||
name = "share" | ||
version.workspace = true | ||
edition.workspace = true | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[dependencies] | ||
bevy.workspace = true | ||
once_cell.workspace = true | ||
|
||
macros.workspace = true | ||
|
||
[features] | ||
sprite_sheet_off = [] # cargo run --features sprite_sheet_off |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
//external crates | ||
use bevy:: | ||
{ prelude::*, | ||
window::WindowMode, | ||
ecs::query::QueryFilter, | ||
}; | ||
use once_cell::sync::Lazy; | ||
|
||
//standard library | ||
use std:: | ||
{ ops::Range, | ||
f32::consts::{ PI, TAU }, | ||
}; | ||
|
||
//proc-macro crates | ||
use macros::MyState; | ||
|
||
//アプリの設定 | ||
mod config; | ||
pub use config::*; | ||
|
||
//型定義 | ||
mod types; | ||
pub use types::*; | ||
|
||
//ユーティリティ | ||
pub mod misc; | ||
pub use misc::constants::*; //定数は名前を公開 | ||
|
||
//End of code. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[package] | ||
name = "tigtag" | ||
version.workspace = true | ||
edition.workspace = true | ||
|
||
[dependencies] | ||
bevy.workspace = true | ||
once_cell.workspace = true | ||
rand.workspace = true | ||
chrono.workspace = true | ||
|
||
tigtag_inside.workspace = true | ||
share.workspace = true |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[package] | ||
name = "tigtag_inside" | ||
version.workspace = true | ||
edition.workspace = true | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[dependencies] | ||
bevy.workspace = true | ||
once_cell.workspace = true | ||
rand.workspace = true | ||
|
||
share.workspace = true |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.