kache 0.4.1

Zero-copy, content-addressed Rust build cache. No copies, no wasted disk — just hardlinks locally and S3 for sharing.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <iostream>
#include <vector>
#include "bar.hpp"

template <typename T>
T sum_all(const std::vector<T>& xs) {
    T total{};
    for (const auto& x : xs) total += x;
    return total;
}

int main() {
    std::vector<int> xs{1, 2, 3, 4, 5};
    std::cout << "foo: " << bar::greeting() << " sum=" << sum_all(xs) << "\n";
    return 0;
}