commit e20654782377295517a18bdc1c12a56b4f41f8b9 Author: Tim Schubert Date: Sat Dec 28 19:28:24 2024 +0100 init diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ea8c4bf --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/target diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..df91ec2 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,6 @@ +[package] +name = "pam-honeypot" +version = "0.1.0" +edition = "2021" + +[dependencies] diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..3f3d50d --- /dev/null +++ b/flake.nix @@ -0,0 +1,35 @@ +{ + description = "a653rs-router"; + + inputs = { + fenix = { + url = "github:nix-community/fenix"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + flake-utils.url = "github:numtide/flake-utils"; + }; + + outputs = { fenix, flake-utils, nixpkgs, ... }: flake-utils.lib.eachSystem [ "x86_64-linux" ] (system: + let + pkgs = import nixpkgs { inherit system; }; + rustToolchain = with fenix.packages.${system}; combine [ + latest.rustc + latest.cargo + latest.clippy + latest.rustfmt + latest.rust-src + latest.rust-analyzer + targets.aarch64-unknown-uefi.latest.rust-std + targets.i686-unknown-uefi.latest.rust-std + targets.x86_64-unknown-uefi.latest.rust-std + ]; + in + { + devShells.default = pkgs.mkShell { + packages = [ + rustToolchain + ]; + }; + } + ); +} diff --git a/src/main.rs b/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +}