summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.cargo/Config.toml16
-rw-r--r--.gitignore2
-rw-r--r--Cargo.toml36
-rw-r--r--alligator_render/Cargo.toml33
-rw-r--r--alligator_render/examples/black.rs (renamed from examples/black.rs)0
-rw-r--r--alligator_render/examples/bmp.rs (renamed from examples/bmp.rs)0
-rw-r--r--alligator_render/examples/res/gator.bmp (renamed from examples/res/gator.bmp)bin750054 -> 750054 bytes
-rw-r--r--alligator_render/examples/res/gator.ff (renamed from examples/res/gator.ff)bin2000016 -> 2000016 bytes
-rw-r--r--alligator_render/examples/res/ghost.ico (renamed from examples/res/ghost.ico)bin67646 -> 67646 bytes
-rw-r--r--alligator_render/shaders/sprite.wgsl (renamed from shaders/sprite.wgsl)0
-rw-r--r--alligator_render/src/camera.rs (renamed from src/camera.rs)0
-rw-r--r--alligator_render/src/config.rs (renamed from src/config.rs)0
-rw-r--r--alligator_render/src/instance.rs (renamed from src/instance.rs)0
-rw-r--r--alligator_render/src/lib.rs (renamed from src/lib.rs)0
-rw-r--r--alligator_render/src/renderer.rs (renamed from src/renderer.rs)0
-rw-r--r--alligator_render/src/texture.rs (renamed from src/texture.rs)0
-rw-r--r--alligator_render/src/vertex.rs (renamed from src/vertex.rs)0
17 files changed, 54 insertions, 33 deletions
diff --git a/.cargo/Config.toml b/.cargo/Config.toml
new file mode 100644
index 0000000..32e1bdc
--- /dev/null
+++ b/.cargo/Config.toml
@@ -0,0 +1,16 @@
+[profile.small]
+opt-level = "z"
+inherits = "release"
+
+[profile.bm]
+lto = true
+inherits = "dev"
+
+[profile.release]
+lto = true
+strip = true
+codegen-units = 1
+panic = "abort"
+
+[profile.dev]
+opt-level = 1
diff --git a/.gitignore b/.gitignore
index 4fffb2f..bbbe8bb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,4 @@
/target
/Cargo.lock
+*/target
+*/Cargo.lock \ No newline at end of file
diff --git a/Cargo.toml b/Cargo.toml
index 01c5738..f5f9bfb 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,33 +1,3 @@
-[package]
-name = "alligator_render"
-version = "0.1.0"
-edition = "2021"
-
-# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
-
-[dependencies]
-winit = "0.27"
-log = "0.4"
-wgpu = "0.14"
-thiserror = "1"
-pollster = "0.2"
-bytemuck = { version = "1.4", features = ["derive"] }
-cgmath = "0.18"
-image = "0.24"
-texture_packer = "0.24"
-profiling = "1"
-tracy-client = { version = "0.14", optional = true }
-dhat = "0.3"
-
-[lib]
-crate-type = ["cdylib", "lib"]
-
-[features]
-dhat = []
-profile-with-tracy = ["tracy-client", "profiling/profile-with-tracy"]
-
-[[example]]
-name = "black"
-
-[[example]]
-name = "bmp"
+[workspace]
+members = ["alligator_render"]
+resolver = "2" \ No newline at end of file
diff --git a/alligator_render/Cargo.toml b/alligator_render/Cargo.toml
new file mode 100644
index 0000000..01c5738
--- /dev/null
+++ b/alligator_render/Cargo.toml
@@ -0,0 +1,33 @@
+[package]
+name = "alligator_render"
+version = "0.1.0"
+edition = "2021"
+
+# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
+
+[dependencies]
+winit = "0.27"
+log = "0.4"
+wgpu = "0.14"
+thiserror = "1"
+pollster = "0.2"
+bytemuck = { version = "1.4", features = ["derive"] }
+cgmath = "0.18"
+image = "0.24"
+texture_packer = "0.24"
+profiling = "1"
+tracy-client = { version = "0.14", optional = true }
+dhat = "0.3"
+
+[lib]
+crate-type = ["cdylib", "lib"]
+
+[features]
+dhat = []
+profile-with-tracy = ["tracy-client", "profiling/profile-with-tracy"]
+
+[[example]]
+name = "black"
+
+[[example]]
+name = "bmp"
diff --git a/examples/black.rs b/alligator_render/examples/black.rs
index c66b080..c66b080 100644
--- a/examples/black.rs
+++ b/alligator_render/examples/black.rs
diff --git a/examples/bmp.rs b/alligator_render/examples/bmp.rs
index af71863..af71863 100644
--- a/examples/bmp.rs
+++ b/alligator_render/examples/bmp.rs
diff --git a/examples/res/gator.bmp b/alligator_render/examples/res/gator.bmp
index e752b56..e752b56 100644
--- a/examples/res/gator.bmp
+++ b/alligator_render/examples/res/gator.bmp
Binary files differ
diff --git a/examples/res/gator.ff b/alligator_render/examples/res/gator.ff
index aac1bcb..aac1bcb 100644
--- a/examples/res/gator.ff
+++ b/alligator_render/examples/res/gator.ff
Binary files differ
diff --git a/examples/res/ghost.ico b/alligator_render/examples/res/ghost.ico
index 102de00..102de00 100644
--- a/examples/res/ghost.ico
+++ b/alligator_render/examples/res/ghost.ico
Binary files differ
diff --git a/shaders/sprite.wgsl b/alligator_render/shaders/sprite.wgsl
index 60b5773..60b5773 100644
--- a/shaders/sprite.wgsl
+++ b/alligator_render/shaders/sprite.wgsl
diff --git a/src/camera.rs b/alligator_render/src/camera.rs
index ecece90..ecece90 100644
--- a/src/camera.rs
+++ b/alligator_render/src/camera.rs
diff --git a/src/config.rs b/alligator_render/src/config.rs
index c73c357..c73c357 100644
--- a/src/config.rs
+++ b/alligator_render/src/config.rs
diff --git a/src/instance.rs b/alligator_render/src/instance.rs
index 2d1808f..2d1808f 100644
--- a/src/instance.rs
+++ b/alligator_render/src/instance.rs
diff --git a/src/lib.rs b/alligator_render/src/lib.rs
index f5403f2..f5403f2 100644
--- a/src/lib.rs
+++ b/alligator_render/src/lib.rs
diff --git a/src/renderer.rs b/alligator_render/src/renderer.rs
index afcb92b..afcb92b 100644
--- a/src/renderer.rs
+++ b/alligator_render/src/renderer.rs
diff --git a/src/texture.rs b/alligator_render/src/texture.rs
index e343508..e343508 100644
--- a/src/texture.rs
+++ b/alligator_render/src/texture.rs
diff --git a/src/vertex.rs b/alligator_render/src/vertex.rs
index 570eec4..570eec4 100644
--- a/src/vertex.rs
+++ b/alligator_render/src/vertex.rs