Skip to content

Commit

Permalink
fix: benchmarks against release
Browse files Browse the repository at this point in the history
  • Loading branch information
CertainLach committed May 17, 2024
1 parent 456b9dd commit 4d059f9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 0 additions & 2 deletions crates/jrsonnet-stdlib/src/objects.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ pub fn builtin_object_values_ex(
o: ObjValue,

Check warning on line 57 in crates/jrsonnet-stdlib/src/objects.rs

View workflow job for this annotation

GitHub Actions / Formatting

Diff in /home/runner/work/jrsonnet/jrsonnet/crates/jrsonnet-stdlib/src/objects.rs
include_hidden: bool,

#[default(false)]
#[cfg(feature = "exp-preserve-order")]
preserve_order: bool,
) -> ArrValue {
Expand Down Expand Up @@ -102,7 +101,6 @@ pub fn builtin_object_keys_values_ex(
o: ObjValue,

Check warning on line 101 in crates/jrsonnet-stdlib/src/objects.rs

View workflow job for this annotation

GitHub Actions / Formatting

Diff in /home/runner/work/jrsonnet/jrsonnet/crates/jrsonnet-stdlib/src/objects.rs
include_hidden: bool,

#[default(false)]
#[cfg(feature = "exp-preserve-order")]
preserve_order: bool,
) -> ArrValue {
Expand Down
11 changes: 7 additions & 4 deletions nix/jrsonnet-release.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,21 @@
fetchFromGitHub,
rustPlatform,
makeWrapper,
# This derivation should only be used for benchmarks-against-release task
forBenchmarks ? true,
_unused ? forBenchmarks,
}:
rustPlatform.buildRustPackage rec {
pname = "jrsonnet";
version = "pre9";
version = "release";

src = fetchFromGitHub {
owner = "CertainLach";
repo = pname;
rev = "5dc3b98bcc3b9848031f17165bcc2e86e8a65ba3";
hash = "sha256-KM1yqsFzt7Vj4xiEzJJiuFaG49/utF80r9A2dSwCAjo=";
rev = "ad68a2495da324ce7a893992a6b32851849c64eb";
hash = "sha256-N2z0JcJG6iQ+eAE1GGF+c1+T7Pti8oCgx+QWdhT+33M=";
};
cargoHash = "sha256-y2YiktT1h263vpFaC+kRL8yaAWQThhEkS+NSQ6B6Ylk=";
cargoHash = "sha256-A/sdqI51kD7Tfo9R95ep2CecaSEzSz3suhZXdND6/nQ=";

cargoTestFlags = ["--package=jrsonnet --features=mimalloc,legacy-this-file"];
cargoBuildFlags = ["--package=jrsonnet --features=mimalloc,legacy-this-file"];
Expand Down

0 comments on commit 4d059f9

Please sign in to comment.