From 9eb62ef67c29ee251d1927c693ff8560752c2da9 Mon Sep 17 00:00:00 2001 From: Jia Chao Date: Mon, 29 Apr 2024 10:20:10 +0800 Subject: [PATCH] cargo init --lib Signed-off-by: Jia Chao --- .gitignore | 5 +++++ Cargo.toml | 13 +++++++++++++ src/lib.rs | 14 ++++++++++++++ 3 files changed, 32 insertions(+) create mode 100644 Cargo.toml create mode 100644 src/lib.rs diff --git a/.gitignore b/.gitignore index 3ca43ae..193d30e 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,8 @@ Cargo.lock # MSVC Windows builds of rustc generate these, which store debugging information *.pdb + + +# Added by cargo + +/target diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..ee9a9a2 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,13 @@ +[package] +name = "cve-xmlparser" +version = "0.1.0" +edition = "2021" +authors = ["Jia Chao usize { + left + right +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn it_works() { + let result = add(2, 2); + assert_eq!(result, 4); + } +}