Skip to main content

wcp_core/
lib.rs

1#![warn(missing_docs)]
2
3//! Core library for the White Cat Protocol (WCP).
4//! 
5//! WCP is a protocol designed with a strong emphasis on:
6//! 
7//! *   **Privacy**
8//! *   **Security**
9//! *   **Anonymity**
10//! 
11//! This crate provides the foundational building blocks for applications using WCP.
12
13/// Adds two numbers.
14///
15/// # Examples
16///
17/// ```
18/// let result = wcp_core::add(2, 2);
19/// assert_eq!(result, 4);
20/// ```
21
22pub fn add(left: usize, right: usize) -> usize {
23    left + right
24}
25
26#[cfg(test)]
27mod tests {
28    use super::*;
29
30    #[test]
31    fn it_works() {
32        let result = add(2, 2);
33        assert_eq!(result, 4);
34    }
35}