Skip to content

Commit a3a43f5

Browse files
committed
feat: begin working on compression
1 parent ac9a88c commit a3a43f5

File tree

4 files changed

+26
-4
lines changed

4 files changed

+26
-4
lines changed

Cargo.lock

Lines changed: 23 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ clap = { version = "4.5.20", features = ["derive", "env"] }
3232
color-eyre = "0.6.3"
3333
fastanvil = { git = "https://github.com/owengage/fastnbt.git" }
3434
fastnbt = { git = "https://github.com/owengage/fastnbt.git" }
35+
flate2 = { version = "1.0.35", default-features = false, features = ["zlib-ng"] }
3536
rand = "0.8.5"
3637
rayon = "1.10.0"
3738
serde = { version = "1.0.213", features = ["derive"] }

flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
cargoLock.outputHashes."fastnbt-2.5.0" = "E4WI6SZgkjqUOtbfXfKGfpFH7btEh5V0KpMXSIsuh08=";
8181
inherit buildType;
8282
dontStrip = buildType == "debug";
83-
buildInputs = with pkgs; [pkg-config openssl];
83+
buildInputs = with pkgs; [pkg-config openssl cmake];
8484
};
8585
in {
8686
default = mkCrawlspace "debug";

src/net/io.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ use tokio::{
3030
sync::{Mutex, RwLock},
3131
};
3232

33-
use crate::protocol::{self, ClientboundPacket, Frame, ServerboundPacket};
33+
use crate::protocol::{self, datatypes::VarInt, ClientboundPacket, Frame, ServerboundPacket};
3434

3535
#[derive(Debug)]
3636
pub struct NetIo {

0 commit comments

Comments
 (0)