File: drop_unused_features.patch

package info (click to toggle)
rust-ndarray 0.17.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,404 kB
  • sloc: makefile: 2
file content (61 lines) | stat: -rw-r--r-- 1,502 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
Description: Drop unused features
 - blas: would require to package cblas-sys, openblas-src, openblas-build...
 .
 - matrixmultiply/threading would require thread-tree that is a dep only of
 matrixmultiply
 .
 - portable-atomic-critical-section: requires portable-atomic-util
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -65,13 +65,7 @@
 ]
 
 [features]
-blas = [
-    "dep:cblas-sys",
-    "dep:libc",
-]
 default = ["std"]
-matrixmultiply-threading = ["matrixmultiply/threading"]
-portable-atomic-critical-section = ["portable-atomic/critical-section"]
 rayon = [
     "dep:rayon",
     "std",
@@ -93,15 +87,6 @@
 optional = true
 default-features = false
 
-[dependencies.cblas-sys]
-version = "0.1.4"
-optional = true
-default-features = false
-
-[dependencies.libc]
-version = "0.2.82"
-optional = true
-
 [dependencies.matrixmultiply]
 version = "0.3.2"
 features = ["cgemm"]
@@ -140,7 +125,7 @@
 version = "0.2"
 
 [dev-dependencies.itertools]
-version = "0.13.0"
+version = "0.14.0"
 features = ["use_std"]
 default-features = false
 
@@ -148,10 +133,10 @@
 version = "1.0"
 default-features = false
 
-[target.'cfg(not(target_has_atomic = "ptr"))'.dependencies.portable-atomic]
+[disabled.target.'cfg(not(target_has_atomic = "ptr"))'.dependencies.portable-atomic]
 version = "1.6.0"
 
-[target.'cfg(not(target_has_atomic = "ptr"))'.dependencies.portable-atomic-util]
+[disabled.target.'cfg(not(target_has_atomic = "ptr"))'.dependencies.portable-atomic-util]
 version = "0.2.0"
 features = ["alloc"]