Browse Source

Create rust lib

master
NGnius 3 years ago
parent
commit
ec2aec0267
3 changed files with 22 additions and 0 deletions
  1. +6
    -0
      .gitignore
  2. +9
    -0
      Cargo.toml
  3. +7
    -0
      src/lib.rs

+ 6
- 0
.gitignore View File

@@ -12,3 +12,9 @@
# Output of the go coverage tool, specifically when used with LiteIDE
*.out



#Added by cargo

/target
Cargo.lock

+ 9
- 0
Cargo.toml View File

@@ -0,0 +1,9 @@
[package]
name = "gcmm"
version = "0.1.0"
authors = ["NGnius <ngniusness@gmail.com>"]
edition = "2018"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]

+ 7
- 0
src/lib.rs View File

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