We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6fd9ef6 commit 0069649Copy full SHA for 0069649
tests/run-make/checksum-freshness/expected.d
@@ -0,0 +1,3 @@
1
+lib.d: lib.rs # checksum:blake3=5fd6328c93a3360bc580567aec10731ab3e5efc4a0f957b1bba0db0d27af3767 file_len:110
2
+
3
+lib.rs:
tests/run-make/checksum-freshness/lib.rs
@@ -0,0 +1,5 @@
+// A basic library to be used in tests with no real purpose.
+pub fn sum(a: i32, b: i32) -> i32 {
4
+ a + b
5
+}
tests/run-make/checksum-freshness/rmake.rs
@@ -0,0 +1,9 @@
+use run_make_support::{rfs, rustc};
+fn main() {
+ rustc().input("lib.rs").arg("-Zchecksum-hash-algorithm=blake3").emit("dep-info").run();
+ let make_file_contents = rfs::read_to_string("lib.d");
6
+ let expected_contents = rfs::read_to_string("expected.d");
7
+ assert_eq!(make_file_contents, expected_contents);
8
+ assert!(!expected_contents.is_empty());
9
0 commit comments