Skip to content

Commit e5c1d1a

Browse files
committed
Start from ground up
1 parent 6e4ff05 commit e5c1d1a

34 files changed

+79
-7303
lines changed

.cargo/config.toml

+10-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
[target.x86_64-unknown-linux-gnu]
2-
linker = "clang"
3-
rustflags = ["-C", "link-arg=-fuse-ld=/usr/bin/mold"]
2+
linker = "clang"
3+
rustflags = ["-C", "link-arg=-fuse-ld=/usr/bin/mold", "-Zshare-generics=y"]
44

5-
[build]
6-
rustflags = ["-Z", "threads=8"]
5+
[unstable]
6+
codegen-backend = true
7+
8+
[profile.dev]
9+
codegen-backend = "cranelift"
10+
11+
[profile.dev.package."*"]
12+
codegen-backend = "llvm"

.github/workflows/deploy.yml

+3-4
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ jobs:
88
deploy:
99
runs-on: ubuntu-latest
1010
permissions:
11-
contents: write # To push a branch
12-
pages: write # To push to a GitHub Pages site
13-
id-token: write # To update the deployment status
11+
contents: write
12+
pages: write
13+
id-token: write
1414
steps:
1515
- uses: actions/checkout@v4
1616
with:
@@ -31,7 +31,6 @@ jobs:
3131
- name: Upload artifact
3232
uses: actions/upload-pages-artifact@v3
3333
with:
34-
# Upload entire repository
3534
path: 'docs/book'
3635
- name: Deploy to GitHub Pages
3736
id: deployment

.vscode/keybindings.json

-21
This file was deleted.

.vscode/tasks.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"$rustc"
1010
],
1111
"group": "build",
12-
"label": "rust: cargo run 1"
12+
"label": "Run 1"
1313
},
1414
{
1515
"type": "cargo",
@@ -19,7 +19,7 @@
1919
"$rustc"
2020
],
2121
"group": "build",
22-
"label": "rust: cargo run 2"
22+
"label": "Run 1"
2323
},
2424
{
2525
"type": "cargo",
@@ -29,7 +29,7 @@
2929
"$rustc"
3030
],
3131
"group": "build",
32-
"label": "rust: cargo run 3"
32+
"label": "Run 1"
3333
}
3434
]
3535
}

Cargo.toml

+37-16
Original file line numberDiff line numberDiff line change
@@ -3,46 +3,67 @@
33

44
[workspace]
55
resolver = "2"
6-
members = ["crates/*", "examples/*"]
7-
exclude = [".vscode", "docs/*", "examples/*", "promo/*", ".gitignore"]
6+
members = ["crate"]
7+
exclude = [".github", ".vscode", "docs/*", "examples/*", "promo/*", ".gitignore", "examples/*"]
88

99
[workspace.package]
1010
authors = ["IDEDARY"]
11-
version = "0.2.4"
11+
version = "0.3.0"
1212
edition = "2021"
1313
license = "MIT OR Apache-2.0"
1414
repository = "https://github.com/bytestring-net/bevy-lunex"
1515
keywords = ["ui", "layout", "bevy", "lunex", "bevy-lunex"]
1616
categories = ["gui", "mathematics", "game-development"]
1717

1818
#========================#
19-
#=== PACKAGE SETTINGS ===#
19+
#=== PROFILE SETTINGS ===#
2020

2121
[profile.dev]
22+
debug = 0
23+
strip = "debuginfo"
2224
opt-level = 1
2325

26+
[profile.dev.package."*"]
27+
opt-level = 3
28+
29+
[profile.release]
30+
opt-level = 3
31+
panic = 'abort'
32+
debug = 0
33+
strip = true
34+
lto = "thin"
35+
codegen-units = 1
36+
2437
#===============================#
2538
#=== DEPENDENCIES & FEATURES ===#
2639

2740
[workspace.dependencies]
28-
# LOCAL CRATES
29-
bevy_lunex = { path = "crates/bevy_lunex", version = "0.2.4" }
30-
lunex_engine = { path = "crates/lunex_engine", version = "0.2.4" }
3141

32-
# STANDART DEPENDENCIES
33-
colored = { version = "^2.1" }
34-
indexmap = { version = "^2.1" }
35-
thiserror = { version = "^1.0" }
42+
# LIBRARY CRATES
43+
bevy_lunex = { path = "crate" }
44+
45+
#===========================#
46+
#=== GAME ENGINE SOURCE === #
3647

3748
# GAME ENGINE
38-
bevy = { version = "^0.14", default-features = false, features = [
49+
bevy = { version = "^0.15.1", default-features = false, features = [
3950
"bevy_pbr",
4051
"bevy_sprite",
4152
"bevy_text",
42-
"multi_threaded",
4353
"bevy_gizmos",
54+
"bevy_picking",
55+
"bevy_ui",
4456
] }
4557

46-
# 3RD-PARTY GAME ENGINE CRATES
47-
bevy_kira_audio = { version = "^0.20" }
48-
bevy_mod_picking = { version = "^0.20", default-features = false, features = ["selection", "backend_raycast"] }
58+
#===============================#
59+
#=== GAME ENGINE EXTENSIONS === #
60+
61+
# AUDIO
62+
bevy_kira_audio = { version = "^0.22.0" }
63+
64+
#===========================#
65+
#=== RUST MISCELLANEOUS === #
66+
67+
colored = { version = "^3.0.0" }
68+
indexmap = { version = "^2.7.1" }
69+
thiserror = { version = "^2.0.11" }

crate/Cargo.toml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#====================#
2+
#=== PACKAGE INFO ===#
3+
4+
[package]
5+
name = "bevy_lunex"
6+
authors.workspace = true
7+
version.workspace = true
8+
edition.workspace = true
9+
license.workspace = true
10+
repository.workspace = true
11+
keywords.workspace = true
12+
categories.workspace = true
13+
14+
#===============================#
15+
#=== DEPENDENCIES & FEATURES ===#
16+
17+
[dependencies]
18+
19+
# GAME ENGINE
20+
bevy = { workspace = true }
21+
22+
# AUDIO
23+
bevy_kira_audio = { workspace = true }

crate/src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

crates/bevy_lunex/Cargo.toml

-26
This file was deleted.

crates/bevy_lunex/README.md

-106
This file was deleted.

0 commit comments

Comments
 (0)