Initial project structure
This commit is contained in:
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
/target
|
||||||
|
/.direnv
|
4532
Cargo.lock
generated
Normal file
4532
Cargo.lock
generated
Normal file
File diff suppressed because it is too large
Load Diff
15
Cargo.toml
Normal file
15
Cargo.toml
Normal 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
|
@ -8,7 +8,6 @@
|
|||||||
|
|
||||||
outputs = {
|
outputs = {
|
||||||
self,
|
self,
|
||||||
lib,
|
|
||||||
nixpkgs,
|
nixpkgs,
|
||||||
flake-utils,
|
flake-utils,
|
||||||
devshell,
|
devshell,
|
||||||
@ -29,7 +28,7 @@
|
|||||||
extensions = ["rust-src"]; # Include the rust stdlib source for intellij
|
extensions = ["rust-src"]; # Include the rust stdlib source for intellij
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
devShell = pkgs.devshell.mkShell {
|
devShell = pkgs.devshell.mkShell rec {
|
||||||
name = "Rust Environment";
|
name = "Rust Environment";
|
||||||
|
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
@ -56,7 +55,7 @@
|
|||||||
# Use this if the rust binary needs additional libraries
|
# Use this if the rust binary needs additional libraries
|
||||||
{
|
{
|
||||||
name = "LD_LIBRARY_PATH";
|
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";
|
# 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
3
src/main.rs
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
fn main() {
|
||||||
|
println!("Hello, world!");
|
||||||
|
}
|
Reference in New Issue
Block a user