File: fix-tests-without-termcolor-feature.patch

package info (click to toggle)
rust-codespan-reporting 0.12.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 740 kB
  • sloc: makefile: 2
file content (41 lines) | stat: -rw-r--r-- 1,197 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
38
39
40
41
Description: Fix test failure when termcolor feature is disabled
 Add required-features = ["termcolor"] to examples and tests that depend on
 termcolor functionality. This prevents compilation errors when testing with
 the `--no-default-features` flag, as these examples and tests
 unconditionally import termcolor types that are only available when the
 termcolor feature is enabled
Author: Nadzeya Hutsko <nadzya.info@gmail.com>
Forwarded: https://github.com/brendanzab/codespan/issues/399
Last-Update: 2025-09-29
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -49,22 +49,27 @@
 [[example]]
 name = "custom_files"
 path = "examples/custom_files.rs"
+required-features = ["termcolor"]
 
 [[example]]
 name = "readme_preview"
 path = "examples/readme_preview.rs"
+required-features = ["termcolor"]
 
 [[example]]
 name = "reusable_diagnostic"
 path = "examples/reusable_diagnostic.rs"
+required-features = ["termcolor"]
 
 [[example]]
 name = "term"
 path = "examples/term.rs"
+required-features = ["termcolor"]
 
 [[test]]
 name = "term"
 path = "tests/term.rs"
+required-features = ["termcolor"]
 
 [dependencies.serde]
 version = "1"