Skip to content
Snippets Groups Projects
  1. Dec 10, 2019
    • Eelco Dolstra's avatar
      Make the Store API more type-safe · bbe97dff
      Eelco Dolstra authored
      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).
      bbe97dff
    • Eelco Dolstra's avatar
      Use hyper directly instead of reqwest · 14aa0c32
      Eelco Dolstra authored
      14aa0c32
    • Eelco Dolstra's avatar
      Update to async/await-enabled tokio · a6f0bef0
      Eelco Dolstra authored
      a6f0bef0
    • Eelco Dolstra's avatar
      Add NAR parser · 7f089750
      Eelco Dolstra authored
      7f089750
    • Eelco Dolstra's avatar
      Add base32 encoder/decoder · cce218f9
      Eelco Dolstra authored
      cce218f9
    • Eelco Dolstra's avatar
      Drop some dependencies · ce3c41ae
      Eelco Dolstra authored
      ce3c41ae
    • Eelco Dolstra's avatar
      Use rustls · d832a355
      Eelco Dolstra authored
      In particular, this enables HTTP/2 support in reqwest, which is a lot
      more efficient.
      d832a355
    • Eelco Dolstra's avatar
  2. Dec 09, 2019
  3. Nov 26, 2019
Loading