mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-06-01 09:42:41 +00:00
Initial valve setup and tf2 game setup
This commit is contained in:
parent
e2be20ee53
commit
8098136d09
10 changed files with 234 additions and 12 deletions
18
src/lib.rs
18
src/lib.rs
|
|
@ -1,14 +1,8 @@
|
|||
pub fn add(left: usize, right: usize) -> usize {
|
||||
left + right
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
mod errors;
|
||||
mod protocol;
|
||||
mod protocols;
|
||||
mod utils;
|
||||
pub mod games;
|
||||
|
||||
#[test]
|
||||
fn it_works() {
|
||||
let result = add(2, 2);
|
||||
assert_eq!(result, 4);
|
||||
}
|
||||
}
|
||||
pub use games::*;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue