1
2
Fork 0
mirror of https://github.com/mat-1/azalea.git synced 2025-08-02 06:16:04 +00:00
This commit is contained in:
mat 2021-12-15 23:10:55 -06:00
parent 72aefe871c
commit 9642558f8f
40 changed files with 67 additions and 63 deletions

84
Cargo.lock generated
View file

@ -30,6 +30,46 @@ version = "1.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a"
[[package]]
name = "azalea-chat"
version = "0.1.0"
dependencies = [
"lazy_static",
"serde",
"serde_json",
]
[[package]]
name = "azalea-client"
version = "0.1.0"
dependencies = [
"azalea-protocol",
]
[[package]]
name = "azalea-core"
version = "0.1.0"
dependencies = [
"uuid",
]
[[package]]
name = "azalea-protocol"
version = "0.1.0"
dependencies = [
"async-recursion",
"async-trait",
"azalea-chat",
"byteorder",
"bytes",
"serde",
"serde_json",
"thiserror",
"tokio",
"tokio-util",
"trust-dns-resolver",
]
[[package]]
name = "bitflags"
version = "1.3.2"
@ -40,8 +80,8 @@ checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
name = "bot"
version = "0.1.0"
dependencies = [
"minecraft-client",
"minecraft-protocol",
"azalea-client",
"azalea-protocol",
"tokio",
]
@ -284,46 +324,6 @@ version = "2.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "308cc39be01b73d0d18f82a0e7b2a3df85245f84af96fdddc5d202d27e47b86a"
[[package]]
name = "minecraft-chat"
version = "0.1.0"
dependencies = [
"lazy_static",
"serde",
"serde_json",
]
[[package]]
name = "minecraft-client"
version = "0.1.0"
dependencies = [
"minecraft-protocol",
]
[[package]]
name = "minecraft-core"
version = "0.1.0"
dependencies = [
"uuid",
]
[[package]]
name = "minecraft-protocol"
version = "0.1.0"
dependencies = [
"async-recursion",
"async-trait",
"byteorder",
"bytes",
"minecraft-chat",
"serde",
"serde_json",
"thiserror",
"tokio",
"tokio-util",
"trust-dns-resolver",
]
[[package]]
name = "mio"
version = "0.7.14"

View file

@ -2,8 +2,8 @@
members = [
"bot",
"minecraft-client",
"minecraft-protocol",
"minecraft-chat",
"minecraft-core",
"azalea-client",
"azalea-protocol",
"azalea-chat",
"azalea-core",
]

View file

@ -1,2 +1,6 @@
# this library doesn't have a name yet idk what to call it
# Azalea
A Minecraft botting library
I named this Azalea because it sounds like a cool word and this is a cool library.

View file

@ -1,6 +1,6 @@
[package]
edition = "2021"
name = "minecraft-chat"
name = "azalea-chat"
version = "0.1.0"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View file

@ -1,4 +1,4 @@
use minecraft_chat::{
use azalea_chat::{
component::Component,
style::{Ansi, ChatFormatting, TextColor},
};

View file

@ -1,9 +1,9 @@
[package]
name = "minecraft-client"
version = "0.1.0"
edition = "2021"
name = "azalea-client"
version = "0.1.0"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
minecraft-protocol = { path = "../minecraft-protocol" }
azalea-protocol = {path = "../azalea-protocol"}

View file

@ -1,5 +1,5 @@
///! Connect to Minecraft servers.
use minecraft_protocol::{
use azalea_protocol::{
connect::HandshakeConnection,
packets::{
handshake::client_intention_packet::ClientIntentionPacket,

View file

@ -1,4 +1,4 @@
//! Significantly abstract minecraft-protocol so it's actually useable for bots.
//! Significantly abstract azalea-protocol so it's actually useable for bots.
pub mod connect;
pub mod ping;

View file

@ -1,5 +1,5 @@
///! Ping Minecraft servers.
use minecraft_protocol::{
use azalea_protocol::{
connect::HandshakeConnection,
packets::{
handshake::client_intention_packet::ClientIntentionPacket,

View file

@ -1,6 +1,6 @@
[package]
edition = "2021"
name = "minecraft-core"
name = "azalea-core"
version = "0.1.0"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View file

@ -1,6 +1,6 @@
[package]
edition = "2021"
name = "minecraft-protocol"
name = "azalea-protocol"
version = "0.1.0"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
@ -8,9 +8,9 @@ version = "0.1.0"
[dependencies]
async-recursion = "^0.3.2"
async-trait = "0.1.51"
azalea-chat = {path = "../azalea-chat"}
byteorder = "^1.4.3"
bytes = "^1.1.0"
minecraft-chat = {path = "../minecraft-chat"}
serde = {version = "1.0.130", features = ["serde_derive"]}
serde_json = "^1.0.72"
thiserror = "^1.0.30"

View file

@ -1,4 +1,4 @@
use minecraft_chat::component::Component;
use azalea_chat::component::Component;
use serde::Deserialize;
use serde_json::Value;
use tokio::io::BufReader;

View file

@ -1,11 +1,11 @@
[package]
edition = "2021"
name = "bot"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
minecraft-client = { path = "../minecraft-client" }
minecraft-protocol = { path = "../minecraft-protocol" }
azalea-client = {path = "../azalea-client"}
azalea-protocol = {path = "../azalea-protocol"}
tokio = "^1.14.0"

View file

@ -1,4 +1,4 @@
use minecraft_client::connect::join_server;
use azalea_client::connect::join_server;
use tokio::runtime::Runtime;
async fn bot() {