Skip to content

Commit

Permalink
feat: Export DecompressOutcome
Browse files Browse the repository at this point in the history
  • Loading branch information
fasterthanlime committed Dec 17, 2024
1 parent 83791d5 commit d05ceea
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rc-zip-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ license = false
eula = false

[[bin]]
name = "rc-zip"
name = "rc-zip-cli"
path = "src/main.rs"

[dependencies]
Expand Down
1 change: 1 addition & 0 deletions rc-zip/src/fsm/entry/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,7 @@ enum AnyDecompressor {
Zstd(zstd_dec::ZstdDec),
}

/// Outcome of [EntryFsm::process]
#[derive(Default, Debug)]
pub struct DecompressOutcome {
/// Number of bytes read from input
Expand Down
2 changes: 1 addition & 1 deletion rc-zip/src/fsm/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ mod archive;
pub use archive::ArchiveFsm;

mod entry;
pub use entry::EntryFsm;
pub use entry::{DecompressOutcome, EntryFsm};

/// Indicates whether or not the state machine has completed its work
pub enum FsmResult<M, R> {
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[toolchain]
channel = "1.81.0"
channel = "1.83.0"
components = ["llvm-tools", "clippy", "rust-src"]

0 comments on commit d05ceea

Please sign in to comment.