diff --git a/.gitignore b/.gitignore index 088ba6b..579ce9a 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,6 @@ Cargo.lock # These are backup files generated by rustfmt **/*.rs.bk + +# Others +.idea/ diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..20c411e --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,14 @@ +[package] +name = "rust-gamedig" +version = "0.1.0" +edition = "2021" +authors = ["CosminPerRam [cosmin.p@live.com]", "mmorrisontx [https://github.com/mmorrisontx]"] +license-file = "LICENSE.md" +description = "Check out servers with this." +homepage = "https://github.com/CosminPerRam/rust-gamedig" +documentation = "https://github.com/CosminPerRam/rust-gamedig" +repository = "https://github.com/CosminPerRam/rust-gamedig" +readme = "README.md" +keywords = ["server", "valve", "games", "pinger", "checker", "status"] + +[dependencies] diff --git a/LICENSE b/LICENSE.md similarity index 100% rename from LICENSE rename to LICENSE.md diff --git a/src/lib.rs b/src/lib.rs new file mode 100644 index 0000000..7d12d9a --- /dev/null +++ b/src/lib.rs @@ -0,0 +1,14 @@ +pub fn add(left: usize, right: usize) -> usize { + left + right +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn it_works() { + let result = add(2, 2); + assert_eq!(result, 4); + } +}