From 0085f8a565563ecb6a9f4f87be8b336157aa1e55 Mon Sep 17 00:00:00 2001 From: mat Date: Tue, 30 Aug 2022 21:42:40 -0500 Subject: [PATCH] make some stuff publishable on crates.io --- Cargo.lock | 20 +++++++++---------- azalea-auth/Cargo.toml | 6 ++++-- azalea-auth/README.md | 3 +++ azalea-block/Cargo.toml | 4 +++- .../Cargo.toml | 4 +++- .../src/lib.rs | 0 .../src/utils.rs | 0 azalea-block/src/blocks.rs | 2 +- azalea-buf/Cargo.toml | 4 +++- azalea-chat/Cargo.toml | 8 +++++--- azalea-core/Cargo.toml | 8 +++++--- azalea-language/Cargo.toml | 2 ++ azalea-nbt/Cargo.toml | 10 ++++++---- 13 files changed, 45 insertions(+), 26 deletions(-) create mode 100644 azalea-auth/README.md rename azalea-block/{block-macros => azalea-block-macros}/Cargo.toml (71%) rename azalea-block/{block-macros => azalea-block-macros}/src/lib.rs (100%) rename azalea-block/{block-macros => azalea-block-macros}/src/utils.rs (100%) diff --git a/Cargo.lock b/Cargo.lock index 128056ce..97f5d086 100755 --- a/Cargo.lock +++ b/Cargo.lock @@ -101,7 +101,16 @@ dependencies = [ name = "azalea-block" version = "0.1.0" dependencies = [ - "block-macros", + "azalea-block-macros", +] + +[[package]] +name = "azalea-block-macros" +version = "0.1.0" +dependencies = [ + "proc-macro2", + "quote", + "syn", ] [[package]] @@ -277,15 +286,6 @@ dependencies = [ "generic-array", ] -[[package]] -name = "block-macros" -version = "0.1.0" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - [[package]] name = "bot" version = "0.1.0" diff --git a/azalea-auth/Cargo.toml b/azalea-auth/Cargo.toml index 1bef8c57..2f817354 100755 --- a/azalea-auth/Cargo.toml +++ b/azalea-auth/Cargo.toml @@ -1,10 +1,12 @@ [package] +description = "A port of Mojang's Authlib, except authentication isn't actually implemented yet." edition = "2021" +license = "MIT" name = "azalea-auth" version = "0.1.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -azalea-buf = {path = "../azalea-buf"} -uuid = "1.1.2" +azalea-buf = {path = "../azalea-buf", version = "^0.1.0"} +uuid = "^1.1.2" diff --git a/azalea-auth/README.md b/azalea-auth/README.md new file mode 100644 index 00000000..fa87afca --- /dev/null +++ b/azalea-auth/README.md @@ -0,0 +1,3 @@ +# Azalea Auth + +A port of Mojang's Authlib, except authentication isn't actually implemented yet. diff --git a/azalea-block/Cargo.toml b/azalea-block/Cargo.toml index edeba385..e23eea4d 100644 --- a/azalea-block/Cargo.toml +++ b/azalea-block/Cargo.toml @@ -1,5 +1,7 @@ [package] +description = "Representation of Minecraft block states." edition = "2021" +license = "MIT" name = "azalea-block" version = "0.1.0" @@ -8,4 +10,4 @@ version = "0.1.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -block-macros = {path = "./block-macros"} +azalea-block-macros = {path = "./azalea-block-macros", version = "^0.1.0"} diff --git a/azalea-block/block-macros/Cargo.toml b/azalea-block/azalea-block-macros/Cargo.toml similarity index 71% rename from azalea-block/block-macros/Cargo.toml rename to azalea-block/azalea-block-macros/Cargo.toml index 03b19e1d..ecac98d2 100644 --- a/azalea-block/block-macros/Cargo.toml +++ b/azalea-block/azalea-block-macros/Cargo.toml @@ -1,6 +1,8 @@ [package] +description = "Proc macros used by azalea-block." edition = "2021" -name = "block-macros" +license = "MIT" +name = "azalea-block-macros" version = "0.1.0" [lib] diff --git a/azalea-block/block-macros/src/lib.rs b/azalea-block/azalea-block-macros/src/lib.rs similarity index 100% rename from azalea-block/block-macros/src/lib.rs rename to azalea-block/azalea-block-macros/src/lib.rs diff --git a/azalea-block/block-macros/src/utils.rs b/azalea-block/azalea-block-macros/src/utils.rs similarity index 100% rename from azalea-block/block-macros/src/utils.rs rename to azalea-block/azalea-block-macros/src/utils.rs diff --git a/azalea-block/src/blocks.rs b/azalea-block/src/blocks.rs index 05973797..f9130f30 100644 --- a/azalea-block/src/blocks.rs +++ b/azalea-block/src/blocks.rs @@ -1,5 +1,5 @@ use crate::BlockBehavior; -use block_macros::make_block_states; +use azalea_block_macros::make_block_states; pub trait Block { fn behavior(&self) -> BlockBehavior; diff --git a/azalea-buf/Cargo.toml b/azalea-buf/Cargo.toml index 51b9c2fe..6f21e697 100644 --- a/azalea-buf/Cargo.toml +++ b/azalea-buf/Cargo.toml @@ -1,12 +1,14 @@ [package] +description = "Serialize and deserialize buffers from Minecraft." edition = "2021" +license = "MIT" name = "azalea-buf" version = "0.1.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -azalea-buf-macros = {path = "./azalea-buf-macros", version = "0.1.0"} +azalea-buf-macros = {path = "./azalea-buf-macros", version = "^0.1.0"} byteorder = "^1.4.3" serde_json = {version = "^1.0", optional = true} thiserror = "^1.0.31" diff --git a/azalea-chat/Cargo.toml b/azalea-chat/Cargo.toml index 2da86829..9894b49d 100755 --- a/azalea-chat/Cargo.toml +++ b/azalea-chat/Cargo.toml @@ -1,13 +1,15 @@ [package] +description = "Parse Minecraft chat messages." edition = "2021" +license = "MIT" name = "azalea-chat" version = "0.1.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -azalea-buf = {path = "../azalea-buf", features = ["serde_json"]} -azalea-language = {path = "../azalea-language"} -lazy_static = "1.4.0" +azalea-buf = {path = "../azalea-buf", features = ["serde_json"], version = "^0.1.0"} +azalea-language = {path = "../azalea-language", version = "^0.1.0"} +lazy_static = "^1.4.0" serde = "^1.0.130" serde_json = "^1.0.72" diff --git a/azalea-core/Cargo.toml b/azalea-core/Cargo.toml index 470bc998..52669af5 100755 --- a/azalea-core/Cargo.toml +++ b/azalea-core/Cargo.toml @@ -1,12 +1,14 @@ [package] +description = "Miscellaneous things in Azalea." edition = "2021" +license = "MIT" name = "azalea-core" version = "0.1.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -azalea-buf = {path = "../azalea-buf"} -azalea-chat = {path = "../azalea-chat"} -azalea-nbt = {path = "../azalea-nbt"} +azalea-buf = {path = "../azalea-buf", version = "^0.1.0"} +azalea-chat = {path = "../azalea-chat", version = "^0.1.0"} +azalea-nbt = {path = "../azalea-nbt", version = "^0.1.0"} uuid = "^1.1.2" diff --git a/azalea-language/Cargo.toml b/azalea-language/Cargo.toml index dea9aa27..ac190311 100644 --- a/azalea-language/Cargo.toml +++ b/azalea-language/Cargo.toml @@ -1,5 +1,7 @@ [package] +description = "Translate Minecraft strings from their id." edition = "2021" +license = "MIT" name = "azalea-language" version = "0.1.0" diff --git a/azalea-nbt/Cargo.toml b/azalea-nbt/Cargo.toml index 4a03880c..2179c11d 100755 --- a/azalea-nbt/Cargo.toml +++ b/azalea-nbt/Cargo.toml @@ -1,15 +1,17 @@ [package] +description = "A fast NBT serializer and deserializer." edition = "2021" +license = "MIT" name = "azalea-nbt" version = "0.1.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -ahash = "0.8.0" -azalea-buf = {path = "../azalea-buf"} -byteorder = "1.4.3" -flate2 = "1.0.23" +ahash = "^0.8.0" +azalea-buf = {path = "../azalea-buf", version = "^0.1.0"} +byteorder = "^1.4.3" +flate2 = "^1.0.23" num-derive = "^0.3.3" num-traits = "^0.2.14"