File: disable-examples.patch

package info (click to toggle)
rust-cntr 1.6.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 552 kB
  • sloc: sh: 20; makefile: 17
file content (39 lines) | stat: -rw-r--r-- 892 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
Description: Disable examples, with features and deps solely used in them
Forwarded: not-needed
Last-Update: 2024-06-18
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -52,5 +52,5 @@
 
-[dependencies.cpuprofiler]
-version = "0.0.4"
-optional = true
+#[dependencies.cpuprofiler]
+#version = "0.0.4"
+#optional = true
 
@@ -72,2 +72,2 @@
-[dev-dependencies.lazy_static]
-version = "1.5"
+#[dev-dependencies.lazy_static]
+#version = "1.5"
@@ -80,2 +80,2 @@
-profiling = []
-verbose_fuse_test_log = []
+#profiling = []
+#verbose_fuse_test_log = []
--- a/examples/cntrfs.rs
+++ b/examples/cntrfs.rs
@@ -1,2 +1,5 @@
-use cntr::fs::{CntrFs, CntrMountOptions};
+fn main () {
+	eprintln!("Debian: disabled example");
+}
+/*use cntr::fs::{CntrFs, CntrMountOptions};
 
@@ -114,2 +117,2 @@
     PROFILER.lock().unwrap().stop().unwrap();
-}
+}*/