-
Notifications
You must be signed in to change notification settings - Fork 1
/
Cargo.toml
103 lines (88 loc) · 2.49 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
[package]
name = "ecrs"
version = "0.1.0-beta.4"
edition = "2021"
readme = "README.md"
repository = "https://github.com/ecrs-org/ecrs"
homepage = "https://github.com/ecrs-org/ecrs"
description = """
Evolutionary computation tools & algorithms
"""
keywords = ["evolution", "evolutionary", "algorithms", "genetic"]
categories = ["science"]
license = "MIT OR Apache-2.0"
exclude = [".github/*", "Cargo.lock", "coco/"]
[workspace]
members = ["coco"]
[lib]
name = "ecrs"
path = "src/lib.rs"
[features]
default = ["ga", "ga_ops_impls"]
ga = ["dep:push-trait", "dep:len-trait", "dep:num-traits"]
ga_ops_impls = ["ga_impl_crossover", "ga_impl_mutation", "ga_impl_replacement", "ga_impl_selection", "ga_impl_population"]
ga_impl_crossover = ["ga"]
ga_impl_mutation = ["ga"]
ga_impl_replacement = ["ga"]
ga_impl_selection = ["ga"]
ga_impl_population = ["ga"]
aco = ["dep:nalgebra", "dep:num"]
ff = ["dep:rayon"]
pso = ["dep:rayon", "dep:num", "test_functions"]
aco_tsp = ["aco"]
test_functions = []
all = ["ga", "aco", "ff", "pso", "test_functions"]
[dependencies]
rand = "0.8.5"
nalgebra = { version = "0.32.2", optional = true }
rayon = { version = "1.5.2", optional = true }
csv = "1.1.6"
serde = { version = "1", features = ["derive"] }
log = "0.4.17"
num = { version = "0.4.0", optional = true }
itertools = "0.10.2"
serde_json = "1.0.79"
push-trait = { version = "0.6.0", optional = true }
len-trait = { version = "0.6.1", optional = true }
num-traits = { version = "0.2.15", optional = true }
[dev-dependencies]
log4rs = "1.2.0"
criterion = "0.5.1"
clap = { version = "4.2.7", features = ["derive"] }
md5 = "0.7.0"
[[bench]]
name = "aco_bench"
harness = false
required-features = ["aco", "aco_tsp"]
[[bench]]
name = "ff_bench"
harness = false
required-features = ["ff"]
[profile.dev]
opt-level = 0
debug = true
[profile.release]
# debug = 1 # For profiling, should be disabled for production builds
lto = "fat"
panic = "abort"
opt-level = 3
[[example]]
name = "jssp"
path = "examples/jssp/main.rs"
required-features = ["ga", "ga_ops_impls"]
[[example]]
name = "ga"
path = "examples/ga.rs"
required-features = ["ga", "ga_ops_impls", "test_functions"]
[[example]]
name = "ga_ackley_test_function"
path = "examples/ga_ackley_test_function.rs"
required-features = ["ga", "ga_ops_impls", "test_functions"]
[[example]]
name = "ga_bsc"
path = "examples/ga_bsc.rs"
required-features = ["ga", "ga_ops_impls", "test_functions"]
[[example]]
name = "ga_rvc"
path = "examples/ga_rvc.rs"
required-features = ["ga", "ga_ops_impls", "test_functions"]