From 32fdb27d382b2e20c6fac324af9a254d8853b4ef Mon Sep 17 00:00:00 2001 From: ennucore Date: Fri, 12 Aug 2022 14:35:51 +0300 Subject: [PATCH] Create the cargo workspace, update README --- Cargo.toml | 7 ++++++- README.md | 6 ++++++ agolytics/Cargo.toml | 8 ++++++++ agolytics/src/lib.rs | 8 ++++++++ agorata_contracts/Cargo.toml | 8 ++++++++ agorata_contracts/src/lib.rs | 8 ++++++++ 6 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 agolytics/Cargo.toml create mode 100644 agolytics/src/lib.rs create mode 100644 agorata_contracts/Cargo.toml create mode 100644 agorata_contracts/src/lib.rs diff --git a/Cargo.toml b/Cargo.toml index 9fb70e4..ed7fb5f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,12 @@ name = "agorata" version = "0.1.0" edition = "2021" +authors = ["ennucore "] -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[workspace] + +members = [ + "agolytics", "agorata_contracts" +] [dependencies] diff --git a/README.md b/README.md index 16767d8..e3f3eac 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,9 @@ +![](https://agorata.io/logo_single.png) + # Agorata Core The Core of Agorata written in Rust + +`agorata_contracts/` contains the tools for representing smart contracts (as state machines). + +`agolytics/` contains the tools for analyzing smart contracts. diff --git a/agolytics/Cargo.toml b/agolytics/Cargo.toml new file mode 100644 index 0000000..c7eb0a5 --- /dev/null +++ b/agolytics/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "agolytics" +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/agolytics/src/lib.rs b/agolytics/src/lib.rs new file mode 100644 index 0000000..1b4a90c --- /dev/null +++ b/agolytics/src/lib.rs @@ -0,0 +1,8 @@ +#[cfg(test)] +mod tests { + #[test] + fn it_works() { + let result = 2 + 2; + assert_eq!(result, 4); + } +} diff --git a/agorata_contracts/Cargo.toml b/agorata_contracts/Cargo.toml new file mode 100644 index 0000000..4ede10c --- /dev/null +++ b/agorata_contracts/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "agorata_contracts" +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/agorata_contracts/src/lib.rs b/agorata_contracts/src/lib.rs new file mode 100644 index 0000000..1b4a90c --- /dev/null +++ b/agorata_contracts/src/lib.rs @@ -0,0 +1,8 @@ +#[cfg(test)] +mod tests { + #[test] + fn it_works() { + let result = 2 + 2; + assert_eq!(result, 4); + } +}