File: drop_unused_features.patch

package info (click to toggle)
rust-ndarray 0.16.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,028 kB
  • sloc: sh: 30; makefile: 2
file content (55 lines) | stat: -rw-r--r-- 1,243 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
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
@@ -225,15 +225,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"]
@@ -281,18 +272,12 @@
 default-features = false
 
 [features]
-blas = [
-    "dep:cblas-sys",
-    "dep:libc",
-]
 default = ["std"]
 docs = [
     "approx",
     "serde",
     "rayon",
 ]
-matrixmultiply-threading = ["matrixmultiply/threading"]
-portable-atomic-critical-section = ["portable-atomic/critical-section"]
 rayon = [
     "dep:rayon",
     "std",
@@ -304,10 +289,3 @@
     "matrixmultiply/std",
 ]
 test = []
-
-[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]
-version = "0.2.0"
-features = ["alloc"]