Skip to content

Commit a9ca0ef

Browse files
authored
[libra-dev] Setup crate (#2)
1 parent 16db884 commit a9ca0ef

File tree

4 files changed

+28
-0
lines changed

4 files changed

+28
-0
lines changed

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,9 @@
33

44
# cmake stuff
55
cmake-build-*
6+
7+
# Rust specific ignores
8+
# Please follow https://help.github.com/en/articles/ignoring-files to create a global
9+
# .gitignore file locally for IDE/Emacs/Vim generated files.
10+
**/target
11+
**/*.rs.bk

libra-dev/Cargo.lock

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

libra-dev/Cargo.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[package]
2+
name = "libra-dev"
3+
version = "0.1.0"
4+
authors = ["SunMi Lee <[email protected]>"]
5+
edition = "2018"
6+
7+
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
8+
9+
[dependencies]

libra-dev/src/lib.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#[cfg(test)]
2+
mod tests {
3+
#[test]
4+
fn it_works() {
5+
assert_eq!(2 + 2, 4);
6+
}
7+
}

0 commit comments

Comments
 (0)