Updates to project details
This commit is contained in:
Generated
+10
-1
@@ -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
@@ -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"
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user