From d05ceea10886e26f8b8475834e2b03185d33a5a1 Mon Sep 17 00:00:00 2001 From: Amos Wenger Date: Tue, 17 Dec 2024 20:52:34 +0100 Subject: [PATCH] feat: Export DecompressOutcome --- rc-zip-cli/Cargo.toml | 2 +- rc-zip/src/fsm/entry/mod.rs | 1 + rc-zip/src/fsm/mod.rs | 2 +- rust-toolchain.toml | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/rc-zip-cli/Cargo.toml b/rc-zip-cli/Cargo.toml index 05008fa..ef6945e 100644 --- a/rc-zip-cli/Cargo.toml +++ b/rc-zip-cli/Cargo.toml @@ -15,7 +15,7 @@ license = false eula = false [[bin]] -name = "rc-zip" +name = "rc-zip-cli" path = "src/main.rs" [dependencies] diff --git a/rc-zip/src/fsm/entry/mod.rs b/rc-zip/src/fsm/entry/mod.rs index 176e1c9..9aa0d4b 100644 --- a/rc-zip/src/fsm/entry/mod.rs +++ b/rc-zip/src/fsm/entry/mod.rs @@ -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 diff --git a/rc-zip/src/fsm/mod.rs b/rc-zip/src/fsm/mod.rs index d43c324..a85f025 100644 --- a/rc-zip/src/fsm/mod.rs +++ b/rc-zip/src/fsm/mod.rs @@ -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 { diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 41da0eb..ce7ad65 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,3 +1,3 @@ [toolchain] -channel = "1.81.0" +channel = "1.83.0" components = ["llvm-tools", "clippy", "rust-src"]