lix/src/libutil/tarfile.cc

15 lines
276 B
C++
Raw Normal View History

2019-09-11 10:43:07 +00:00
#include "rust-ffi.hh"
2019-03-27 13:12:20 +00:00
extern "C" {
rust::CBox2<rust::Result<std::tuple<>>> unpack_tarfile(rust::Source source, rust::StringSlice dest_dir);
2019-03-27 13:12:20 +00:00
}
2019-09-11 11:10:46 +00:00
namespace nix {
void unpackTarfile(Source & source, Path destDir)
{
unpack_tarfile(source, destDir).use()->unwrap();
}
}