From fbe2bfcbb251f6798a967871ec3a75d2daf38c10 Mon Sep 17 00:00:00 2001 From: Edouard Paris Date: Tue, 15 Oct 2019 13:15:57 +0200 Subject: [PATCH] cargo init --- .gitignore | 9 +++++++++ Cargo.toml | 17 +++++++++++++++++ src/lib.rs | 7 +++++++ 3 files changed, 33 insertions(+) create mode 100644 Cargo.toml create mode 100644 src/lib.rs diff --git a/.gitignore b/.gitignore index 088ba6b..b5ef7c9 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,12 @@ Cargo.lock # These are backup files generated by rustfmt **/*.rs.bk + + +#Added by cargo +# +#already existing elements are commented out + +/target +#**/*.rs.bk +#Cargo.lock diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..1c732b1 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,17 @@ +[package] +name = "lnurl" +version = "0.1.0" +authors = ["Edouard Paris "] +description = "Helpers for lnurl" +readme = "README.md" +edition = "2018" +license = "MIT" +repository = "https://github.com/edouardparis/rust-lnurl.git" +documentation = "https://docs.rs/lnurl/" + +[lib] +name = "lnurl" + +[dependencies] +serde = { version = "1.0.93", features =["derive"]} +serde_json = "1.0.39" diff --git a/src/lib.rs b/src/lib.rs new file mode 100644 index 0000000..31e1bb2 --- /dev/null +++ b/src/lib.rs @@ -0,0 +1,7 @@ +#[cfg(test)] +mod tests { + #[test] + fn it_works() { + assert_eq!(2 + 2, 4); + } +}