Main project structure

This commit is contained in:
danielsanchezq 2022-09-21 16:06:27 +02:00
commit 0de795496b
9 changed files with 64 additions and 0 deletions

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
/target
/Cargo.lock
/.idea

11
Cargo.lock generated Normal file
View File

@ -0,0 +1,11 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 3
[[package]]
name = "waku"
version = "0.1.0"
[[package]]
name = "waku-sys"
version = "0.1.0"

6
Cargo.toml Normal file
View File

@ -0,0 +1,6 @@
[workspace]
members = [
"waku",
"waku-sys"
]

0
README.md Normal file
View File

7
waku-sys/Cargo.toml Normal file
View File

@ -0,0 +1,7 @@
[package]
name = "waku-sys"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]

1
waku-sys/build.rs Normal file
View File

@ -0,0 +1 @@
fn main() {}

14
waku-sys/src/lib.rs Normal file
View 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);
}
}

8
waku/Cargo.toml Normal file
View File

@ -0,0 +1,8 @@
[package]
name = "waku"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]

14
waku/src/lib.rs Normal file
View 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);
}
}