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); + } +}