blob: 73554bb8951cdc7ba1ef72fe2695b7f30a8dd348 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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].
|