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