File: fix-tests-no-default-features.patch

package info (click to toggle)
rust-hex 0.4.3-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 204 kB
  • sloc: makefile: 2
file content (27 lines) | stat: -rw-r--r-- 689 bytes parent folder | download | duplicates (2)
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
Index: hex/Cargo.toml
===================================================================
--- hex.orig/Cargo.toml
+++ hex/Cargo.toml
@@ -29,6 +29,8 @@ rustdoc-args = ["--cfg", "docsrs"]
 [[bench]]
 name = "hex"
 harness = false
+required-features = ["alloc"]
+
 [dependencies.serde]
 version = "1.0"
 optional = true
Index: hex/src/lib.rs
===================================================================
--- hex.orig/src/lib.rs
+++ hex/src/lib.rs
@@ -388,6 +388,9 @@ mod test {
     #[cfg(feature = "alloc")]
     use alloc::string::ToString;
     use pretty_assertions::assert_eq;
+    
+    #[cfg(feature = "alloc")]
+    use alloc::vec;
 
     #[test]
     #[cfg(feature = "alloc")]