commit b84f46ed57edd5740819e943b90c7abbb70e7d3a Author: Felipe Diniello Date: Fri May 19 17:32:34 2023 +0200 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a9d37c5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +target +Cargo.lock diff --git a/README.md b/README.md new file mode 100644 index 0000000..620ca84 --- /dev/null +++ b/README.md @@ -0,0 +1,8 @@ +# KairoXYZ + +Basic structure created: + +* xyz-engine: triangulation service consumes MQTT data, process and republish +* kairo-core: handles DB models, storing mqtt processed data and Front-End interaction +* kairo-nav: front-end application +* kairo-common: shared source between services diff --git a/kairo-common/Cargo.toml b/kairo-common/Cargo.toml new file mode 100644 index 0000000..c3be4f2 --- /dev/null +++ b/kairo-common/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "kairo-common" +version = "0.1.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/kairo-common/src/lib.rs b/kairo-common/src/lib.rs new file mode 100644 index 0000000..7d12d9a --- /dev/null +++ b/kairo-common/src/lib.rs @@ -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); + } +} diff --git a/kairo-core/Cargo.toml b/kairo-core/Cargo.toml new file mode 100644 index 0000000..c7449b1 --- /dev/null +++ b/kairo-core/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "kairo-core" +version = "0.1.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/kairo-core/src/main.rs b/kairo-core/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/kairo-core/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +} diff --git a/kairo-nav/Cargo.toml b/kairo-nav/Cargo.toml new file mode 100644 index 0000000..0709a06 --- /dev/null +++ b/kairo-nav/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "kairo-nav" +version = "0.1.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/kairo-nav/src/main.rs b/kairo-nav/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/kairo-nav/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +} diff --git a/xyz-engine/Cargo.toml b/xyz-engine/Cargo.toml new file mode 100644 index 0000000..b46f514 --- /dev/null +++ b/xyz-engine/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "xyz-engine" +version = "0.1.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/xyz-engine/src/main.rs b/xyz-engine/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/xyz-engine/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +}