mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-05-06 07:17:27 +00:00
Initial cargo file
This commit is contained in:
parent
b890c59392
commit
f0844319ea
4 changed files with 31 additions and 0 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -8,3 +8,6 @@ Cargo.lock
|
|||
|
||||
# These are backup files generated by rustfmt
|
||||
**/*.rs.bk
|
||||
|
||||
# Others
|
||||
.idea/
|
||||
|
|
|
|||
14
Cargo.toml
Normal file
14
Cargo.toml
Normal file
|
|
@ -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]
|
||||
14
src/lib.rs
Normal file
14
src/lib.rs
Normal file
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue