lix/nix-rust/src/lib.rs

11 lines
208 B
Rust
Raw Normal View History

2019-09-10 19:55:32 +00:00
mod error;
mod foreign;
mod tarfile;
2019-03-27 13:12:20 +00:00
2019-09-10 19:55:32 +00:00
pub use error::Error;
2019-03-27 13:12:20 +00:00
#[no_mangle]
2019-09-10 19:55:32 +00:00
pub extern "C" fn unpack_tarfile(source: foreign::Source, dest_dir: &str) {
tarfile::unpack_tarfile(source, dest_dir).unwrap();
2019-03-27 13:12:20 +00:00
}