Updates to project details

This commit is contained in:
2026-10-18 14:41:10 -05:00
parent 5029a7425b
commit befe199b2d
3 changed files with 154 additions and 127 deletions
Generated
+10 -1
View File
@@ -3,5 +3,14 @@
version = 4 version = 4
[[package]] [[package]]
name = "sample-rust-app" name = "kt_log"
version = "0.1.4"
source = "sparse+https://git.moturpin.com/api/packages/Matsubaa/cargo/"
checksum = "3aefa57718ba65539591b8e6bc6062f9eccc3f0b259828553b01dfb8f343f59f"
[[package]]
name = "rustHW"
version = "0.1.0" version = "0.1.0"
dependencies = [
"kt_log",
]
+14 -2
View File
@@ -1,6 +1,18 @@
[package] [package]
name = "sample-rust-app" name = "rustHW"
version = "0.1.0" version = "0.1.0"
edition = "2021" edition = "2024"
[dependencies] [dependencies]
kt_log = { version = "0.1.4", registry = "gitea" }
[lib]
crate-type = ["staticlib"]
[profile.release]
panic = "abort"
lto = true
[profile.dev]
panic = "abort"
+12 -6
View File
@@ -9,13 +9,16 @@
}; };
}; };
outputs = inputs @ {self, ...}: let outputs =
inputs@{ self, ... }:
let
supportedSystems = [ supportedSystems = [
"x86_64-linux" "x86_64-linux"
"aarch64-linux" "aarch64-linux"
"aarch64-darwin" "aarch64-darwin"
]; ];
forEachSupportedSystem = f: forEachSupportedSystem =
f:
inputs.nixpkgs.lib.genAttrs supportedSystems ( inputs.nixpkgs.lib.genAttrs supportedSystems (
system: system:
f { f {
@@ -27,7 +30,8 @@
}; };
} }
); );
in { in
{
formatter = forEachSupportedSystem ({ pkgs }: pkgs.rustfmt); formatter = forEachSupportedSystem ({ pkgs }: pkgs.rustfmt);
templates = { templates = {
@@ -38,9 +42,11 @@
}; };
overlays.default = _final: prev: { overlays.default = _final: prev: {
rustToolchain = with inputs.fenix.packages.${prev.stdenv.hostPlatform.system}; rustToolchain =
with inputs.fenix.packages.${prev.stdenv.hostPlatform.system};
combine ( combine (
with stable; [ with stable;
[
clippy clippy
rustc rustc
cargo cargo
@@ -120,7 +126,7 @@
{ pkgs }: { { pkgs }: {
# Build the skeletal Cargo project # Build the skeletal Cargo project
default = pkgs.rustPlatform.buildRustPackage { default = pkgs.rustPlatform.buildRustPackage {
pname = "sample-rust-app"; pname = "rustHW";
version = "0.1.0"; version = "0.1.0";
src = ./.; src = ./.;
cargoLock.lockFile = ./Cargo.lock; cargoLock.lockFile = ./Cargo.lock;