init new cargo project

This commit is contained in:
olivia 2018-04-26 21:41:19 +02:00
parent 5e89d1e888
commit 3ffefa32e1
3 changed files with 17 additions and 0 deletions

4
.gitignore vendored
View file

@ -1,2 +1,6 @@
*.swp
target/
/target/
**/*.rs.bk
Cargo.lock

6
Cargo.toml Normal file
View file

@ -0,0 +1,6 @@
[package]
name = "rustlings"
version = "0.1.0"
authors = ["olivia <olivia@fastmail.com>"]
[dependencies]

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