From b1e39cdb75670ac3cb8cd79694fc78ba04bd149c Mon Sep 17 00:00:00 2001 From: Nathan Eikermann Date: Wed, 26 May 2021 18:06:47 +0200 Subject: [PATCH] added cargo files --- .gitignore | 13 +------------ Cargo.toml | 14 ++++++++++++++ src/lib.rs | 7 +++++++ 3 files changed, 22 insertions(+), 12 deletions(-) create mode 100644 Cargo.toml create mode 100644 src/lib.rs diff --git a/.gitignore b/.gitignore index 8ffd9f4..96ef6c0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,13 +1,2 @@ -# ---> Rust -# Generated by Cargo -# will have compiled files and executables -debug/ -target/ - -# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries -# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html +/target Cargo.lock - -# These are backup files generated by rustfmt -**/*.rs.bk - diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..ef3db03 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,14 @@ +[package] +name = "md-util-rs" +version = "0.1.0" +authors = ["Nathan Eikermann "] +description = "A rust library providing various utilities. To be used via FFI" +edition = "2018" +#build = "build.rs" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] + +[lib] +crate-type = ["cdylib", "lib"] 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); + } +}