-
Notifications
You must be signed in to change notification settings - Fork 1
/
Cargo.toml
58 lines (46 loc) · 1.35 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
[package]
name = "paradis"
version = "0.2.1"
edition = "2021"
description = "Parallel processing with disjoint indices"
authors = [ "Andreas Longva "]
license = "MIT OR Apache-2.0"
readme = "README.md"
repository = "https://github.com/Andlon/paradis"
documentation = "https://docs.rs/paradis"
keywords = [ "parallel", "thread", "disjoint", "index", "indices" ]
categories = [ "concurrency", "rust-patterns" ]
[features]
rayon = [ "dep:rayon" ]
[dependencies]
paradis-core = { version = "0.1.0", path = "paradis-core" }
rayon = { version = "1.10.0", optional = true }
[[example]]
name = "rayon_access_slice"
required-features = [ "rayon" ]
[[example]]
name = "rayon_access_nalgebra"
required-features = [ "rayon" ]
[dev-dependencies]
## Used for some examples. TODO: Ideally this would be optional, but it doesn't look
## like this is possible?
nalgebra = { version = "0.32.5" }
paradis-demo = { path = "paradis-demo" }
divan = "0.1.14"
[workspace]
members = [ "paradis-core" , "paradis-demo" ]
[[bench]]
name = "parallel_iteration"
harness = false
[[bench]]
name = "single_thread_iter"
harness = false
[package.metadata.docs.rs]
features = [ "rayon" ]
# We use this attribute to enable the doc(cfg) feature, which documents
# required features for feature-gated functionality
rustdoc-args = ["--cfg", "docsrs"]
[profile.bench]
lto = "thin"
codegen-units = 1
debug = true