Skip to content

Commit

Permalink
Update to use deku-perf
Browse files Browse the repository at this point in the history
  • Loading branch information
wcampbell0x2a committed Feb 11, 2024
1 parent b8d4e82 commit ca8f7b1
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
22 changes: 11 additions & 11 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion backhand/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ readme = "../README.md"

[dependencies]
tracing = { version = "0.1.40", features = ["release_max_level_off"] }
deku = { git = "https://github.com/sharksforarms/deku", branch = "impl-writer" }
deku = { git = "https://github.com/sharksforarms/deku", branch = "impl-writer-inline-read-bytes" }
thiserror = "1.0.56"
flate2 = { version = "1.0.28", optional = true }
zune-inflate = { version = "0.2.54", optional = true, default-features = false, features = ["zlib"] }
Expand Down
2 changes: 1 addition & 1 deletion backhand/src/compressor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use crate::filesystem::writer::{CompressionExtra, FilesystemCompressor};

#[derive(Copy, Clone, Debug, PartialEq, Eq, DekuRead, DekuWrite, Default)]
#[deku(endian = "endian", ctx = "endian: deku::ctx::Endian")]
#[deku(type = "u16")]
#[deku(id_type = "u16")]
#[rustfmt::skip]
pub enum Compressor {
None = 0,
Expand Down
2 changes: 1 addition & 1 deletion backhand/src/inode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ impl Inode {
}

#[derive(Debug, DekuRead, DekuWrite, Clone, Copy, PartialEq, Eq)]
#[deku(type = "u16")]
#[deku(id_type = "u16")]
#[deku(endian = "endian", ctx = "endian: deku::ctx::Endian")]
#[rustfmt::skip]
pub enum InodeId {
Expand Down
2 changes: 1 addition & 1 deletion backhand/src/metadata.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use std::collections::VecDeque;
use std::io::{self, Cursor, Read, Seek, Write};
use std::io::{self, Read, Seek, Write};

use deku::prelude::*;
use tracing::trace;
Expand Down

0 comments on commit ca8f7b1

Please sign in to comment.