File: Add-dh-cargo-deb-built-using-to-Rust-bindings.patch

package info (click to toggle)
tree-sitter-ruby 0.23.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 15,780 kB
  • sloc: ansic: 472,675; javascript: 1,093; lisp: 190; makefile: 101; python: 88; ruby: 56; cpp: 14; sh: 9
file content (21 lines) | stat: -rw-r--r-- 623 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: Antonin Delpeuch <antonin@delpeuch.eu>
Date: Sun, 7 Dec 2025 10:29:46 +0100
Subject: Add dh-cargo:deb-built-using to Rust bindings

Forwarded: not-needed
---
 bindings/rust/build.rs | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/bindings/rust/build.rs b/bindings/rust/build.rs
index 463ee67..6637775 100644
--- a/bindings/rust/build.rs
+++ b/bindings/rust/build.rs
@@ -1,4 +1,7 @@
+use std::env;
+
 fn main() {
+    println!("dh-cargo:deb-built-using=tree-sitter-ruby=0={}", env::var("CARGO_MANIFEST_DIR").unwrap());
     let src_dir = std::path::Path::new("src");
 
     let mut c_config = cc::Build::new();