1

Initial project structure

This commit is contained in:
2024-10-04 16:39:28 +02:00
parent c535a9c375
commit 10ea59059e
6 changed files with 4555 additions and 3 deletions

1
.envrc Normal file
View File

@ -0,0 +1 @@
use flake

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
/target
/.direnv

4532
Cargo.lock generated Normal file

File diff suppressed because it is too large Load Diff

15
Cargo.toml Normal file
View File

@ -0,0 +1,15 @@
[package]
name = "ant_sim"
version = "0.1.0"
edition = "2021"
[dependencies]
bevy = { version = "0.14.2", features = ["wayland", "dynamic_linking"] }
# Enable a small amount of optimization in the dev profile.
[profile.dev]
opt-level = 1
# Enable a large amount of optimization in the dev profile for dependencies.
[profile.dev.package."*"]
opt-level = 3

View File

@ -8,7 +8,6 @@
outputs = {
self,
lib,
nixpkgs,
flake-utils,
devshell,
@ -29,7 +28,7 @@
extensions = ["rust-src"]; # Include the rust stdlib source for intellij
};
in {
devShell = pkgs.devshell.mkShell {
devShell = pkgs.devshell.mkShell rec {
name = "Rust Environment";
packages = with pkgs; [
@ -56,7 +55,7 @@
# Use this if the rust binary needs additional libraries
{
name = "LD_LIBRARY_PATH";
value = lib.makeLibraryPath self.packages;
value = nixpkgs.lib.makeLibraryPath packages;
# value = "${pkgs.xorg.libX11}/lib:${pkgs.xorg.libXcursor}/lib:${pkgs.xorg.libXrandr}/lib:${pkgs.xorg.libXi}/lib:${pkgs.libGL}/lib";
}
];

3
src/main.rs Normal file
View File

@ -0,0 +1,3 @@
fn main() {
println!("Hello, world!");
}