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