Implement ZoneDriverBot: zone-herding elimination strategy
ZoneDriver weaponizes the shrinking zone to force enemy eliminations: - Computes zone boundary and identifies "kill band" (zone edge-2 to edge) - Positions units to block enemy escape routes inward - Herds enemies toward zone edge for passive eliminations - Prioritizes survival for own bots near zone boundary Novel approach: turns zone from map feature into active weapon. Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
2696e70257
commit
cdbc4c0cbd
667 changed files with 3559 additions and 0 deletions
756
bots/zone-driver/Cargo.lock
generated
Normal file
756
bots/zone-driver/Cargo.lock
generated
Normal file
|
|
@ -0,0 +1,756 @@
|
|||
# This file is automatically @generated by Cargo.
|
||||
# It is not intended for manual editing.
|
||||
version = 4
|
||||
|
||||
[[package]]
|
||||
name = "atomic-waker"
|
||||
version = "1.1.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0"
|
||||
|
||||
[[package]]
|
||||
name = "axum"
|
||||
version = "0.8.9"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "31b698c5f9a010f6573133b09e0de5408834d0c82f8d7475a89fc1867a71cd90"
|
||||
dependencies = [
|
||||
"axum-core",
|
||||
"bytes",
|
||||
"form_urlencoded",
|
||||
"futures-util",
|
||||
"http",
|
||||
"http-body",
|
||||
"http-body-util",
|
||||
"hyper",
|
||||
"hyper-util",
|
||||
"itoa",
|
||||
"matchit",
|
||||
"memchr",
|
||||
"mime",
|
||||
"percent-encoding",
|
||||
"pin-project-lite",
|
||||
"serde_core",
|
||||
"serde_json",
|
||||
"serde_path_to_error",
|
||||
"serde_urlencoded",
|
||||
"sync_wrapper",
|
||||
"tokio",
|
||||
"tower",
|
||||
"tower-layer",
|
||||
"tower-service",
|
||||
"tracing",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "axum-core"
|
||||
version = "0.5.6"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "08c78f31d7b1291f7ee735c1c6780ccde7785daae9a9206026862dab7d8792d1"
|
||||
dependencies = [
|
||||
"bytes",
|
||||
"futures-core",
|
||||
"http",
|
||||
"http-body",
|
||||
"http-body-util",
|
||||
"mime",
|
||||
"pin-project-lite",
|
||||
"sync_wrapper",
|
||||
"tower-layer",
|
||||
"tower-service",
|
||||
"tracing",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "bitflags"
|
||||
version = "2.13.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "b4388bee8683e3d04af747c73422af53102d2bd24d9eadb6cbc100baef4b43f8"
|
||||
|
||||
[[package]]
|
||||
name = "block-buffer"
|
||||
version = "0.10.4"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71"
|
||||
dependencies = [
|
||||
"generic-array",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "bytes"
|
||||
version = "1.11.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "1e748733b7cbc798e1434b6ac524f0c1ff2ab456fe201501e6497c8417a4fc33"
|
||||
|
||||
[[package]]
|
||||
name = "cfg-if"
|
||||
version = "1.0.4"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
|
||||
|
||||
[[package]]
|
||||
name = "cpufeatures"
|
||||
version = "0.2.17"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "59ed5838eebb26a2bb2e58f6d5b5316989ae9d08bab10e0e6d103e656d1b0280"
|
||||
dependencies = [
|
||||
"libc",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "crypto-common"
|
||||
version = "0.1.7"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "78c8292055d1c1df0cce5d180393dc8cce0abec0a7102adb6c7b1eef6016d60a"
|
||||
dependencies = [
|
||||
"generic-array",
|
||||
"typenum",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "digest"
|
||||
version = "0.10.7"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292"
|
||||
dependencies = [
|
||||
"block-buffer",
|
||||
"crypto-common",
|
||||
"subtle",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "errno"
|
||||
version = "0.3.14"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
|
||||
dependencies = [
|
||||
"libc",
|
||||
"windows-sys",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "form_urlencoded"
|
||||
version = "1.2.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf"
|
||||
dependencies = [
|
||||
"percent-encoding",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "futures-channel"
|
||||
version = "0.3.32"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "07bbe89c50d7a535e539b8c17bc0b49bdb77747034daa8087407d655f3f7cc1d"
|
||||
dependencies = [
|
||||
"futures-core",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "futures-core"
|
||||
version = "0.3.32"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "7e3450815272ef58cec6d564423f6e755e25379b217b0bc688e295ba24df6b1d"
|
||||
|
||||
[[package]]
|
||||
name = "futures-task"
|
||||
version = "0.3.32"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "037711b3d59c33004d3856fbdc83b99d4ff37a24768fa1be9ce3538a1cde4393"
|
||||
|
||||
[[package]]
|
||||
name = "futures-util"
|
||||
version = "0.3.32"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "389ca41296e6190b48053de0321d02a77f32f8a5d2461dd38762c0593805c6d6"
|
||||
dependencies = [
|
||||
"futures-core",
|
||||
"futures-task",
|
||||
"pin-project-lite",
|
||||
"slab",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "generic-array"
|
||||
version = "0.14.7"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a"
|
||||
dependencies = [
|
||||
"typenum",
|
||||
"version_check",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "hex"
|
||||
version = "0.4.3"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70"
|
||||
|
||||
[[package]]
|
||||
name = "hmac"
|
||||
version = "0.12.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "6c49c37c09c17a53d937dfbb742eb3a961d65a994e6bcdcf37e7399d0cc8ab5e"
|
||||
dependencies = [
|
||||
"digest",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "http"
|
||||
version = "1.4.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "6970f50e31d6fc17d3fa27329444bfa74e196cf62e95052a3f6fee181dba6425"
|
||||
dependencies = [
|
||||
"bytes",
|
||||
"itoa",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "http-body"
|
||||
version = "1.0.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "1efedce1fb8e6913f23e0c92de8e62cd5b772a67e7b3946df930a62566c93184"
|
||||
dependencies = [
|
||||
"bytes",
|
||||
"http",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "http-body-util"
|
||||
version = "0.1.3"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "b021d93e26becf5dc7e1b75b1bed1fd93124b374ceb73f43d4d4eafec896a64a"
|
||||
dependencies = [
|
||||
"bytes",
|
||||
"futures-core",
|
||||
"http",
|
||||
"http-body",
|
||||
"pin-project-lite",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "httparse"
|
||||
version = "1.10.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87"
|
||||
|
||||
[[package]]
|
||||
name = "httpdate"
|
||||
version = "1.0.3"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9"
|
||||
|
||||
[[package]]
|
||||
name = "hyper"
|
||||
version = "1.10.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "55281c53a1894c864990125767da440a4e630446785086f52523b20033b74498"
|
||||
dependencies = [
|
||||
"atomic-waker",
|
||||
"bytes",
|
||||
"futures-channel",
|
||||
"futures-core",
|
||||
"http",
|
||||
"http-body",
|
||||
"httparse",
|
||||
"httpdate",
|
||||
"itoa",
|
||||
"pin-project-lite",
|
||||
"smallvec",
|
||||
"tokio",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "hyper-util"
|
||||
version = "0.1.20"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "96547c2556ec9d12fb1578c4eaf448b04993e7fb79cbaad930a656880a6bdfa0"
|
||||
dependencies = [
|
||||
"bytes",
|
||||
"http",
|
||||
"http-body",
|
||||
"hyper",
|
||||
"pin-project-lite",
|
||||
"tokio",
|
||||
"tower-service",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "itoa"
|
||||
version = "1.0.18"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"
|
||||
|
||||
[[package]]
|
||||
name = "lazy_static"
|
||||
version = "1.5.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe"
|
||||
|
||||
[[package]]
|
||||
name = "libc"
|
||||
version = "0.2.186"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "68ab91017fe16c622486840e4c83c9a37afeff978bd239b5293d61ece587de66"
|
||||
|
||||
[[package]]
|
||||
name = "lock_api"
|
||||
version = "0.4.14"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965"
|
||||
dependencies = [
|
||||
"scopeguard",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "log"
|
||||
version = "0.4.32"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "953f07c43838f8e6f9758cab68bf5bed85465e7587ebe0b823f1bcd81978ad3a"
|
||||
|
||||
[[package]]
|
||||
name = "matchit"
|
||||
version = "0.8.4"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "47e1ffaa40ddd1f3ed91f717a33c8c0ee23fff369e3aa8772b9605cc1d22f4c3"
|
||||
|
||||
[[package]]
|
||||
name = "memchr"
|
||||
version = "2.8.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "88904434abc2901f197fe8cc55f0445e7ded921dba5911dad2e2b39b48e663c4"
|
||||
|
||||
[[package]]
|
||||
name = "mime"
|
||||
version = "0.3.17"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a"
|
||||
|
||||
[[package]]
|
||||
name = "mio"
|
||||
version = "1.2.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "02bd0af71c67b473010cbbc60715ee815645a4dc942899111f494b4b737d6fda"
|
||||
dependencies = [
|
||||
"libc",
|
||||
"wasi",
|
||||
"windows-sys",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "nu-ansi-term"
|
||||
version = "0.50.3"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "7957b9740744892f114936ab4a57b3f487491bbeafaf8083688b16841a4240e5"
|
||||
dependencies = [
|
||||
"windows-sys",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "once_cell"
|
||||
version = "1.21.4"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
|
||||
|
||||
[[package]]
|
||||
name = "parking_lot"
|
||||
version = "0.12.5"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a"
|
||||
dependencies = [
|
||||
"lock_api",
|
||||
"parking_lot_core",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "parking_lot_core"
|
||||
version = "0.9.12"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1"
|
||||
dependencies = [
|
||||
"cfg-if",
|
||||
"libc",
|
||||
"redox_syscall",
|
||||
"smallvec",
|
||||
"windows-link",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "percent-encoding"
|
||||
version = "2.3.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220"
|
||||
|
||||
[[package]]
|
||||
name = "pin-project-lite"
|
||||
version = "0.2.17"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd"
|
||||
|
||||
[[package]]
|
||||
name = "proc-macro2"
|
||||
version = "1.0.106"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934"
|
||||
dependencies = [
|
||||
"unicode-ident",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "quote"
|
||||
version = "1.0.45"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924"
|
||||
dependencies = [
|
||||
"proc-macro2",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "redox_syscall"
|
||||
version = "0.5.18"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d"
|
||||
dependencies = [
|
||||
"bitflags",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "ryu"
|
||||
version = "1.0.23"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "9774ba4a74de5f7b1c1451ed6cd5285a32eddb5cccb8cc655a4e50009e06477f"
|
||||
|
||||
[[package]]
|
||||
name = "scopeguard"
|
||||
version = "1.2.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
|
||||
|
||||
[[package]]
|
||||
name = "serde"
|
||||
version = "1.0.228"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e"
|
||||
dependencies = [
|
||||
"serde_core",
|
||||
"serde_derive",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "serde_core"
|
||||
version = "1.0.228"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad"
|
||||
dependencies = [
|
||||
"serde_derive",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "serde_derive"
|
||||
version = "1.0.228"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79"
|
||||
dependencies = [
|
||||
"proc-macro2",
|
||||
"quote",
|
||||
"syn",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "serde_json"
|
||||
version = "1.0.150"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "e8014e44b4736ed0538adeecded0fce2a272f22dc9578a7eb6b2d9993c74cfb9"
|
||||
dependencies = [
|
||||
"itoa",
|
||||
"memchr",
|
||||
"serde",
|
||||
"serde_core",
|
||||
"zmij",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "serde_path_to_error"
|
||||
version = "0.1.20"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "10a9ff822e371bb5403e391ecd83e182e0e77ba7f6fe0160b795797109d1b457"
|
||||
dependencies = [
|
||||
"itoa",
|
||||
"serde",
|
||||
"serde_core",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "serde_urlencoded"
|
||||
version = "0.7.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd"
|
||||
dependencies = [
|
||||
"form_urlencoded",
|
||||
"itoa",
|
||||
"ryu",
|
||||
"serde",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "sha2"
|
||||
version = "0.10.9"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283"
|
||||
dependencies = [
|
||||
"cfg-if",
|
||||
"cpufeatures",
|
||||
"digest",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "sharded-slab"
|
||||
version = "0.1.7"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "f40ca3c46823713e0d4209592e8d6e826aa57e928f09752619fc696c499637f6"
|
||||
dependencies = [
|
||||
"lazy_static",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "signal-hook-registry"
|
||||
version = "1.4.8"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "c4db69cba1110affc0e9f7bcd48bbf87b3f4fc7c61fc9155afd4c469eb3d6c1b"
|
||||
dependencies = [
|
||||
"errno",
|
||||
"libc",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "slab"
|
||||
version = "0.4.12"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5"
|
||||
|
||||
[[package]]
|
||||
name = "smallvec"
|
||||
version = "1.15.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "8ed6a63f02c8539c91a8685a86f4099661ba3da017932f6ebbea6de3f0fa7c90"
|
||||
|
||||
[[package]]
|
||||
name = "socket2"
|
||||
version = "0.6.4"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "52d1cfed4120b4d927bf7c0f86d2087a4a7d6027c906d9f9d525a80573b9be51"
|
||||
dependencies = [
|
||||
"libc",
|
||||
"windows-sys",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "subtle"
|
||||
version = "2.6.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292"
|
||||
|
||||
[[package]]
|
||||
name = "syn"
|
||||
version = "2.0.118"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "1b9ae57f904213ebb649ce6895b8a66c66f0203b9319718f69a5612a065b1422"
|
||||
dependencies = [
|
||||
"proc-macro2",
|
||||
"quote",
|
||||
"unicode-ident",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "sync_wrapper"
|
||||
version = "1.0.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "0bf256ce5efdfa370213c1dabab5935a12e49f2c58d15e9eac2870d3b4f27263"
|
||||
|
||||
[[package]]
|
||||
name = "thread_local"
|
||||
version = "1.1.9"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "f60246a4944f24f6e018aa17cdeffb7818b76356965d03b07d6a9886e8962185"
|
||||
dependencies = [
|
||||
"cfg-if",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "tokio"
|
||||
version = "1.52.3"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "8fc7f01b389ac15039e4dc9531aa973a135d7a4135281b12d7c1bc79fd57fffe"
|
||||
dependencies = [
|
||||
"bytes",
|
||||
"libc",
|
||||
"mio",
|
||||
"parking_lot",
|
||||
"pin-project-lite",
|
||||
"signal-hook-registry",
|
||||
"socket2",
|
||||
"tokio-macros",
|
||||
"windows-sys",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "tokio-macros"
|
||||
version = "2.7.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "385a6cb71ab9ab790c5fe8d67f1645e6c450a7ce006a33de03daa956cf70a496"
|
||||
dependencies = [
|
||||
"proc-macro2",
|
||||
"quote",
|
||||
"syn",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "tower"
|
||||
version = "0.5.3"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "ebe5ef63511595f1344e2d5cfa636d973292adc0eec1f0ad45fae9f0851ab1d4"
|
||||
dependencies = [
|
||||
"futures-core",
|
||||
"futures-util",
|
||||
"pin-project-lite",
|
||||
"sync_wrapper",
|
||||
"tokio",
|
||||
"tower-layer",
|
||||
"tower-service",
|
||||
"tracing",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "tower-layer"
|
||||
version = "0.3.3"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "121c2a6cda46980bb0fcd1647ffaf6cd3fc79a013de288782836f6df9c48780e"
|
||||
|
||||
[[package]]
|
||||
name = "tower-service"
|
||||
version = "0.3.3"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3"
|
||||
|
||||
[[package]]
|
||||
name = "tracing"
|
||||
version = "0.1.44"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "63e71662fa4b2a2c3a26f570f037eb95bb1f85397f3cd8076caed2f026a6d100"
|
||||
dependencies = [
|
||||
"log",
|
||||
"pin-project-lite",
|
||||
"tracing-attributes",
|
||||
"tracing-core",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "tracing-attributes"
|
||||
version = "0.1.31"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "7490cfa5ec963746568740651ac6781f701c9c5ea257c58e057f3ba8cf69e8da"
|
||||
dependencies = [
|
||||
"proc-macro2",
|
||||
"quote",
|
||||
"syn",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "tracing-core"
|
||||
version = "0.1.36"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a"
|
||||
dependencies = [
|
||||
"once_cell",
|
||||
"valuable",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "tracing-log"
|
||||
version = "0.2.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "ee855f1f400bd0e5c02d150ae5de3840039a3f54b025156404e34c23c03f47c3"
|
||||
dependencies = [
|
||||
"log",
|
||||
"once_cell",
|
||||
"tracing-core",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "tracing-subscriber"
|
||||
version = "0.3.23"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "cb7f578e5945fb242538965c2d0b04418d38ec25c79d160cd279bf0731c8d319"
|
||||
dependencies = [
|
||||
"nu-ansi-term",
|
||||
"sharded-slab",
|
||||
"smallvec",
|
||||
"thread_local",
|
||||
"tracing-core",
|
||||
"tracing-log",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "typenum"
|
||||
version = "1.20.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "b6f5e870be6c3b371b77fe0ee0bafb859fa4964b4404c27de1d380043c4dda20"
|
||||
|
||||
[[package]]
|
||||
name = "unicode-ident"
|
||||
version = "1.0.24"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
|
||||
|
||||
[[package]]
|
||||
name = "valuable"
|
||||
version = "0.1.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "ba73ea9cf16a25df0c8caa16c51acb937d5712a8429db78a3ee29d5dcacd3a65"
|
||||
|
||||
[[package]]
|
||||
name = "version_check"
|
||||
version = "0.9.5"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a"
|
||||
|
||||
[[package]]
|
||||
name = "wasi"
|
||||
version = "0.11.1+wasi-snapshot-preview1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b"
|
||||
|
||||
[[package]]
|
||||
name = "windows-link"
|
||||
version = "0.2.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
|
||||
|
||||
[[package]]
|
||||
name = "windows-sys"
|
||||
version = "0.61.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc"
|
||||
dependencies = [
|
||||
"windows-link",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "zmij"
|
||||
version = "1.0.21"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "b8848ee67ecc8aedbaf3e4122217aff892639231befc6a1b58d29fff4c2cabaa"
|
||||
|
||||
[[package]]
|
||||
name = "zone-driver-bot"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"axum",
|
||||
"hex",
|
||||
"hmac",
|
||||
"serde",
|
||||
"serde_json",
|
||||
"sha2",
|
||||
"tokio",
|
||||
"tracing",
|
||||
"tracing-subscriber",
|
||||
]
|
||||
20
bots/zone-driver/Cargo.toml
Normal file
20
bots/zone-driver/Cargo.toml
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
[package]
|
||||
name = "zone-driver-bot"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
axum = "0.8"
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
serde_json = "1.0"
|
||||
tokio = { version = "1", features = ["full"] }
|
||||
hmac = "0.12"
|
||||
sha2 = "0.10"
|
||||
hex = "0.4"
|
||||
tracing = "0.1"
|
||||
tracing-subscriber = "0.3"
|
||||
|
||||
[profile.release]
|
||||
strip = true
|
||||
opt-level = "s"
|
||||
lto = "thin"
|
||||
21
bots/zone-driver/Dockerfile
Normal file
21
bots/zone-driver/Dockerfile
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
# Build stage
|
||||
FROM rust:1.85-alpine AS builder
|
||||
|
||||
WORKDIR /app
|
||||
COPY Cargo.toml Cargo.lock ./
|
||||
COPY src ./src
|
||||
|
||||
RUN apk add --no-cache musl-dev && cargo build --release
|
||||
|
||||
# Runtime stage
|
||||
FROM alpine:3.21
|
||||
|
||||
WORKDIR /app
|
||||
COPY --from=builder /app/target/release/zone-driver-bot /app/zone-driver-bot
|
||||
|
||||
ENV BOT_PORT=8082
|
||||
ENV BOT_SECRET=""
|
||||
|
||||
EXPOSE 8082
|
||||
|
||||
CMD ["./zone-driver-bot"]
|
||||
157
bots/zone-driver/src/game.rs
Normal file
157
bots/zone-driver/src/game.rs
Normal file
|
|
@ -0,0 +1,157 @@
|
|||
//! Game state types for AI Code Battle protocol.
|
||||
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
/// Position on the grid
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Serialize, Deserialize)]
|
||||
pub struct Position {
|
||||
pub row: i32,
|
||||
pub col: i32,
|
||||
}
|
||||
|
||||
/// Game configuration
|
||||
#[derive(Debug, Clone, Deserialize)]
|
||||
pub struct GameConfig {
|
||||
pub rows: u32,
|
||||
pub cols: u32,
|
||||
pub max_turns: u32,
|
||||
pub vision_radius2: u32,
|
||||
pub attack_radius2: u32,
|
||||
pub spawn_cost: u32,
|
||||
pub energy_interval: u32,
|
||||
}
|
||||
|
||||
/// Player info
|
||||
#[derive(Debug, Clone, Deserialize)]
|
||||
pub struct PlayerInfo {
|
||||
pub id: u32,
|
||||
pub energy: u32,
|
||||
pub score: u32,
|
||||
}
|
||||
|
||||
/// Visible bot
|
||||
#[derive(Debug, Clone, Deserialize)]
|
||||
pub struct VisibleBot {
|
||||
pub position: Position,
|
||||
pub owner: u32,
|
||||
}
|
||||
|
||||
/// Visible core
|
||||
#[derive(Debug, Clone, Deserialize)]
|
||||
pub struct VisibleCore {
|
||||
pub position: Position,
|
||||
pub owner: u32,
|
||||
pub active: bool,
|
||||
}
|
||||
|
||||
/// Zone bounds (shrinking storm)
|
||||
#[derive(Debug, Clone, Deserialize)]
|
||||
pub struct ZoneBounds {
|
||||
pub center: Position,
|
||||
pub radius: u32,
|
||||
pub active: bool,
|
||||
}
|
||||
|
||||
/// Fog-filtered game state visible to this bot
|
||||
#[derive(Debug, Clone, Deserialize)]
|
||||
pub struct GameState {
|
||||
pub match_id: String,
|
||||
pub turn: u32,
|
||||
pub config: GameConfig,
|
||||
pub you: PlayerInfo,
|
||||
#[serde(default)]
|
||||
pub bots: Vec<VisibleBot>,
|
||||
#[serde(default)]
|
||||
pub energy: Vec<Position>,
|
||||
#[serde(default)]
|
||||
pub cores: Vec<VisibleCore>,
|
||||
#[serde(default)]
|
||||
pub walls: Vec<Position>,
|
||||
#[serde(default)]
|
||||
pub dead: Vec<VisibleBot>,
|
||||
#[serde(default)]
|
||||
pub zone: Option<ZoneBounds>,
|
||||
}
|
||||
|
||||
/// Movement direction
|
||||
#[derive(Debug, Clone, Copy, Serialize)]
|
||||
pub enum Direction {
|
||||
#[serde(rename = "N")]
|
||||
N,
|
||||
#[serde(rename = "E")]
|
||||
E,
|
||||
#[serde(rename = "S")]
|
||||
S,
|
||||
#[serde(rename = "W")]
|
||||
W,
|
||||
}
|
||||
|
||||
/// A single move command
|
||||
#[derive(Debug, Clone, Serialize)]
|
||||
pub struct Move {
|
||||
pub position: Position,
|
||||
pub direction: Direction,
|
||||
}
|
||||
|
||||
/// Response containing moves
|
||||
#[derive(Debug, Clone, Serialize)]
|
||||
pub struct MoveResponse {
|
||||
pub moves: Vec<Move>,
|
||||
}
|
||||
|
||||
impl Direction {
|
||||
/// All directions in order: N, E, S, W
|
||||
pub fn all() -> [Direction; 4] {
|
||||
[Direction::N, Direction::E, Direction::S, Direction::W]
|
||||
}
|
||||
}
|
||||
|
||||
impl Position {
|
||||
/// Move in a direction, wrapping around the toroidal grid
|
||||
pub fn move_toward(&self, dir: Direction, rows: i32, cols: i32) -> Position {
|
||||
match dir {
|
||||
Direction::N => Position {
|
||||
row: (self.row - 1 + rows) % rows,
|
||||
col: self.col,
|
||||
},
|
||||
Direction::E => Position {
|
||||
row: self.row,
|
||||
col: (self.col + 1) % cols,
|
||||
},
|
||||
Direction::S => Position {
|
||||
row: (self.row + 1) % rows,
|
||||
col: self.col,
|
||||
},
|
||||
Direction::W => Position {
|
||||
row: self.row,
|
||||
col: (self.col - 1 + cols) % cols,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
/// Calculate squared distance with toroidal wrapping
|
||||
pub fn distance2(&self, other: &Position, rows: i32, cols: i32) -> u32 {
|
||||
let dr = (self.row - other.row).abs();
|
||||
let dc = (self.col - other.col).abs();
|
||||
let dr = dr.min(rows - dr);
|
||||
let dc = dc.min(cols - dc);
|
||||
(dr * dr + dc * dc) as u32
|
||||
}
|
||||
|
||||
/// Get all 8 neighbors (including diagonals) with toroidal wrapping
|
||||
pub fn neighbors(&self, rows: i32, cols: i32) -> Vec<Position> {
|
||||
let mut neighbors = Vec::with_capacity(8);
|
||||
for dr in -1..=1 {
|
||||
for dc in -1..=1 {
|
||||
if dr == 0 && dc == 0 {
|
||||
continue;
|
||||
}
|
||||
neighbors.push(Position {
|
||||
row: (self.row + dr + rows) % rows,
|
||||
col: (self.col + dc + cols) % cols,
|
||||
});
|
||||
}
|
||||
}
|
||||
neighbors
|
||||
}
|
||||
}
|
||||
171
bots/zone-driver/src/main.rs
Normal file
171
bots/zone-driver/src/main.rs
Normal file
|
|
@ -0,0 +1,171 @@
|
|||
//! ZoneDriverBot - Weaponize the shrinking zone to force enemy eliminations.
|
||||
//!
|
||||
//! This bot turns the zone from a map feature into an active weapon:
|
||||
//! - Computes zone boundary and identifies the "kill band"
|
||||
//! - Positions units to block enemy escape routes inward
|
||||
//! - Herds enemies toward zone edge for passive eliminations
|
||||
//! - Prioritizes survival when own bots are near zone boundary
|
||||
|
||||
mod game;
|
||||
mod strategy;
|
||||
|
||||
use axum::{
|
||||
extract::State,
|
||||
http::{HeaderMap, HeaderValue, StatusCode},
|
||||
response::IntoResponse,
|
||||
routing::{get, post},
|
||||
Json, Router,
|
||||
};
|
||||
use game::{GameState, Move, MoveResponse};
|
||||
use hmac::{Hmac, Mac};
|
||||
use sha2::{Digest, Sha256};
|
||||
use std::env;
|
||||
use std::sync::Arc;
|
||||
use strategy::ZoneDriverStrategy;
|
||||
use tokio::sync::Mutex;
|
||||
use tracing::{info, Level};
|
||||
use tracing_subscriber::FmtSubscriber;
|
||||
|
||||
type HmacSha256 = Hmac<Sha256>;
|
||||
|
||||
/// Bot server state
|
||||
struct BotState {
|
||||
secret: String,
|
||||
strategy: ZoneDriverStrategy,
|
||||
}
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
// Initialize logging
|
||||
let subscriber = FmtSubscriber::builder()
|
||||
.with_max_level(Level::INFO)
|
||||
.finish();
|
||||
tracing::subscriber::set_global_default(subscriber).expect("Failed to set subscriber");
|
||||
|
||||
let port = env::var("BOT_PORT").unwrap_or_else(|_| "8082".to_string());
|
||||
let secret = env::var("BOT_SECRET").expect("BOT_SECRET environment variable is required");
|
||||
|
||||
let state = Arc::new(Mutex::new(BotState {
|
||||
secret,
|
||||
strategy: ZoneDriverStrategy::new(),
|
||||
}));
|
||||
|
||||
let app = Router::new()
|
||||
.route("/turn", post(handle_turn))
|
||||
.route("/health", get(handle_health))
|
||||
.with_state(state);
|
||||
|
||||
let addr = format!("0.0.0.0:{}", port);
|
||||
info!("ZoneDriverBot starting on {}", addr);
|
||||
|
||||
let listener = tokio::net::TcpListener::bind(&addr).await.unwrap();
|
||||
axum::serve(listener, app).await.unwrap();
|
||||
}
|
||||
|
||||
/// Handle turn requests from the game engine
|
||||
async fn handle_turn(
|
||||
State(state): State<Arc<Mutex<BotState>>>,
|
||||
headers: HeaderMap,
|
||||
body: String,
|
||||
) -> Result<impl IntoResponse, StatusCode> {
|
||||
// Extract auth headers
|
||||
let match_id = headers
|
||||
.get("X-ACB-Match-Id")
|
||||
.and_then(|v| v.to_str().ok())
|
||||
.ok_or(StatusCode::UNAUTHORIZED)?;
|
||||
|
||||
let turn_str = headers
|
||||
.get("X-ACB-Turn")
|
||||
.and_then(|v| v.to_str().ok())
|
||||
.ok_or(StatusCode::UNAUTHORIZED)?;
|
||||
|
||||
let timestamp = headers
|
||||
.get("X-ACB-Timestamp")
|
||||
.and_then(|v| v.to_str().ok())
|
||||
.ok_or(StatusCode::UNAUTHORIZED)?;
|
||||
|
||||
let signature = headers
|
||||
.get("X-ACB-Signature")
|
||||
.and_then(|v| v.to_str().ok())
|
||||
.ok_or(StatusCode::UNAUTHORIZED)?;
|
||||
|
||||
// Verify signature
|
||||
let mut state = state.lock().await;
|
||||
if !verify_signature(&state.secret, match_id, turn_str, timestamp, &body, signature) {
|
||||
return Err(StatusCode::UNAUTHORIZED);
|
||||
}
|
||||
|
||||
// Parse game state
|
||||
let game_state: GameState = serde_json::from_str(&body).map_err(|_| StatusCode::BAD_REQUEST)?;
|
||||
|
||||
// Compute moves
|
||||
let moves = state.strategy.compute_moves(&game_state);
|
||||
let turn: u32 = turn_str.parse().unwrap_or(0);
|
||||
|
||||
info!("Turn {}: {} moves computed", turn, moves.len());
|
||||
|
||||
// Build response
|
||||
let response = MoveResponse { moves };
|
||||
|
||||
// Sign response
|
||||
let response_body = serde_json::to_string(&response).unwrap();
|
||||
let response_sig = sign_response(&state.secret, match_id, turn, &response_body);
|
||||
|
||||
let mut resp_headers = HeaderMap::new();
|
||||
resp_headers.insert("X-ACB-Signature", HeaderValue::from_str(&response_sig).unwrap());
|
||||
|
||||
Ok((resp_headers, Json(response)))
|
||||
}
|
||||
|
||||
/// Handle health check requests
|
||||
async fn handle_health() -> &'static str {
|
||||
"OK"
|
||||
}
|
||||
|
||||
/// Verify HMAC signature of incoming request
|
||||
fn verify_signature(
|
||||
secret: &str,
|
||||
match_id: &str,
|
||||
turn: &str,
|
||||
timestamp: &str,
|
||||
body: &str,
|
||||
signature: &str,
|
||||
) -> bool {
|
||||
let body_hash = sha2::Sha256::digest(body.as_bytes());
|
||||
let body_hash_hex = hex::encode(body_hash);
|
||||
|
||||
let signing_string = format!("{}.{}.{}", match_id, turn, body_hash_hex);
|
||||
|
||||
let mut mac = match HmacSha256::new_from_slice(secret.as_bytes()) {
|
||||
Ok(m) => m,
|
||||
Err(_) => return false,
|
||||
};
|
||||
mac.update(signing_string.as_bytes());
|
||||
let expected = hex::encode(mac.finalize().into_bytes());
|
||||
|
||||
hmac_equal(signature, &expected)
|
||||
}
|
||||
|
||||
/// Sign response body
|
||||
fn sign_response(secret: &str, match_id: &str, turn: u32, body: &str) -> String {
|
||||
let body_hash = sha2::Sha256::digest(body.as_bytes());
|
||||
let body_hash_hex = hex::encode(body_hash);
|
||||
|
||||
let signing_string = format!("{}.{}.{}", match_id, turn, body_hash_hex);
|
||||
|
||||
let mut mac = HmacSha256::new_from_slice(secret.as_bytes()).unwrap();
|
||||
mac.update(signing_string.as_bytes());
|
||||
hex::encode(mac.finalize().into_bytes())
|
||||
}
|
||||
|
||||
/// Constant-time string comparison
|
||||
fn hmac_equal(a: &str, b: &str) -> bool {
|
||||
if a.len() != b.len() {
|
||||
return false;
|
||||
}
|
||||
a.as_bytes()
|
||||
.iter()
|
||||
.zip(b.as_bytes().iter())
|
||||
.fold(0, |acc, (x, y)| acc | (x ^ y))
|
||||
== 0
|
||||
}
|
||||
382
bots/zone-driver/src/strategy.rs
Normal file
382
bots/zone-driver/src/strategy.rs
Normal file
|
|
@ -0,0 +1,382 @@
|
|||
//! ZoneDriverStrategy - Weaponize the shrinking zone to force enemy eliminations.
|
||||
//!
|
||||
//! This bot exploits the shrinking zone as its primary weapon:
|
||||
//! 1. Computes the "kill band" - tiles where enemies will die next turn
|
||||
//! 2. Positions units to block escape routes inward
|
||||
//! 3. Herds enemies toward zone edge for passive eliminations
|
||||
//! 4. Prioritizes survival for own bots near zone boundary
|
||||
|
||||
use crate::game::{Direction, GameConfig, GameState, Move, Position, VisibleBot};
|
||||
use std::collections::{HashSet, VecDeque};
|
||||
|
||||
/// ZoneDriver implements zone-aware herding strategy
|
||||
pub struct ZoneDriverStrategy {
|
||||
/// Track which bots we've assigned this turn
|
||||
assigned_bots: HashSet<Position>,
|
||||
}
|
||||
|
||||
impl ZoneDriverStrategy {
|
||||
pub fn new() -> Self {
|
||||
Self {
|
||||
assigned_bots: HashSet::new(),
|
||||
}
|
||||
}
|
||||
|
||||
/// Compute moves for all owned bots
|
||||
pub fn compute_moves(&mut self, state: &GameState) -> Vec<Move> {
|
||||
let my_id = state.you.id;
|
||||
let config = &state.config;
|
||||
|
||||
// Reset assigned bots for this turn
|
||||
self.assigned_bots.clear();
|
||||
|
||||
// Separate my bots from enemies
|
||||
let (my_bots, enemy_bots): (Vec<_>, Vec<_>) =
|
||||
state.bots.iter().partition(|b| b.owner == my_id);
|
||||
|
||||
if my_bots.is_empty() {
|
||||
return vec![];
|
||||
}
|
||||
|
||||
// Build position lookups
|
||||
let enemy_positions: HashSet<Position> =
|
||||
enemy_bots.iter().map(|b| b.position).collect();
|
||||
let walls: HashSet<Position> = state.walls.iter().copied().collect();
|
||||
|
||||
// If no active zone, fall back to defensive positioning
|
||||
let zone = match &state.zone {
|
||||
Some(z) if z.active => z,
|
||||
_ => {
|
||||
// No active zone - play conservatively: spread out and defend
|
||||
return self.defensive_fallback(&my_bots, &enemy_positions, &walls, config);
|
||||
}
|
||||
};
|
||||
|
||||
let mut moves = Vec::with_capacity(my_bots.len());
|
||||
|
||||
// PRIORITY 1: Save own bots that are outside or dangerously close to zone edge
|
||||
for bot in &my_bots {
|
||||
let dist_to_zone = self.distance_to_zone_edge(bot.position, zone, config);
|
||||
if dist_to_zone <= 0 {
|
||||
// Bot is outside or on zone edge - immediate retreat inward
|
||||
if let Some(mv) = self.retreat_to_zone(bot.position, zone, &walls, config) {
|
||||
moves.push(mv);
|
||||
self.assigned_bots.insert(bot.position);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// PRIORITY 2: Block enemy escape routes from kill band
|
||||
// The kill band is the ring of tiles just inside the zone edge
|
||||
let kill_band_inner = (zone.radius.saturating_sub(2) as i32).max(0);
|
||||
let kill_band_outer = zone.radius as i32;
|
||||
|
||||
for bot in &my_bots {
|
||||
if self.assigned_bots.contains(&bot.position) {
|
||||
continue; // Already assigned to save itself
|
||||
}
|
||||
|
||||
// Find nearest enemy in kill band
|
||||
if let Some(target) = self.find_enemy_in_kill_band(
|
||||
bot.position,
|
||||
&enemy_bots,
|
||||
zone,
|
||||
kill_band_inner,
|
||||
kill_band_outer,
|
||||
config,
|
||||
) {
|
||||
// Move to block escape routes (position adjacent to enemy on the inward side)
|
||||
if let Some(mv) = self.block_escape_route(bot.position, target, zone, &walls, config) {
|
||||
moves.push(mv);
|
||||
self.assigned_bots.insert(bot.position);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// PRIORITY 3: Form sweeping line to push remaining enemies toward zone
|
||||
for bot in &my_bots {
|
||||
if self.assigned_bots.contains(&bot.position) {
|
||||
continue;
|
||||
}
|
||||
|
||||
// Advance toward nearest enemy or zone edge to apply pressure
|
||||
if let Some(mv) = self.advance_pressure(bot.position, &enemy_positions, zone, &walls, config) {
|
||||
moves.push(mv);
|
||||
self.assigned_bots.insert(bot.position);
|
||||
}
|
||||
}
|
||||
|
||||
// Any remaining bots hold position
|
||||
for bot in &my_bots {
|
||||
if !self.assigned_bots.contains(&bot.position) {
|
||||
moves.push(Move {
|
||||
position: bot.position,
|
||||
direction: Direction::N, // Will be overridden to "stay"
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
moves
|
||||
}
|
||||
|
||||
/// Calculate distance from position to zone edge (positive = inside, 0 = on edge, negative = outside)
|
||||
fn distance_to_zone_edge(&self, pos: Position, zone: &crate::game::ZoneBounds, config: &GameConfig) -> i32 {
|
||||
let dist_to_center = pos.distance2(&zone.center, config.rows as i32, config.cols as i32) as f64;
|
||||
let dist_from_center = dist_to_center.sqrt();
|
||||
let zone_radius = zone.radius as f64;
|
||||
(zone_radius - dist_from_center) as i32
|
||||
}
|
||||
|
||||
/// Retreat toward zone center when outside or near edge
|
||||
fn retreat_to_zone(
|
||||
&self,
|
||||
pos: Position,
|
||||
zone: &crate::game::ZoneBounds,
|
||||
walls: &HashSet<Position>,
|
||||
config: &GameConfig,
|
||||
) -> Option<Move> {
|
||||
let rows = config.rows as i32;
|
||||
let cols = config.cols as i32;
|
||||
|
||||
// Find direction that moves us toward zone center
|
||||
let mut best_dir = None;
|
||||
let mut best_reduction = i32::MIN;
|
||||
|
||||
for dir in Direction::all() {
|
||||
let next = pos.move_toward(dir, rows, cols);
|
||||
|
||||
if walls.contains(&next) {
|
||||
continue;
|
||||
}
|
||||
|
||||
let current_dist = pos.distance2(&zone.center, rows, cols);
|
||||
let new_dist = next.distance2(&zone.center, rows, cols);
|
||||
|
||||
if new_dist < current_dist {
|
||||
let reduction = (current_dist - new_dist) as i32;
|
||||
if reduction > best_reduction {
|
||||
best_reduction = reduction;
|
||||
best_dir = Some(dir);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
best_dir.map(|dir| Move {
|
||||
position: pos,
|
||||
direction: dir,
|
||||
})
|
||||
}
|
||||
|
||||
/// Find enemy in kill band (danger zone near zone edge)
|
||||
fn find_enemy_in_kill_band(
|
||||
&self,
|
||||
my_pos: Position,
|
||||
enemy_bots: &[&VisibleBot],
|
||||
zone: &crate::game::ZoneBounds,
|
||||
inner: i32,
|
||||
outer: i32,
|
||||
config: &GameConfig,
|
||||
) -> Option<Position> {
|
||||
let rows = config.rows as i32;
|
||||
let cols = config.cols as i32;
|
||||
|
||||
enemy_bots
|
||||
.iter()
|
||||
.filter(|bot| {
|
||||
let dist = bot.position.distance2(&zone.center, rows, cols) as f64;
|
||||
let dist_from_center = dist.sqrt();
|
||||
dist_from_center >= (inner as f64) && dist_from_center <= (outer as f64)
|
||||
})
|
||||
.min_by_key(|bot| my_pos.distance2(&bot.position, rows, cols))
|
||||
.map(|bot| bot.position)
|
||||
}
|
||||
|
||||
/// Block escape route by positioning between enemy and zone center
|
||||
fn block_escape_route(
|
||||
&self,
|
||||
my_pos: Position,
|
||||
enemy_pos: Position,
|
||||
zone: &crate::game::ZoneBounds,
|
||||
walls: &HashSet<Position>,
|
||||
config: &GameConfig,
|
||||
) -> Option<Move> {
|
||||
let rows = config.rows as i32;
|
||||
let cols = config.cols as i32;
|
||||
|
||||
// Calculate ideal blocking position: between enemy and zone center
|
||||
// This blocks the enemy's escape route inward
|
||||
let dr = zone.center.row as f64 - enemy_pos.row as f64;
|
||||
let dc = zone.center.col as f64 - enemy_pos.col as f64;
|
||||
let len = (dr * dr + dc * dc).sqrt();
|
||||
|
||||
if len < 0.1 {
|
||||
return None; // Already at center
|
||||
}
|
||||
|
||||
// Unit vector toward center
|
||||
let ur = dr / len;
|
||||
let uc = dc / len;
|
||||
|
||||
// Ideal blocking position is one step toward center from enemy
|
||||
let ideal_row = enemy_pos.row as f64 + ur;
|
||||
let ideal_col = enemy_pos.col as f64 + uc;
|
||||
|
||||
// Find best move toward ideal position
|
||||
let mut best_dir = None;
|
||||
let mut best_dist = f64::MAX;
|
||||
|
||||
for dir in Direction::all() {
|
||||
let next = my_pos.move_toward(dir, rows, cols);
|
||||
|
||||
if walls.contains(&next) {
|
||||
continue;
|
||||
}
|
||||
|
||||
let dr = ideal_row - next.row as f64;
|
||||
let dc = ideal_col - next.col as f64;
|
||||
let dist = (dr * dr + dc * dc).sqrt();
|
||||
|
||||
if dist < best_dist {
|
||||
best_dist = dist;
|
||||
best_dir = Some(dir);
|
||||
}
|
||||
}
|
||||
|
||||
best_dir.map(|dir| Move {
|
||||
position: my_pos,
|
||||
direction: dir,
|
||||
})
|
||||
}
|
||||
|
||||
/// Apply pressure by advancing toward enemies or zone edge
|
||||
fn advance_pressure(
|
||||
&self,
|
||||
pos: Position,
|
||||
enemy_positions: &HashSet<Position>,
|
||||
zone: &crate::game::ZoneBounds,
|
||||
walls: &HashSet<Position>,
|
||||
config: &GameConfig,
|
||||
) -> Option<Move> {
|
||||
let rows = config.rows as i32;
|
||||
let cols = config.cols as i32;
|
||||
|
||||
// If enemies visible, advance toward nearest one
|
||||
if let Some(&nearest_enemy) = enemy_positions
|
||||
.iter()
|
||||
.min_by_key(|e| pos.distance2(e, rows, cols))
|
||||
{
|
||||
let mut best_dir = None;
|
||||
let mut best_dist = u32::MAX;
|
||||
|
||||
for dir in Direction::all() {
|
||||
let next = pos.move_toward(dir, rows, cols);
|
||||
|
||||
if walls.contains(&next) {
|
||||
continue;
|
||||
}
|
||||
|
||||
let dist = next.distance2(&nearest_enemy, rows, cols);
|
||||
if dist < best_dist {
|
||||
best_dist = dist;
|
||||
best_dir = Some(dir);
|
||||
}
|
||||
}
|
||||
|
||||
if let Some(dir) = best_dir {
|
||||
return Some(Move {
|
||||
position: pos,
|
||||
direction: dir,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
// No enemies visible - move toward zone edge to apply pressure to anything hiding there
|
||||
let target_radius = (zone.radius.saturating_sub(3) as i32).max(0);
|
||||
let target_dist2 = (target_radius * target_radius) as u32;
|
||||
|
||||
let current_dist2 = pos.distance2(&zone.center, rows, cols);
|
||||
|
||||
if current_dist2 < target_dist2 {
|
||||
// We're too close to center - move outward
|
||||
let mut best_dir = None;
|
||||
let mut best_increase = i32::MIN;
|
||||
|
||||
for dir in Direction::all() {
|
||||
let next = pos.move_toward(dir, rows, cols);
|
||||
|
||||
if walls.contains(&next) {
|
||||
continue;
|
||||
}
|
||||
|
||||
let new_dist2 = next.distance2(&zone.center, rows, cols);
|
||||
let increase = (new_dist2 as i32 - current_dist2 as i32);
|
||||
|
||||
if increase > best_increase {
|
||||
best_increase = increase;
|
||||
best_dir = Some(dir);
|
||||
}
|
||||
}
|
||||
|
||||
best_dir.map(|dir| Move {
|
||||
position: pos,
|
||||
direction: dir,
|
||||
})
|
||||
} else {
|
||||
// Hold position near optimal pressure point
|
||||
None
|
||||
}
|
||||
}
|
||||
|
||||
/// Fallback strategy when no zone is active
|
||||
fn defensive_fallback(
|
||||
&self,
|
||||
my_bots: &[&VisibleBot],
|
||||
enemy_positions: &HashSet<Position>,
|
||||
walls: &HashSet<Position>,
|
||||
config: &GameConfig,
|
||||
) -> Vec<Move> {
|
||||
let rows = config.rows as i32;
|
||||
let cols = config.cols as i32;
|
||||
let mut moves = Vec::new();
|
||||
|
||||
// Spread out and defend - move toward enemies if visible, otherwise spread
|
||||
for bot in my_bots {
|
||||
if let Some(&nearest_enemy) = enemy_positions
|
||||
.iter()
|
||||
.min_by_key(|e| bot.position.distance2(e, rows, cols))
|
||||
{
|
||||
let mut best_dir = None;
|
||||
let mut best_dist = u32::MAX;
|
||||
|
||||
for dir in Direction::all() {
|
||||
let next = bot.position.move_toward(dir, rows, cols);
|
||||
|
||||
if walls.contains(&next) || enemy_positions.contains(&next) {
|
||||
continue;
|
||||
}
|
||||
|
||||
let dist = next.distance2(&nearest_enemy, rows, cols);
|
||||
if dist < best_dist {
|
||||
best_dist = dist;
|
||||
best_dir = Some(dir);
|
||||
}
|
||||
}
|
||||
|
||||
if let Some(dir) = best_dir {
|
||||
moves.push(Move {
|
||||
position: bot.position,
|
||||
direction: dir,
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
moves
|
||||
}
|
||||
}
|
||||
|
||||
impl Default for ZoneDriverStrategy {
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
}
|
||||
1
bots/zone-driver/target/.rustc_info.json
Normal file
1
bots/zone-driver/target/.rustc_info.json
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"rustc_fingerprint":13911145987682866224,"outputs":{"15056517937691629642":{"success":true,"status":"","code":0,"stdout":"___\nlib___.rlib\nlib___.so\nlib___.so\nlib___.a\nlib___.so\n/home/coding/.rustup/toolchains/stable-x86_64-unknown-linux-gnu\noff\npacked\nunpacked\n___\ndebug_assertions\npanic=\"unwind\"\nproc_macro\ntarget_abi=\"\"\ntarget_arch=\"x86_64\"\ntarget_endian=\"little\"\ntarget_env=\"gnu\"\ntarget_family=\"unix\"\ntarget_feature=\"fxsr\"\ntarget_feature=\"sse\"\ntarget_feature=\"sse2\"\ntarget_has_atomic=\"16\"\ntarget_has_atomic=\"32\"\ntarget_has_atomic=\"64\"\ntarget_has_atomic=\"8\"\ntarget_has_atomic=\"ptr\"\ntarget_os=\"linux\"\ntarget_pointer_width=\"64\"\ntarget_vendor=\"unknown\"\nunix\n","stderr":""},"2985601478099382736":{"success":true,"status":"","code":0,"stdout":"rustc 1.96.0 (ac68faa20 2026-05-25)\nbinary: rustc\ncommit-hash: ac68faa20c58cbccd01ee7208bf3b6e93a7d7f96\ncommit-date: 2026-05-25\nhost: x86_64-unknown-linux-gnu\nrelease: 1.96.0\nLLVM version: 22.1.2\n","stderr":""}},"successes":{}}
|
||||
3
bots/zone-driver/target/CACHEDIR.TAG
Normal file
3
bots/zone-driver/target/CACHEDIR.TAG
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
Signature: 8a477f597d28d172789f06886806bc55
|
||||
# This file is a cache directory tag created by cargo.
|
||||
# For information about cache directory tags see https://bford.info/cachedir/
|
||||
0
bots/zone-driver/target/release/.cargo-artifact-lock
Normal file
0
bots/zone-driver/target/release/.cargo-artifact-lock
Normal file
0
bots/zone-driver/target/release/.cargo-build-lock
Normal file
0
bots/zone-driver/target/release/.cargo-build-lock
Normal file
0
bots/zone-driver/target/release/.cargo-lock
Normal file
0
bots/zone-driver/target/release/.cargo-lock
Normal file
Binary file not shown.
|
|
@ -0,0 +1 @@
|
|||
This file has an mtime of when this was started.
|
||||
|
|
@ -0,0 +1 @@
|
|||
1d6151cd215a4134
|
||||
|
|
@ -0,0 +1 @@
|
|||
{"rustc":16696009966390864400,"features":"[]","declared_features":"[\"portable-atomic\"]","target":14411119108718288063,"profile":7684853828979786049,"path":17026116168268035426,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"release/.fingerprint/atomic-waker-3e840129c99e1cd4/dep-lib-atomic_waker","checksum":false}}],"rustflags":["-C","codegen-units=1"],"config":8247474407144887393,"compile_kind":0}
|
||||
Binary file not shown.
|
|
@ -0,0 +1 @@
|
|||
This file has an mtime of when this was started.
|
||||
|
|
@ -0,0 +1 @@
|
|||
5955ecb22f55059b
|
||||
|
|
@ -0,0 +1 @@
|
|||
{"rustc":16696009966390864400,"features":"[\"default\", \"form\", \"http1\", \"json\", \"matched-path\", \"original-uri\", \"query\", \"tokio\", \"tower-log\", \"tracing\"]","declared_features":"[\"__private\", \"__private_docs\", \"default\", \"form\", \"http1\", \"http2\", \"json\", \"macros\", \"matched-path\", \"multipart\", \"original-uri\", \"query\", \"tokio\", \"tower-log\", \"tracing\", \"ws\"]","target":13920321295547257648,"profile":5133317078136444637,"path":14904846599300409763,"deps":[[784494742817713399,"tower_service",false,3796749615033748744],[1074175012458081222,"form_urlencoded",false,7869422285015823339],[2251399859588827949,"pin_project_lite",false,16054412939976265009],[2517136641825875337,"sync_wrapper",false,5342106122770094935],[3035134586790830808,"hyper",false,12732426529853072176],[3632162862999675140,"tower",false,12015991742742291102],[3870702314125662939,"bytes",false,5725825469977916289],[5532778797167691009,"itoa",false,5436720793200777583],[5898568623609459682,"futures_util",false,3561834966504000545],[6803352382179706244,"percent_encoding",false,3046301027366170254],[7712452662827335977,"tower_layer",false,8472288114646005709],[8502962237732707896,"axum_core",false,13530944574280483482],[8578586876803397814,"serde_json",false,2430676340062480314],[8913795983780778928,"matchit",false,9884439126535321818],[9394460649638301237,"tokio",false,6820336659189584915],[10229185211513642314,"mime",false,13229262886997997598],[11899261697793765154,"serde_core",false,2865551576843499148],[11976082518617474977,"hyper_util",false,3619478701890532131],[14084095096285906100,"http_body",false,12381029116382599584],[14757622794040968908,"tracing",false,14375965860593219377],[14814583949208169760,"serde_path_to_error",false,9835829425542820078],[16542808166767769916,"serde_urlencoded",false,4938533989675599033],[16786944793543832643,"memchr",false,2253146021288229888],[16900715236047033623,"http_body_util",false,6234077051986148207],[17371538545939333701,"http",false,13446183471277979871]],"local":[{"CheckDepInfo":{"dep_info":"release/.fingerprint/axum-6ef5292fa143bebd/dep-lib-axum","checksum":false}}],"rustflags":["-C","codegen-units=1"],"config":8247474407144887393,"compile_kind":0}
|
||||
Binary file not shown.
|
|
@ -0,0 +1 @@
|
|||
This file has an mtime of when this was started.
|
||||
|
|
@ -0,0 +1 @@
|
|||
9ac27c796692c7bb
|
||||
|
|
@ -0,0 +1 @@
|
|||
{"rustc":16696009966390864400,"features":"[\"tracing\"]","declared_features":"[\"__private_docs\", \"tracing\"]","target":2565713999752801252,"profile":16125838479496337243,"path":16084064814270034015,"deps":[[302948626015856208,"futures_core",false,2883957370205442152],[784494742817713399,"tower_service",false,3796749615033748744],[2251399859588827949,"pin_project_lite",false,16054412939976265009],[2517136641825875337,"sync_wrapper",false,5342106122770094935],[3870702314125662939,"bytes",false,5725825469977916289],[7712452662827335977,"tower_layer",false,8472288114646005709],[10229185211513642314,"mime",false,13229262886997997598],[14084095096285906100,"http_body",false,12381029116382599584],[14757622794040968908,"tracing",false,14375965860593219377],[16900715236047033623,"http_body_util",false,6234077051986148207],[17371538545939333701,"http",false,13446183471277979871]],"local":[{"CheckDepInfo":{"dep_info":"release/.fingerprint/axum-core-a7d699d786014acb/dep-lib-axum_core","checksum":false}}],"rustflags":["-C","codegen-units=1"],"config":8247474407144887393,"compile_kind":0}
|
||||
Binary file not shown.
|
|
@ -0,0 +1 @@
|
|||
This file has an mtime of when this was started.
|
||||
|
|
@ -0,0 +1 @@
|
|||
1a38314c4942302b
|
||||
|
|
@ -0,0 +1 @@
|
|||
{"rustc":16696009966390864400,"features":"[]","declared_features":"[]","target":4098124618827574291,"profile":7684853828979786049,"path":17940744091161969163,"deps":[[10520923840501062997,"generic_array",false,13727925111954215924]],"local":[{"CheckDepInfo":{"dep_info":"release/.fingerprint/block-buffer-fa4ea895548432b4/dep-lib-block_buffer","checksum":false}}],"rustflags":["-C","codegen-units=1"],"config":8247474407144887393,"compile_kind":0}
|
||||
Binary file not shown.
|
|
@ -0,0 +1 @@
|
|||
This file has an mtime of when this was started.
|
||||
|
|
@ -0,0 +1 @@
|
|||
81f3ea9fed37764f
|
||||
|
|
@ -0,0 +1 @@
|
|||
{"rustc":16696009966390864400,"features":"[\"default\", \"std\"]","declared_features":"[\"default\", \"extra-platforms\", \"serde\", \"std\"]","target":11402411492164584411,"profile":6539542053066870421,"path":1549388640257901949,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"release/.fingerprint/bytes-a728be6c1df85c2f/dep-lib-bytes","checksum":false}}],"rustflags":["-C","codegen-units=1"],"config":8247474407144887393,"compile_kind":0}
|
||||
Binary file not shown.
|
|
@ -0,0 +1 @@
|
|||
This file has an mtime of when this was started.
|
||||
|
|
@ -0,0 +1 @@
|
|||
58bf25865d7ccadf
|
||||
|
|
@ -0,0 +1 @@
|
|||
{"rustc":16696009966390864400,"features":"[]","declared_features":"[\"core\", \"rustc-dep-of-std\"]","target":13840298032947503755,"profile":7684853828979786049,"path":14141556616321478708,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"release/.fingerprint/cfg-if-4631f97d016447fa/dep-lib-cfg_if","checksum":false}}],"rustflags":["-C","codegen-units=1"],"config":8247474407144887393,"compile_kind":0}
|
||||
Binary file not shown.
|
|
@ -0,0 +1 @@
|
|||
This file has an mtime of when this was started.
|
||||
|
|
@ -0,0 +1 @@
|
|||
095b7f18a701e4f1
|
||||
|
|
@ -0,0 +1 @@
|
|||
{"rustc":16696009966390864400,"features":"[]","declared_features":"[]","target":2330704043955282025,"profile":7684853828979786049,"path":10103180320517581917,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"release/.fingerprint/cpufeatures-ee9a3237ee4186ec/dep-lib-cpufeatures","checksum":false}}],"rustflags":["-C","codegen-units=1"],"config":8247474407144887393,"compile_kind":0}
|
||||
Binary file not shown.
|
|
@ -0,0 +1 @@
|
|||
This file has an mtime of when this was started.
|
||||
|
|
@ -0,0 +1 @@
|
|||
f1ddbc9394eaa753
|
||||
|
|
@ -0,0 +1 @@
|
|||
{"rustc":16696009966390864400,"features":"[\"std\"]","declared_features":"[\"getrandom\", \"rand_core\", \"std\"]","target":12082577455412410174,"profile":7684853828979786049,"path":8305438330929323465,"deps":[[6918147871599447195,"typenum",false,853338915557377453],[10520923840501062997,"generic_array",false,13727925111954215924]],"local":[{"CheckDepInfo":{"dep_info":"release/.fingerprint/crypto-common-ff942dc197f3213a/dep-lib-crypto_common","checksum":false}}],"rustflags":["-C","codegen-units=1"],"config":8247474407144887393,"compile_kind":0}
|
||||
Binary file not shown.
|
|
@ -0,0 +1 @@
|
|||
This file has an mtime of when this was started.
|
||||
|
|
@ -0,0 +1 @@
|
|||
bf49bc7327ee0cbc
|
||||
|
|
@ -0,0 +1 @@
|
|||
{"rustc":16696009966390864400,"features":"[\"alloc\", \"block-buffer\", \"core-api\", \"default\", \"mac\", \"std\", \"subtle\"]","declared_features":"[\"alloc\", \"blobby\", \"block-buffer\", \"const-oid\", \"core-api\", \"default\", \"dev\", \"mac\", \"oid\", \"rand_core\", \"std\", \"subtle\"]","target":7510122432137863311,"profile":7684853828979786049,"path":4165273518167630456,"deps":[[6039282458970808711,"crypto_common",false,6028044550113385969],[10626340395483396037,"block_buffer",false,3112060225091352602],[17003143334332120809,"subtle",false,11520101532905880816]],"local":[{"CheckDepInfo":{"dep_info":"release/.fingerprint/digest-46e6f2df158c872b/dep-lib-digest","checksum":false}}],"rustflags":["-C","codegen-units=1"],"config":8247474407144887393,"compile_kind":0}
|
||||
Binary file not shown.
|
|
@ -0,0 +1 @@
|
|||
This file has an mtime of when this was started.
|
||||
|
|
@ -0,0 +1 @@
|
|||
932579c369bfd667
|
||||
|
|
@ -0,0 +1 @@
|
|||
{"rustc":16696009966390864400,"features":"[\"default\", \"std\"]","declared_features":"[\"default\", \"std\"]","target":17743456753391690785,"profile":14503231333504259226,"path":9144580266493606168,"deps":[[7098700569944897890,"libc",false,14791520182976005120]],"local":[{"CheckDepInfo":{"dep_info":"release/.fingerprint/errno-fdf2de214fe11476/dep-lib-errno","checksum":false}}],"rustflags":["-C","codegen-units=1"],"config":8247474407144887393,"compile_kind":0}
|
||||
Binary file not shown.
|
|
@ -0,0 +1 @@
|
|||
This file has an mtime of when this was started.
|
||||
|
|
@ -0,0 +1 @@
|
|||
eb33e9cddfcd356d
|
||||
|
|
@ -0,0 +1 @@
|
|||
{"rustc":16696009966390864400,"features":"[\"alloc\", \"default\", \"std\"]","declared_features":"[\"alloc\", \"default\", \"std\"]","target":6496257856677244489,"profile":7684853828979786049,"path":7213413549912673117,"deps":[[6803352382179706244,"percent_encoding",false,3046301027366170254]],"local":[{"CheckDepInfo":{"dep_info":"release/.fingerprint/form_urlencoded-fd0361340a380772/dep-lib-form_urlencoded","checksum":false}}],"rustflags":["-C","codegen-units=1"],"config":8247474407144887393,"compile_kind":0}
|
||||
Binary file not shown.
|
|
@ -0,0 +1 @@
|
|||
This file has an mtime of when this was started.
|
||||
|
|
@ -0,0 +1 @@
|
|||
9c4e7515f3136df9
|
||||
|
|
@ -0,0 +1 @@
|
|||
{"rustc":16696009966390864400,"features":"[\"alloc\", \"default\", \"std\"]","declared_features":"[\"alloc\", \"cfg-target-has-atomic\", \"default\", \"futures-sink\", \"sink\", \"std\", \"unstable\"]","target":13634065851578929263,"profile":16646039696191585221,"path":11001189364839492387,"deps":[[302948626015856208,"futures_core",false,2883957370205442152]],"local":[{"CheckDepInfo":{"dep_info":"release/.fingerprint/futures-channel-0a0071bc8cec0e69/dep-lib-futures_channel","checksum":false}}],"rustflags":["-C","codegen-units=1"],"config":8247474407144887393,"compile_kind":0}
|
||||
Binary file not shown.
|
|
@ -0,0 +1 @@
|
|||
This file has an mtime of when this was started.
|
||||
|
|
@ -0,0 +1 @@
|
|||
681077c6f2df0528
|
||||
|
|
@ -0,0 +1 @@
|
|||
{"rustc":16696009966390864400,"features":"[\"alloc\", \"default\", \"std\"]","declared_features":"[\"alloc\", \"cfg-target-has-atomic\", \"default\", \"portable-atomic\", \"std\", \"unstable\"]","target":9453135960607436725,"profile":16646039696191585221,"path":8031175873885471320,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"release/.fingerprint/futures-core-33713f604b49b314/dep-lib-futures_core","checksum":false}}],"rustflags":["-C","codegen-units=1"],"config":8247474407144887393,"compile_kind":0}
|
||||
Binary file not shown.
|
|
@ -0,0 +1 @@
|
|||
This file has an mtime of when this was started.
|
||||
|
|
@ -0,0 +1 @@
|
|||
973786f2b630f273
|
||||
|
|
@ -0,0 +1 @@
|
|||
{"rustc":16696009966390864400,"features":"[\"alloc\"]","declared_features":"[\"alloc\", \"cfg-target-has-atomic\", \"default\", \"std\", \"unstable\"]","target":13518091470260541623,"profile":16646039696191585221,"path":12069802583768895801,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"release/.fingerprint/futures-task-c5829bc136baaaca/dep-lib-futures_task","checksum":false}}],"rustflags":["-C","codegen-units=1"],"config":8247474407144887393,"compile_kind":0}
|
||||
Binary file not shown.
|
|
@ -0,0 +1 @@
|
|||
This file has an mtime of when this was started.
|
||||
|
|
@ -0,0 +1 @@
|
|||
214c09d7072e6e31
|
||||
|
|
@ -0,0 +1 @@
|
|||
{"rustc":16696009966390864400,"features":"[\"alloc\", \"slab\"]","declared_features":"[\"alloc\", \"async-await\", \"async-await-macro\", \"bilock\", \"cfg-target-has-atomic\", \"channel\", \"compat\", \"default\", \"futures-channel\", \"futures-io\", \"futures-macro\", \"futures-sink\", \"futures_01\", \"io\", \"io-compat\", \"libc\", \"memchr\", \"portable-atomic\", \"sink\", \"slab\", \"spin\", \"std\", \"tokio-io\", \"unstable\", \"write-all-vectored\"]","target":1788798584831431502,"profile":16646039696191585221,"path":2865913925567765956,"deps":[[302948626015856208,"futures_core",false,2883957370205442152],[2251399859588827949,"pin_project_lite",false,16054412939976265009],[12256881686772805731,"futures_task",false,8354793821036754839],[14895711841936801505,"slab",false,392388977116135082]],"local":[{"CheckDepInfo":{"dep_info":"release/.fingerprint/futures-util-fe2f4895c783ade7/dep-lib-futures_util","checksum":false}}],"rustflags":["-C","codegen-units=1"],"config":8247474407144887393,"compile_kind":0}
|
||||
|
|
@ -0,0 +1 @@
|
|||
8cd5592fc6334235
|
||||
|
|
@ -0,0 +1 @@
|
|||
{"rustc":16696009966390864400,"features":"","declared_features":"","target":0,"profile":0,"path":0,"deps":[[10520923840501062997,"build_script_build",false,17538850287824025184]],"local":[{"Precalculated":"0.14.7"}],"rustflags":["-C","codegen-units=1"],"config":0,"compile_kind":0}
|
||||
|
|
@ -0,0 +1 @@
|
|||
60368276698366f3
|
||||
|
|
@ -0,0 +1 @@
|
|||
{"rustc":16696009966390864400,"features":"[\"more_lengths\"]","declared_features":"[\"more_lengths\", \"serde\", \"zeroize\"]","target":12318548087768197662,"profile":9773466895796779991,"path":18071938149004386390,"deps":[[5398981501050481332,"version_check",false,12039054859964015669]],"local":[{"CheckDepInfo":{"dep_info":"release/.fingerprint/generic-array-5e94b392116a9c99/dep-build-script-build-script-build","checksum":false}}],"rustflags":["-C","codegen-units=1"],"config":8247474407144887393,"compile_kind":0}
|
||||
Binary file not shown.
|
|
@ -0,0 +1 @@
|
|||
This file has an mtime of when this was started.
|
||||
Binary file not shown.
|
|
@ -0,0 +1 @@
|
|||
This file has an mtime of when this was started.
|
||||
|
|
@ -0,0 +1 @@
|
|||
f41332d9276383be
|
||||
|
|
@ -0,0 +1 @@
|
|||
{"rustc":16696009966390864400,"features":"[\"more_lengths\"]","declared_features":"[\"more_lengths\", \"serde\", \"zeroize\"]","target":13084005262763373425,"profile":7684853828979786049,"path":3918572384280450049,"deps":[[6918147871599447195,"typenum",false,853338915557377453],[10520923840501062997,"build_script_build",false,3837686758764041612]],"local":[{"CheckDepInfo":{"dep_info":"release/.fingerprint/generic-array-b2de140ccb8cea61/dep-lib-generic_array","checksum":false}}],"rustflags":["-C","codegen-units=1"],"config":8247474407144887393,"compile_kind":0}
|
||||
Binary file not shown.
|
|
@ -0,0 +1 @@
|
|||
This file has an mtime of when this was started.
|
||||
|
|
@ -0,0 +1 @@
|
|||
148c6db0012ddcfe
|
||||
|
|
@ -0,0 +1 @@
|
|||
{"rustc":16696009966390864400,"features":"[\"alloc\", \"default\", \"std\"]","declared_features":"[\"alloc\", \"default\", \"serde\", \"std\"]","target":4242469766639956503,"profile":7684853828979786049,"path":8736155654555109109,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"release/.fingerprint/hex-71510ca726dde0e0/dep-lib-hex","checksum":false}}],"rustflags":["-C","codegen-units=1"],"config":8247474407144887393,"compile_kind":0}
|
||||
Binary file not shown.
|
|
@ -0,0 +1 @@
|
|||
This file has an mtime of when this was started.
|
||||
|
|
@ -0,0 +1 @@
|
|||
3cdf88a60a17d81b
|
||||
|
|
@ -0,0 +1 @@
|
|||
{"rustc":16696009966390864400,"features":"[]","declared_features":"[\"reset\", \"std\"]","target":12991177224612424488,"profile":7684853828979786049,"path":6981668586553414187,"deps":[[17475753849556516473,"digest",false,13550467232063834559]],"local":[{"CheckDepInfo":{"dep_info":"release/.fingerprint/hmac-ff18d80ecae10eba/dep-lib-hmac","checksum":false}}],"rustflags":["-C","codegen-units=1"],"config":8247474407144887393,"compile_kind":0}
|
||||
Binary file not shown.
|
|
@ -0,0 +1 @@
|
|||
This file has an mtime of when this was started.
|
||||
|
|
@ -0,0 +1 @@
|
|||
a0d9c0436240d2ab
|
||||
|
|
@ -0,0 +1 @@
|
|||
{"rustc":16696009966390864400,"features":"[]","declared_features":"[]","target":16652076073832724591,"profile":7684853828979786049,"path":7556355369837672396,"deps":[[3870702314125662939,"bytes",false,5725825469977916289],[17371538545939333701,"http",false,13446183471277979871]],"local":[{"CheckDepInfo":{"dep_info":"release/.fingerprint/http-body-17a56a264b5bfd77/dep-lib-http_body","checksum":false}}],"rustflags":["-C","codegen-units=1"],"config":8247474407144887393,"compile_kind":0}
|
||||
Binary file not shown.
|
|
@ -0,0 +1 @@
|
|||
This file has an mtime of when this was started.
|
||||
|
|
@ -0,0 +1 @@
|
|||
6f7b0c9a0ce48356
|
||||
|
|
@ -0,0 +1 @@
|
|||
{"rustc":16696009966390864400,"features":"[\"default\"]","declared_features":"[\"channel\", \"default\", \"full\"]","target":7120517503662506348,"profile":7684853828979786049,"path":2033217031621549563,"deps":[[302948626015856208,"futures_core",false,2883957370205442152],[2251399859588827949,"pin_project_lite",false,16054412939976265009],[3870702314125662939,"bytes",false,5725825469977916289],[14084095096285906100,"http_body",false,12381029116382599584],[17371538545939333701,"http",false,13446183471277979871]],"local":[{"CheckDepInfo":{"dep_info":"release/.fingerprint/http-body-util-3240ebf779af00b4/dep-lib-http_body_util","checksum":false}}],"rustflags":["-C","codegen-units=1"],"config":8247474407144887393,"compile_kind":0}
|
||||
Binary file not shown.
|
|
@ -0,0 +1 @@
|
|||
This file has an mtime of when this was started.
|
||||
|
|
@ -0,0 +1 @@
|
|||
dfb8404ea0709aba
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue