easy-archive 0.2.4

easy-archive
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/// TAR.BZ2 encoding implementation
use crate::{
    File,
    error::{ArchiveError, Result},
    traits::Encode,
};

use super::TarBz;

impl Encode for TarBz {
    fn encode(_files: Vec<File>) -> Result<Vec<u8>> {
        Err(ArchiveError::UnsupportedFormat(
            "TAR.BZ2 encoding is not supported (bzip2-rs lacks encoder)".to_string(),
        ))
    }
}