-
Notifications
You must be signed in to change notification settings - Fork 3
/
Cargo.toml
105 lines (84 loc) · 2.47 KB
/
Cargo.toml
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
[package]
name = "osrank-experiments"
version = "0.1.0"
authors = ["Alfredo Di Napoli <[email protected]>"]
edition = "2018"
[package.metadata]
assets = "data"
[lib]
name = "osrank"
path = "src/lib.rs"
bench = false # https://bheisler.github.io/criterion.rs/book/faq.html#cargo-bench-gives-unrecognized-option-errors-for-valid-command-line-options
[[bin]]
name = "osrank-test"
path = "bin/main.rs"
bench = false
[[bin]]
name = "osrank-source-dependencies"
path = "bin/source_dependencies.rs"
bench = false
required-features = ["build-binary"]
[[bin]]
name = "osrank-source-contributions"
path = "bin/source_contributions.rs"
bench = false
required-features = ["build-binary"]
[[bin]]
name = "osrank-adjacency-matrix"
path = "bin/adjacency_matrix.rs"
bench = false
required-features = ["build-binary"]
[[bin]]
name = "osrank-export-to-gephi"
path = "bin/export_gephi.rs"
required-features = ["build-binary"]
[[bin]]
name = "osrank-rank" # Run osrank on some data, producing a csv file.
path = "bin/rank.rs"
required-features = ["build-binary"]
[features]
build-binary = ["reqwest", "clap", "failure", "failure_derive", "arrayref"]
[dependencies]
num-traits = "^0.2"
derive_more = "^0.13"
itertools = "^0.8.0"
fnv = "^1.0.3"
log = "0.4.0"
env_logger = "^0.6.2"
rayon = "^1.2.0"
# We need to lock quickcheck to the same version of rand used by this crate.
quickcheck = "=0.9"
quickcheck_macros = "=0.8"
#Importers/exporters crates
csv = "^1.1"
serde = { version = "1.0.60", features = ["derive"]}
serde_json = "1.0.40"
#Linear algebra/math crates
petgraph = "0.4.13"
fraction = "0.6"
sprs = "^0.6"
ndarray = "=0.12.1"
rand = "=0.7"
rand_xoshiro = "=0.4.0"
#Doman-specific crates
oscoin-graph-api = { features = ["quickcheck"], git = "https://github.com/oscoin/graph-api.git", rev = "b49b4cc3a93c8e88fe057514799023f42ddb1594" }
# Binary-only dependencies
# See: https://stackoverflow.com/questions/35711044/how-can-i-specify-binary-only-dependencies
reqwest = { version = "^0.9", optional = true }
clap = { version = "^2.33", optional = true }
failure = { version = "0.1.5", optional = true}
failure_derive = { version = "0.1.5", optional = true}
arrayref = { version = "0.3.5", optional = true}
[dev-dependencies]
pretty_assertions = "0.6.1"
tempfile = "^3.1.0"
criterion = "0.3.0"
arrayref = "0.3.5"
[[bench]]
name = "osrank_naive_development"
path = "benches/osrank_naive_development.rs"
harness = false
[[bench]]
name = "osrank_naive_nightly"
path = "benches/osrank_naive_nightly.rs"
harness = false