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

package info (click to toggle)
rust-bs58 0.5.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 304 kB
  • sloc: makefile: 2
file content (36 lines) | stat: -rw-r--r-- 1,050 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
28
29
30
31
32
33
34
35
36
Index: bs58/examples/decode.rs
===================================================================
--- bs58.orig/examples/decode.rs
+++ bs58/examples/decode.rs
@@ -1,3 +1,4 @@
+#![cfg(feature = "std")]
 use std::io::{self, Read, Write};
 
 fn main() -> Result<(), Box<dyn std::error::Error>> {
Index: bs58/examples/encode.rs
===================================================================
--- bs58.orig/examples/encode.rs
+++ bs58/examples/encode.rs
@@ -1,3 +1,4 @@
+#![cfg(feature = "alloc")]
 use std::io::{self, Read};
 
 fn main() -> Result<(), Box<dyn std::error::Error>> {
Index: bs58/tests/decode.rs
===================================================================
--- bs58.orig/tests/decode.rs
+++ bs58/tests/decode.rs
@@ -1,3 +1,4 @@
+#![cfg(feature = "alloc")]
 mod cases;
 
 #[test]
Index: bs58/tests/encode.rs
===================================================================
--- bs58.orig/tests/encode.rs
+++ bs58/tests/encode.rs
@@ -1,3 +1,4 @@
+#![cfg(feature = "alloc")]
 mod cases;
 
 const FILLER: [u8; 512] = [b'~'; 512];