From 70103e5ca9e5331dec0b3cc98f697bbffa7d7283 Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Sun, 12 Jul 2020 12:54:33 -0400 Subject: [PATCH] set up base crate layout --- .gitignore | 5 +++++ Cargo.toml | 9 +++++++++ nix/sources.json | 12 ++++++++++++ src/main.rs | 3 +++ 4 files changed, 29 insertions(+) create mode 100644 Cargo.toml create mode 100644 src/main.rs diff --git a/.gitignore b/.gitignore index 950c877..4f265b6 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,8 @@ cw.tar /result .#* + + +#Added by cargo + +/target diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..4bf1e48 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,9 @@ +[package] +name = "xesite" +version = "0.1.0" +authors = ["Christine Dodrill "] +edition = "2018" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/nix/sources.json b/nix/sources.json index 670fcbd..50de672 100644 --- a/nix/sources.json +++ b/nix/sources.json @@ -11,6 +11,18 @@ "url": "https://github.com/justinwoo/easy-dhall-nix/archive/735ad924fd829c9bbee0a167e0b2bbbf91e2cad5.tar.gz", "url_template": "https://github.com///archive/.tar.gz" }, + "naersk": { + "branch": "master", + "description": "Build rust crates in Nix. No configuration, no code generation, no IFD. Sandbox friendly.", + "homepage": "", + "owner": "nmattia", + "repo": "naersk", + "rev": "d5a23213d561893cebdf0d251502430334673036", + "sha256": "0ifvqv3vjg80hhgxr7b22i22gh2gxw0gm5iijd9r7y4qd7n2yrcp", + "type": "tarball", + "url": "https://github.com/nmattia/naersk/archive/d5a23213d561893cebdf0d251502430334673036.tar.gz", + "url_template": "https://github.com///archive/.tar.gz" + }, "niv": { "branch": "master", "description": "Easy dependency management for Nix projects", 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!"); +}