Skip to content

Instantly share code, notes, and snippets.

###############################################################################
# @generated
# This file is auto-generated by the cargo-bazel tool.
#
# DO NOT MODIFY: Local changes may be replaced in future executions.
###############################################################################
load(
"@bazel_skylib//lib:selects.bzl",
"selects",
// Here's a function that takes three inputs, aka arguments.
function myFunction(x, y, z) {
let a = x + y;
return a * z;
}
// Calling the function means that those values are "bound" to the variable names we chose when defining the function.
// This function call:
myFunction(1, 2, 3);
diff -r nix-build-crate-cranelift-codegen-0.51.0.drv-0/cranelift-codegen-0.51.0/target/.rustc_info.json nix-build-crate-cranelift-codegen-0.51.0.drv-1/cranelift-codegen-0.51.0/target/.rustc_info.json
1c1
< {"rustc_fingerprint":3465227111552607552,"outputs":{"7418947162089833526":["___\nlib___.rlib\nlib___.dylib\nlib___.dylib\nlib___.a\nlib___.dylib\n/nix/store/81x87ggxz16xd9h4bnwk070h1q9fzqps-rustc-1.43.0\ndebug_assertions\nproc_macro\ntarget_arch=\"x86_64\"\ntarget_endian=\"little\"\ntarget_env=\"\"\ntarget_family=\"unix\"\ntarget_feature=\"fxsr\"\ntarget_feature=\"sse\"\ntarget_feature=\"sse2\"\ntarget_feature=\"sse3\"\ntarget_feature=\"ssse3\"\ntarget_os=\"macos\"\ntarget_pointer_width=\"64\"\ntarget_vendor=\"apple\"\nunix\n",""],"4476964694761187371":["___\nlib___.rlib\nlib___.dylib\nlib___.dylib\nlib___.a\nlib___.dylib\n/nix/store/81x87ggxz16xd9h4bnwk070h1q9fzqps-rustc-1.43.0\ndebug_assertions\nproc_macro\ntarget_arch=\"x86_64\"\ntarget_endian=\"little\"\ntarget_env=\"\"\ntarget_family=\"unix\"\ntarget_f
execve("target/debug/deps/ic_test_utilities-7f568bfe2bda4b42", ["target/debug/deps/ic_test_utilit"...], 0x7fff71de0428 /* 161 vars */) = 0
brk(NULL) = 0x55aaf7779000
access("/etc/ld-nix.so.preload", R_OK) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/nix/store/sc7lh1dhvd7fg28d7dxwsqzfcinnr6j5-glibc-2.30/lib/tls/x86_64/x86_64/libdl.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/nix/store/sc7lh1dhvd7fg28d7dxwsqzfcinnr6j5-glibc-2.30/lib/tls/x86_64/x86_64", 0x7ffd01a0d010) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/nix/store/sc7lh1dhvd7fg28d7dxwsqzfcinnr6j5-glibc-2.30/lib/tls/x86_64/libdl.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/nix/store/sc7lh1dhvd7fg28d7dxwsqzfcinnr6j5-glibc-2.30/lib/tls/x86_64", 0x7ffd01a0d010) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/nix/store/sc7lh1dhvd7fg28d7dxwsqzfcinnr6j5-glibc-2.30/lib/tls/x86_64/libdl.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such fi
This file has been truncated, but you can view the full file.
trace: buildDfinityRustPackage is deprecated and will be removed soon. Please
use our cargo2nix builder instead!
trace: buildDfinityRustPackage is deprecated and will be removed soon. Please
use our cargo2nix builder instead!
these derivations will be built:
/nix/store/5237d05skq021rvd7a2snkm9qwpzjci3-crate-ic-replica-0.1.0.drv
/nix/store/9vvd7x0pc9qnd1w30j3nz0rgp6pyjcqi-replica-fingerprint.drv
/nix/store/aasgmgjvn9803iimxxjlzdnhl5ck58c3-replica-mkstandalone.drv
This file has been truncated, but you can view the full file.
trace: buildDfinityRustPackage is deprecated and will be removed soon. Please
use our cargo2nix builder instead!
trace: buildDfinityRustPackage is deprecated and will be removed soon. Please
use our cargo2nix builder instead!
these derivations will be built:
/nix/store/5237d05skq021rvd7a2snkm9qwpzjci3-crate-ic-replica-0.1.0.drv
/nix/store/9vvd7x0pc9qnd1w30j3nz0rgp6pyjcqi-replica-fingerprint.drv
/nix/store/aasgmgjvn9803iimxxjlzdnhl5ck58c3-replica-mkstandalone.drv
This file has been truncated, but you can view the full file.
trace: buildDfinityRustPackage is deprecated and will be removed soon. Please
use our cargo2nix builder instead!
trace: buildDfinityRustPackage is deprecated and will be removed soon. Please
use our cargo2nix builder instead!
these derivations will be built:
/nix/store/5237d05skq021rvd7a2snkm9qwpzjci3-crate-ic-replica-0.1.0.drv
/nix/store/9vvd7x0pc9qnd1w30j3nz0rgp6pyjcqi-replica-fingerprint.drv
/nix/store/aasgmgjvn9803iimxxjlzdnhl5ck58c3-replica-mkstandalone.drv
This file has been truncated, but you can view the full file.
trace: buildDfinityRustPackage is deprecated and will be removed soon. Please
use our cargo2nix builder instead!
trace: buildDfinityRustPackage is deprecated and will be removed soon. Please
use our cargo2nix builder instead!
these derivations will be built:
/nix/store/5237d05skq021rvd7a2snkm9qwpzjci3-crate-ic-replica-0.1.0.drv
/nix/store/9vvd7x0pc9qnd1w30j3nz0rgp6pyjcqi-replica-fingerprint.drv
/nix/store/aasgmgjvn9803iimxxjlzdnhl5ck58c3-replica-mkstandalone.drv
trace: buildDfinityRustPackage is deprecated and will be removed soon. Please
use our cargo2nix builder instead!
trace: buildDfinityRustPackage is deprecated and will be removed soon. Please
use our cargo2nix builder instead!
these derivations will be built:
/nix/store/i2sdm80zhjrfk8ri3ch1yb490hybn9kw-crate-ic-replica-0.1.0.drv
/nix/store/8jy6w0xbkmhngn5b2k0qm919zgwk95qh-replica-fingerprint.drv
/nix/store/s9p55ic3w7pxri2pmrzbghwxkf1wl4c1-replica-mkstandalone.drv
{-# LANGUAGE DisambiguateRecordFields #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE NoMonomorphismRestriction #-}
{-# LANGUAGE OverloadedLists #-}
{-# LANGUAGE RecursiveDo #-}
{-# LANGUAGE TypeFamilies #-}
module Main where