Package: rust-sha2-asm / 0.5.1-3

debian-build-rs.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- a/build.rs
+++ b/build.rs
@@ -1,5 +1,7 @@
 extern crate cc;
 
+use std::env;
+
 fn main() {
     let (sha256_path, sha512_path) = if cfg!(target_arch = "x86") {
         ("src/sha256_x86.S", "src/sha512_x86.S")
@@ -16,4 +18,7 @@
               .flag("-c")
               .file(sha512_path)
               .compile("libsha512.a");
+
+    println!("dh-cargo:deb-built-using=sha256=0={}", env::var("CARGO_MANIFEST_DIR").unwrap());
+    println!("dh-cargo:deb-built-using=sha512=0={}", env::var("CARGO_MANIFEST_DIR").unwrap());
 }