nix-super/src/libutil/tarfile.cc

15 lines
276 B
C++
Raw Normal View History

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