added cargo files

This commit is contained in:
Nathan Eikermann 2021-05-26 18:06:47 +02:00
parent 61f908b408
commit b1e39cdb75
3 changed files with 22 additions and 12 deletions

13
.gitignore vendored
View File

@ -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

14
Cargo.toml Normal file
View File

@ -0,0 +1,14 @@
[package]
name = "md-util-rs"
version = "0.1.0"
authors = ["Nathan Eikermann <tensazangetsu1990@googlemail.com>"]
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"]

7
src/lib.rs Normal file
View File

@ -0,0 +1,7 @@
#[cfg(test)]
mod tests {
#[test]
fn it_works() {
assert_eq!(2 + 2, 4);
}
}