aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xCargo.lock4
-rw-r--r--Cargo.toml1
-rw-r--r--azalea/Cargo.toml11
-rw-r--r--azalea/README.md1
-rw-r--r--azalea/src/lib.rs14
5 files changed, 31 insertions, 0 deletions
diff --git a/Cargo.lock b/Cargo.lock
index 1412664f..270d61f7 100755
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -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 = [
diff --git a/Cargo.toml b/Cargo.toml
index 0ba31604..8a984e81 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -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);
+ }
+}