Coverage Report

Created: 2025-11-15 06:52

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/zip/src/unstable.rs
Line
Count
Source
1
/// Provides high level API for reading from a stream.
2
pub mod stream {
3
    pub use crate::read::stream::*;
4
}
5
/// Types for creating ZIP archives.
6
pub mod write {
7
    use crate::write::FileOptions;
8
    /// Unstable methods for [`FileOptions`].
9
    pub trait FileOptionsExt {
10
        /// Write the file with the given password using the deprecated ZipCrypto algorithm.
11
        /// 
12
        /// This is not recommended for new archives, as ZipCrypto is not secure.
13
        fn with_deprecated_encryption(self, password: &[u8]) -> Self;
14
    }
15
    impl FileOptionsExt for FileOptions {
16
0
        fn with_deprecated_encryption(self, password: &[u8]) -> Self {
17
0
            self.with_deprecated_encryption(password)
18
0
        }
19
    }
20
}