File: 0007-Report-deb-built-using-tree-sitter-0-when-building-t.patch

package info (click to toggle)
tree-sitter 0.25.6-3
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 5,556 kB
  • sloc: ansic: 17,281; javascript: 2,223; makefile: 190; python: 90; cpp: 13
file content (23 lines) | stat: -rw-r--r-- 784 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
22
23
From: James McCoy <jamessan@debian.org>
Date: Tue, 24 Sep 2024 21:15:04 -0400
Subject: Report deb-built-using=tree-sitter=0 when building tree-sitter crate

The license is MIT, so there is no requirement to distribute source along with binaries.

Signed-off-by: James McCoy <jamessan@debian.org>
---
 lib/binding_rust/build.rs | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/binding_rust/build.rs b/lib/binding_rust/build.rs
index 5e91803..66c78be 100644
--- a/lib/binding_rust/build.rs
+++ b/lib/binding_rust/build.rs
@@ -47,6 +47,7 @@ fn main() {
         .file(src_path.join("lib.c"))
         .compile("tree-sitter");
 
+    println!("dh-cargo:deb-built-using=tree-sitter=0={}", env!("CARGO_MANIFEST_DIR"));
     println!("cargo:include={}", include_path.display());
 }