From 7d9b2d18187647060cd1b204d916ca0317739707 Mon Sep 17 00:00:00 2001 From: Nathan McCarty Date: Sat, 13 May 2023 15:14:36 -0400 Subject: [PATCH] Add a test crate --- test-crate/Cargo.toml | 8 ++++++++ test-crate/flake.lock | 25 +++++++++++++++++++++++++ test-crate/flake.nix | 10 ++++++++++ test-crate/src/main.rs | 3 +++ 4 files changed, 46 insertions(+) create mode 100644 test-crate/Cargo.toml create mode 100644 test-crate/flake.lock create mode 100644 test-crate/flake.nix create mode 100644 test-crate/src/main.rs diff --git a/test-crate/Cargo.toml b/test-crate/Cargo.toml new file mode 100644 index 0000000..22ef43c --- /dev/null +++ b/test-crate/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "test-crate" +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/test-crate/flake.lock b/test-crate/flake.lock new file mode 100644 index 0000000..c2c44c3 --- /dev/null +++ b/test-crate/flake.lock @@ -0,0 +1,25 @@ +{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 1683777345, + "narHash": "sha256-V2p/A4RpEGqEZussOnHYMU6XglxBJGCODdzoyvcwig8=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "635a306fc8ede2e34cb3dd0d6d0a5d49362150ed", + "type": "github" + }, + "original": { + "id": "nixpkgs", + "type": "indirect" + } + }, + "root": { + "inputs": { + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/test-crate/flake.nix b/test-crate/flake.nix new file mode 100644 index 0000000..697ebb2 --- /dev/null +++ b/test-crate/flake.nix @@ -0,0 +1,10 @@ +{ + inputs = { rust = { url = ./..; }; }; + description = "Simple Test Package"; + + outputs = { self, nixpkgs, rust }: + rust.single { + name = "test-crate"; + src = ./.; + }; +} diff --git a/test-crate/src/main.rs b/test-crate/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/test-crate/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +}