File: 2000-debian-build.patch

package info (click to toggle)
tiktoken 0.11.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 300 kB
  • sloc: python: 1,219; makefile: 17
file content (37 lines) | stat: -rw-r--r-- 1,212 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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Description: Tell cargo to use Debian packages and keep debug info.
 Works thanks to "export CARGO_HOME = $(CURDIR)/debian/.cargo" in debian/rules.
Author: Petter Reinholdtsen <pere@debian.org>, Shengqi Chen <harry@debian.org>
Forwarded: not-needed
Reviewed-By: Petter Reinholdtsen <pere@debian.org>
Last-Update: 2025-02-21

--- /dev/null
+++ b/.cargo/config.toml
@@ -0,0 +1,5 @@
+[source]
+[source.debian-packages]
+directory = "/usr/share/cargo/registry"
+[source.crates-io]
+replace-with = "debian-packages"
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -22,8 +22,8 @@
 build-frontend = "build"
 build-verbosity = 1
 
-linux.before-all = "curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y"
-linux.environment = { PATH = "$PATH:$HOME/.cargo/bin" }
+#linux.before-all = "curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y"
+#linux.environment = { PATH = "$PATH:$HOME/.cargo/bin" }
 macos.before-all = "rustup target add aarch64-apple-darwin x86_64-apple-darwin"
 macos.environment = { MACOSX_DEPLOYMENT_TARGET = "10.12" }
 
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -24,3 +24,6 @@
 regex = "1.10.3"
 rustc-hash = "1.1.0"
 bstr = ">=1.5.0"
+
+[profile.release]
+debug = true