From 3ca39955ea590834053df44f24134134fae9982d Mon Sep 17 00:00:00 2001 From: Jack Grigg Date: Mon, 6 May 2019 09:46:00 -0400 Subject: [PATCH] Initial Rust library --- .gitignore | 4 ++++ Cargo.lock | 6 ++++++ Cargo.toml | 10 ++++++++++ rust/src/lib.rs | 7 +++++++ 4 files changed, 27 insertions(+) create mode 100644 .gitignore create mode 100644 Cargo.lock create mode 100644 Cargo.toml create mode 100644 rust/src/lib.rs diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..4cd77c54 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +.*.swp + +/target +**/*.rs.bk diff --git a/Cargo.lock b/Cargo.lock new file mode 100644 index 00000000..6d0e96a6 --- /dev/null +++ b/Cargo.lock @@ -0,0 +1,6 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +[[package]] +name = "libzcashlc" +version = "0.0.1" + diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 00000000..cfa786ff --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,10 @@ +[package] +name = "libzcashlc" +version = "0.0.1" +authors = ["Jack Grigg "] +edition = "2018" + +[lib] +name = "zcashlc" +path = "rust/src/lib.rs" +crate-type = ["staticlib"] diff --git a/rust/src/lib.rs b/rust/src/lib.rs new file mode 100644 index 00000000..31e1bb20 --- /dev/null +++ b/rust/src/lib.rs @@ -0,0 +1,7 @@ +#[cfg(test)] +mod tests { + #[test] + fn it_works() { + assert_eq!(2 + 2, 4); + } +}