diff options
| -rwxr-xr-x | Cargo.lock | 4 | ||||
| -rw-r--r-- | Cargo.toml | 1 | ||||
| -rw-r--r-- | azalea/Cargo.toml | 11 | ||||
| -rw-r--r-- | azalea/README.md | 1 | ||||
| -rw-r--r-- | azalea/src/lib.rs | 14 |
5 files changed, 31 insertions, 0 deletions
@@ -90,6 +90,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" [[package]] +name = "azalea" +version = "0.1.0" + +[[package]] name = "azalea-auth" version = "0.1.0" dependencies = [ @@ -1,6 +1,7 @@ [workspace] members = [ "bot", + "azalea", "azalea-client", "azalea-protocol", "azalea-chat", diff --git a/azalea/Cargo.toml b/azalea/Cargo.toml new file mode 100644 index 00000000..7f6aeb9f --- /dev/null +++ b/azalea/Cargo.toml @@ -0,0 +1,11 @@ +[package] +description = "Advertisement crate for Azalea." +edition = "2021" +license = "MIT" + +name = "azalea" +version = "0.1.0" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/azalea/README.md b/azalea/README.md new file mode 100644 index 00000000..fa77cd12 --- /dev/null +++ b/azalea/README.md @@ -0,0 +1 @@ +This is currently an advertisement crate for [Azalea](https://github.com/mat-1/azalea), it will have more stuff later! diff --git a/azalea/src/lib.rs b/azalea/src/lib.rs new file mode 100644 index 00000000..7d12d9af --- /dev/null +++ b/azalea/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); + } +} |
