Add a test crate

This commit is contained in:
Nathan McCarty 2023-05-13 15:14:36 -04:00
parent d05b9e331e
commit 7d9b2d1818
Signed by: thatonelutenist
SSH Key Fingerprint: SHA256:hwQEcmak9E6sdU9bXc98RHw/Xd1AhpB5HZT7ZSVJkRM
4 changed files with 46 additions and 0 deletions

8
test-crate/Cargo.toml Normal file
View File

@ -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]

25
test-crate/flake.lock Normal file
View File

@ -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
}

10
test-crate/flake.nix Normal file
View File

@ -0,0 +1,10 @@
{
inputs = { rust = { url = ./..; }; };
description = "Simple Test Package";
outputs = { self, nixpkgs, rust }:
rust.single {
name = "test-crate";
src = ./.;
};
}

3
test-crate/src/main.rs Normal file
View File

@ -0,0 +1,3 @@
fn main() {
println!("Hello, world!");
}