Commit graph

10 commits

Author SHA1 Message Date
eba82b7c88
further clean up libarchive code 2019-12-09 17:21:46 +07:00
28ee687adf Clean up libarchive support 2019-12-07 18:12:21 +00:00
fe7ec70e6b
remove rust unpack_tarfile ffi 2019-12-07 23:28:31 +07:00
1355554d12
code 'cleanup' 2019-12-07 23:23:11 +07:00
f54c168031
add wrapper function around libarchive to c++ errors 2019-12-07 23:10:27 +07:00
232b390766
fixup! libarchive proof of concept 2019-12-07 23:00:37 +07:00
9ff5f6492f
libarchive proof of concept 2019-12-07 22:35:14 +07:00
Eelco Dolstra
949dc84894 Fix segfault on i686-linux
https://hydra.nixos.org/build/107467517

Seems that on i686-linux, gcc and rustc disagree on how to return
1-word structs: gcc has the caller pass a pointer to the result, while
rustc has the callee return the result in a register. Work around this
by using a bare pointer.
2019-11-27 14:17:15 +01:00
Eelco Dolstra
8918bae098 Drop remaining uses of external "tar"
Also, fetchGit now runs in O(1) memory since we pipe the output of
'git archive' directly into unpackTarball() (rather than first reading
it all into memory).
2019-11-26 22:07:28 +01:00
Eelco Dolstra
d33dd6e6c0 Move code around 2019-11-26 22:07:28 +01:00
Renamed from src/libstore/rust.hh (Browse further)