forked from continuwuation/continuwuity
- enabling the `http3` features requires unstable features, namely `reqwest_unstable` - the main suggestion of cargo is to enable this through RUSTFLAGS - we had no way to customize RUSTFLAGS, now we do - changed the max-perf package to showcase this feature - also turn on http3 by default in both max-perf and the default build (jade approved this)
34 lines
810 B
Nix
34 lines
810 B
Nix
{
|
|
self,
|
|
...
|
|
}:
|
|
{
|
|
perSystem =
|
|
{
|
|
self',
|
|
pkgs,
|
|
craneLib,
|
|
...
|
|
}:
|
|
{
|
|
packages = {
|
|
rocksdb = pkgs.callPackage ./rocksdb.nix { };
|
|
default = pkgs.callPackage ./continuwuity.nix {
|
|
inherit self craneLib;
|
|
# extra features via `cargoExtraArgs`
|
|
cargoExtraArgs = "-F http3";
|
|
# extra RUSTFLAGS via `rustflags`
|
|
# the stuff below is required for http3
|
|
rustflags = "--cfg reqwest_unstable";
|
|
};
|
|
# users may also override this with other cargo profiles to build for other feature sets
|
|
#
|
|
# other examples include:
|
|
#
|
|
# - release-high-perf
|
|
max-perf = self'.packages.default.override {
|
|
profile = "release-max-perf";
|
|
};
|
|
};
|
|
};
|
|
}
|