From b414f3e0ea31f0902683d2cfb016efd7ca3c73b7 Mon Sep 17 00:00:00 2001 From: Savanni D'Gerinel Date: Sat, 3 Feb 2024 15:32:56 -0500 Subject: [PATCH] Initialize the falling-sand project --- Cargo.lock | 4 ++++ Cargo.nix | 28 ++++++++++++++++++++++++++++ Cargo.toml | 1 + falling-sand/Cargo.toml | 8 ++++++++ falling-sand/src/main.rs | 3 +++ flake.nix | 1 + 6 files changed, 45 insertions(+) create mode 100644 falling-sand/Cargo.toml create mode 100644 falling-sand/src/main.rs diff --git a/Cargo.lock b/Cargo.lock index f1f2ffb..f4a56e9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -861,6 +861,10 @@ dependencies = [ "zune-inflate", ] +[[package]] +name = "falling-sand" +version = "0.1.0" + [[package]] name = "fastrand" version = "2.0.1" diff --git a/Cargo.nix b/Cargo.nix index 80c4af3..3658df2 100644 --- a/Cargo.nix +++ b/Cargo.nix @@ -115,6 +115,16 @@ rec { # File a bug if you depend on any for non-debug work! debug = internal.debugCrate { inherit packageId; }; }; + "falling-sand" = rec { + packageId = "falling-sand"; + build = internal.buildRustCrateWithFeatures { + packageId = "falling-sand"; + }; + + # Debug support which might change between releases. + # File a bug if you depend on any for non-debug work! + debug = internal.debugCrate { inherit packageId; }; + }; "file-service" = rec { packageId = "file-service"; build = internal.buildRustCrateWithFeatures { @@ -2754,6 +2764,24 @@ rec { } ]; + }; + "falling-sand" = rec { + crateName = "falling-sand"; + version = "0.1.0"; + edition = "2021"; + crateBin = [ + { + name = "falling-sand"; + path = "src/main.rs"; + requiredFeatures = [ ]; + } + ]; + # We can't filter paths with references in Nix 2.4 + # See https://github.com/NixOS/nix/issues/5410 + src = if ((lib.versionOlder builtins.nixVersion "2.4pre20211007") || (lib.versionOlder "2.5" builtins.nixVersion )) + then lib.cleanSourceWith { filter = sourceFilter; src = ./falling-sand; } + else ./falling-sand; + }; "fastrand" = rec { crateName = "fastrand"; diff --git a/Cargo.toml b/Cargo.toml index bf860b2..c011da6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,6 +9,7 @@ members = [ "cyberpunk-splash", "dashboard", "emseries", + "falling-sand", "file-service", "fitnesstrax/core", "fitnesstrax/app", diff --git a/falling-sand/Cargo.toml b/falling-sand/Cargo.toml new file mode 100644 index 0000000..9fc91e6 --- /dev/null +++ b/falling-sand/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "falling-sand" +version = "0.1.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/falling-sand/src/main.rs b/falling-sand/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/falling-sand/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +} diff --git a/flake.nix b/flake.nix index 91bc76d..fb1f343 100644 --- a/flake.nix +++ b/flake.nix @@ -81,6 +81,7 @@ dashboard = cargo_nix.workspaceMembers.dashboard.build; file-service = cargo_nix.workspaceMembers.file-service.build; fitnesstrax = cargo_nix.workspaceMembers.fitnesstrax.build; + falling-sand = cargo_nix.workspaceMembers.falling-sand.build; all = pkgs.symlinkJoin { name = "all";