PkmnLib_rs/Cargo.toml

70 lines
1.5 KiB
TOML
Executable File

cargo-features = ["profile-rustflags"]
[package]
name = "pkmn_lib"
version = "0.1.0"
authors = ["Deukhoofd <Deukhoofd@gmail.com>"]
edition = "2018"
[lib]
name = "pkmn_lib"
crate_type = ["cdylib", "rlib"]
path = "src/lib.rs"
[features]
ffi = []
serde = ["dep:serde"]
wasm = ["dep:wasmer"]
default = ["serde", "wasm", "ffi"]
[profile.dev]
opt-level = 0
debug = true
debug-assertions = true
overflow-checks = true
lto = false
panic = 'unwind'
incremental = true
codegen-units = 256
rpath = false
[profile.release]
opt-level = 3
debug = 1
debug-assertions = false
overflow-checks = true
lto = false
panic = 'unwind'
incremental = false
codegen-units = 16
rpath = false
[dependencies]
# Used for PrimInt, so we can check if a generic is an integer
num-traits = "0.2"
atomig = { version = "0.4.0", features = ["derive"] }
# Used for time based code (i.e. randomness)
chrono = "0.4.19"
# Used for RNG
rand = "0.8.5"
rand_pcg = "0.3.1"
hashbrown = "0.13.1"
indexmap = "1.8.2"
parking_lot = "0.12.1"
serde = { version = "1.0.137", optional = true, features = ["derive"] }
wasmer = { version = "3.0.1", optional = true, default-features = true }
uuid = "1.2.2"
paste = { version = "1.0.8" }
arcstr = { version = "1.1.4", features = ["std"] }
enum-display-derive = "0.1.1"
[dev-dependencies]
csv = "1.1.6"
project-root = "0.2.2"
datatest = "0.7.1"
serde_yaml = "0.9.14"
serde_json = "1.0.81"
serde_plain = "1.0.0"
# Allow us to assert whether floats are approximately a value
assert_approx_eq = "1.1.0"
mockall = "0.11.2"