Age | Commit message (Collapse) | Author | |
---|---|---|---|
2020-12-03 | Remove 'dist' target | Eelco Dolstra | |
We're not producing source tarballs anymore so this has been bitrotting. | |||
2020-10-08 | rust: small patches | Horki | |
2020-05-08 | make check: Run unit tests | Eelco Dolstra | |
2020-02-10 | Remove macro_use | Leonhard Markert | |
As of Rust 2018, macro_use is no longer required in most circumstances. I think it is generally a good idea to remove these when not needed, to stop them from polluting the crate's global namespace. https://doc.rust-lang.org/edition-guide/rust-2018/macros/macro-changes.html#macro_rules-style-macros | |||
2019-12-19 | Merge branch 'libarchive' of https://github.com/yorickvP/nix | Eelco Dolstra | |
2019-12-16 | StorePath::new(): Check store directory | Eelco Dolstra | |
2019-12-15 | Fix cargo test | Eelco Dolstra | |
2019-12-13 | Don't leak exceptions | Eelco Dolstra | |
2019-12-13 | Get rid of CBox | Eelco Dolstra | |
2019-12-13 | Validate tarball components | Eelco Dolstra | |
2019-12-10 | Speed up StorePath::to_string() | Eelco Dolstra | |
1.81% -> 0.56% | |||
2019-12-10 | Speed up base32::decode() | Eelco Dolstra | |
From 1.03% to 0.19% of the runtime of 'nix-instantiate "<nixpkgs>" -A texlive.combined.scheme-full --dry-run'. | |||
2019-12-10 | Make the Store API more type-safe | Eelco Dolstra | |
Most functions now take a StorePath argument rather than a Path (which is just an alias for std::string). The StorePath constructor ensures that the path is syntactically correct (i.e. it looks like <store-dir>/<base32-hash>-<name>). Similarly, functions like buildPaths() now take a StorePathWithOutputs, rather than abusing Path by adding a '!<outputs>' suffix. Note that the StorePath type is implemented in Rust. This involves some hackery to allow Rust values to be used directly in C++, via a helper type whose destructor calls the Rust type's drop() function. The main issue is the dynamic nature of C++ move semantics: after we have moved a Rust value, we should not call the drop function on the original value. So when we move a value, we set the original value to bitwise zero, and the destructor only calls drop() if the value is not bitwise zero. This should be sufficient for most types. Also lots of minor cleanups to the C++ API to make it more modern (e.g. using std::optional and std::string_view in some places). | |||
2019-12-10 | Add StorePath tests | Eelco Dolstra | |
2019-12-10 | Shut up warnings | Eelco Dolstra | |
2019-12-10 | Use hyper directly instead of reqwest | Eelco Dolstra | |
2019-12-10 | Update to async/await-enabled tokio | Eelco Dolstra | |
2019-12-10 | Add NAR parser | Eelco Dolstra | |
2019-12-10 | StorePath improvements | Eelco Dolstra | |
2019-12-10 | Add base32 encoder/decoder | Eelco Dolstra | |
2019-12-10 | Move stuff around | Eelco Dolstra | |
2019-12-10 | Drop some dependencies | Eelco Dolstra | |
2019-12-10 | Use rustls | Eelco Dolstra | |
In particular, this enables HTTP/2 support in reqwest, which is a lot more efficient. | |||
2019-12-10 | Basic BinaryCacheStore implementation using async Rust | Eelco Dolstra | |
2019-12-09 | nix-rust: remove unused tar file code | Yorick van Pelt | |
2019-11-29 | Make libnixrust a dynamic library | Eelco Dolstra | |
This is a hack to fix the build on macOS, which was failing because libnixrust.a contains compiler builtins that clash with libclang_rt.osx.a. There's probably a better solution... https://hydra.nixos.org/build/107473280 | |||
2019-11-27 | make clean: Delete nix-rust/target | Eelco Dolstra | |
2019-11-27 | When OPTIMIZE=0, build rust code in debug mode | Eelco Dolstra | |
2019-11-27 | Fix macOS build | Eelco Dolstra | |
https://hydra.nixos.org/build/107466992 | |||
2019-11-26 | Update Cargo.lock | Eelco Dolstra | |
2019-11-26 | -Z offline -> --offline | Eelco Dolstra | |
2019-11-26 | Ignore tar header entries | Eelco Dolstra | |
In particular, these are emitted by 'git archive' (in fetchGit). | |||
2019-11-26 | Move code around | Eelco Dolstra | |
2019-11-26 | Shut up some rust warnings | Eelco Dolstra | |
2019-11-26 | More Rust FFI adventures | Eelco Dolstra | |
We can now convert Rust Errors to C++ exceptions. At the Rust->C++ FFI boundary, Result<T, Error> will cause Error to be converted to and thrown as a C++ exception. | |||
2019-11-26 | Rust cleanup | Eelco Dolstra | |
2019-11-26 | Only pass '-Z offline' to cargo if we have a vendor directory | Eelco Dolstra | |
2019-11-26 | Include cargo dependencies in the Nix tarball | Eelco Dolstra | |
2019-11-26 | Update Rust dependencies | Eelco Dolstra | |
2019-11-26 | Make <nix/unpack-channel.nix> a builtin builder | Eelco Dolstra | |
This was the last function using a shell script, so this allows us to get rid of tar, coreutils, bash etc. | |||
2019-11-26 | Enable Rust code to call C++ Source objects | Eelco Dolstra | |
2019-11-26 | Add some Rust code | Eelco Dolstra | |