summaryrefslogtreecommitdiffstats
path: root/debian/patches/d-0012-cargo-always-return-dev-channel.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/d-0012-cargo-always-return-dev-channel.patch')
-rw-r--r--debian/patches/d-0012-cargo-always-return-dev-channel.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/debian/patches/d-0012-cargo-always-return-dev-channel.patch b/debian/patches/d-0012-cargo-always-return-dev-channel.patch
new file mode 100644
index 000000000..73554bb89
--- /dev/null
+++ b/debian/patches/d-0012-cargo-always-return-dev-channel.patch
@@ -0,0 +1,23 @@
+Description: Enable nightly features for Cargo
+ Debhelper scripts use some nightly features.
+Author: Zixing Liu <zixing.liu@canonical.com>
+Forwarded: not-needed
+Last-Update: 2023-05-30
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+Index: rust/src/tools/cargo/src/cargo/core/features.rs
+===================================================================
+--- rust.orig/src/tools/cargo/src/cargo/core/features.rs
++++ rust/src/tools/cargo/src/cargo/core/features.rs
+@@ -1182,9 +1182,8 @@ pub fn channel() -> String {
+ return "dev".to_string();
+ }
+ }
+- crate::version()
+- .release_channel
+- .unwrap_or_else(|| String::from("dev"))
++ // Debian: always return dev channel
++ String::from("dev")
+ }
+
+ /// Only for testing and developing. See ["Running with gitoxide as default git backend in tests"][1].