General & Crypto
This commit is contained in:
parent
0bbcab5727
commit
02f94993c7
27 changed files with 1881 additions and 47 deletions
|
|
@ -1,14 +1,12 @@
|
|||
pub fn add(left: u64, right: u64) -> u64 {
|
||||
left + right
|
||||
}
|
||||
pub mod client;
|
||||
pub mod connection;
|
||||
pub mod connection_handle;
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
pub use client::connect;
|
||||
pub use connection::{Policy, Receiver, SendMode, Sender};
|
||||
pub use connection_handle::ConnectionHandle;
|
||||
|
||||
#[test]
|
||||
fn it_works() {
|
||||
let result = add(2, 2);
|
||||
assert_eq!(result, 4);
|
||||
}
|
||||
}
|
||||
#[cfg(feature = "host")]
|
||||
pub mod host;
|
||||
#[cfg(feature = "host")]
|
||||
pub use host::{Host, host};
|
||||
|
|
|
|||
Loading…
Reference in a new issue