-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
39 lines (28 loc) · 844 Bytes
/
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
[package]
name = "neat-gru"
version = "0.1.12"
authors = ["sakex <[email protected]>"]
edition = "2018"
description = "NEAT algorithm with GRU gates"
license = "MIT"
[lib]
crate-type = ["cdylib", "rlib"]
path = "rust/lib.rs"
[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-bindgen = "0.2.68"
[build-dependencies]
cc = { version = "1.0", features = ["parallel"] }
[features]
gpu = [] # feature has no explicit dependencies
[profile.release]
# Link time optimisation, possibly even with C++, equivalent to G++'s -flto
lto = true
# codegen-units of 1 gives best optimization, but disables parallel building.
# Default: 16
codegen-units = 1
# Prevent inserting panic handlers in ASM
panic = "abort"
# Optimisation level, equivalent to G++'s -O3
opt-level = 3
[target.'cfg(target_arch = "wasm32")'.profile.release]
lto = false