use library for simulation

This commit is contained in:
2024-10-14 19:11:00 +02:00
parent 2b0b97cba8
commit 7227f1776f
7 changed files with 294 additions and 977 deletions

50
Cargo.lock generated
View File

@ -154,7 +154,9 @@ dependencies = [
name = "battlesnake"
version = "1.0.0"
dependencies = [
"battlesnake-game-types",
"criterion2",
"dashmap",
"enum-iterator",
"env_logger",
"iter_tools",
@ -166,6 +168,20 @@ dependencies = [
"serde_json",
]
[[package]]
name = "battlesnake-game-types"
version = "0.17.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "370d3e9c1067908a33bb29721a19f0658eb3b923d046d6ad38f30494658b4659"
dependencies = [
"fxhash",
"itertools 0.10.5",
"rand",
"serde",
"serde_json",
"tracing",
]
[[package]]
name = "binascii"
version = "0.1.4"
@ -322,6 +338,20 @@ version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7a81dae078cea95a014a339291cec439d2f232ebe854a9d672b796c6afafa9b7"
[[package]]
name = "dashmap"
version = "6.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5041cc499144891f3790297212f32a74fb938e5136a14943f338ef9e0ae276cf"
dependencies = [
"cfg-if",
"crossbeam-utils",
"hashbrown",
"lock_api",
"once_cell",
"parking_lot_core",
]
[[package]]
name = "deranged"
version = "0.3.11"
@ -529,6 +559,15 @@ dependencies = [
"slab",
]
[[package]]
name = "fxhash"
version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c31b6d751ae2c7f11320402d34e41349dd1016f8d5d45e48c4312bc8625af50c"
dependencies = [
"byteorder",
]
[[package]]
name = "generator"
version = "0.7.5"
@ -728,7 +767,16 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "27812bb0a056539d62930a899759af39dfab17ac73a17d5caf58365762657891"
dependencies = [
"clone_dyn_types",
"itertools",
"itertools 0.11.0",
]
[[package]]
name = "itertools"
version = "0.10.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b0fd2260e829bddf4cb6ea802289de2f86d6a7a690192fbe91b3f46e0f2c8473"
dependencies = [
"either",
]
[[package]]