2022-06-16 16:25:25 +00:00
|
|
|
cargo-features = ["profile-rustflags"]
|
|
|
|
|
2021-01-30 21:29:59 +00:00
|
|
|
[package]
|
|
|
|
name = "pkmn_lib"
|
|
|
|
version = "0.1.0"
|
|
|
|
authors = ["Deukhoofd <Deukhoofd@gmail.com>"]
|
|
|
|
edition = "2018"
|
2022-12-24 11:06:06 +00:00
|
|
|
license = "MIT"
|
2021-01-30 21:29:59 +00:00
|
|
|
|
|
|
|
[lib]
|
|
|
|
name = "pkmn_lib"
|
2022-09-18 16:02:13 +00:00
|
|
|
crate_type = ["cdylib", "rlib"]
|
2022-06-16 15:59:33 +00:00
|
|
|
path = "src/lib.rs"
|
2021-01-30 21:29:59 +00:00
|
|
|
|
2022-06-03 14:35:18 +00:00
|
|
|
[features]
|
2022-07-18 08:16:47 +00:00
|
|
|
ffi = []
|
2023-07-22 10:23:33 +00:00
|
|
|
serde = ["dep:serde", "dep:serde-xml-rs", "atomig/serde"]
|
2022-11-27 16:29:29 +00:00
|
|
|
wasm = ["dep:wasmer"]
|
2024-04-07 16:55:41 +00:00
|
|
|
rune = ["dep:rune"]
|
|
|
|
default = ["serde", "rune", "ffi"]
|
2022-06-03 14:35:18 +00:00
|
|
|
|
2021-01-30 21:29:59 +00:00
|
|
|
[profile.dev]
|
|
|
|
opt-level = 0
|
|
|
|
debug = true
|
|
|
|
debug-assertions = true
|
|
|
|
overflow-checks = true
|
2022-09-18 16:02:13 +00:00
|
|
|
lto = false
|
2021-01-30 21:29:59 +00:00
|
|
|
panic = 'unwind'
|
|
|
|
incremental = true
|
|
|
|
codegen-units = 256
|
|
|
|
rpath = false
|
|
|
|
|
|
|
|
[profile.release]
|
|
|
|
opt-level = 3
|
|
|
|
debug = 1
|
|
|
|
debug-assertions = false
|
|
|
|
overflow-checks = true
|
2022-09-18 16:02:13 +00:00
|
|
|
lto = false
|
2021-01-30 21:29:59 +00:00
|
|
|
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"
|
2023-10-29 16:05:45 +00:00
|
|
|
atomig = { version = "0.4", features = ["derive"] }
|
2021-01-30 21:29:59 +00:00
|
|
|
# Used for time based code (i.e. randomness)
|
2023-10-29 16:05:45 +00:00
|
|
|
chrono = "0.4"
|
2021-01-30 21:29:59 +00:00
|
|
|
# Used for RNG
|
2023-10-29 16:05:45 +00:00
|
|
|
rand = "0.8"
|
|
|
|
rand_pcg = "0.3"
|
|
|
|
hashbrown = "0.14"
|
2024-05-19 14:37:19 +00:00
|
|
|
indexmap = "2.2"
|
2023-10-29 16:05:45 +00:00
|
|
|
parking_lot = "0.12"
|
|
|
|
serde = { version = "1.0", optional = true, features = ["derive"] }
|
|
|
|
serde_repr = "0.1"
|
|
|
|
serde-xml-rs = { version = "0.6", optional = true }
|
2024-05-19 14:37:19 +00:00
|
|
|
uuid = "1.8"
|
2023-10-29 16:05:45 +00:00
|
|
|
paste = { version = "1.0" }
|
2024-05-19 14:37:19 +00:00
|
|
|
arcstr = { version = "1.2", features = ["std"] }
|
2023-10-29 16:05:45 +00:00
|
|
|
enum-display-derive = "0.1"
|
|
|
|
anyhow = "1.0"
|
|
|
|
anyhow_ext = "0.2"
|
|
|
|
thiserror = "1.0"
|
|
|
|
stdext = "0.3"
|
2022-06-16 15:59:33 +00:00
|
|
|
|
2024-04-07 16:55:41 +00:00
|
|
|
wasmer = { version = "4.2", optional = true, default-features = false, features = ["sys", "wat", "llvm"] }
|
2024-05-19 14:37:19 +00:00
|
|
|
rune = { version = "0.14.0", optional = true, git = "https://github.com/rune-rs/rune" }
|
2024-04-07 16:55:41 +00:00
|
|
|
|
2022-06-16 15:59:33 +00:00
|
|
|
[dev-dependencies]
|
2023-10-29 16:05:45 +00:00
|
|
|
csv = "1.3"
|
|
|
|
project-root = "0.2"
|
2024-05-19 14:37:19 +00:00
|
|
|
serde_yml = "0.0.7"
|
2023-10-29 16:05:45 +00:00
|
|
|
serde_json = "1.0"
|
|
|
|
serde_plain = "1.0"
|
2022-07-01 16:27:56 +00:00
|
|
|
# Allow us to assert whether floats are approximately a value
|
2023-10-29 16:05:45 +00:00
|
|
|
assert_approx_eq = "1.1"
|
2024-04-07 16:55:41 +00:00
|
|
|
mockall = "0.12"
|
|
|
|
walkdir = "2.3"
|