├── .github └── workflows │ └── build.yml ├── .gitignore ├── Cargo.lock ├── Cargo.toml ├── LICENSE ├── README.md ├── clean.sh └── src ├── eula.rs ├── main.rs └── softwares.rs /.github/workflows/build.yml: -------------------------------------------------------------------------------- 1 | name: Build 2 | 3 | on: 4 | push: 5 | branches: [v2] 6 | 7 | jobs: 8 | build: 9 | name: Build 10 | runs-on: ubuntu-latest 11 | strategy: 12 | fail-fast: false 13 | matrix: 14 | target: [x86_64-unknown-linux-musl] 15 | steps: 16 | - uses: actions/checkout@master 17 | - name: Compile 18 | id: compile 19 | uses: rust-build/rust-build.action@v1.4.5 20 | with: 21 | RUSTTARGET: ${{ matrix.target }} 22 | UPLOAD_MODE: none 23 | TOOLCHAIN_VERSION: stable 24 | - name: Upload artifact 25 | uses: actions/upload-artifact@v4 26 | with: 27 | name: Linux Binary 28 | path: | 29 | ${{ steps.compile.outputs.BUILT_ARCHIVE }} 30 | ${{ steps.compile.outputs.BUILT_CHECKSUM }} -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /target 2 | server.jar 3 | eula.txt 4 | .DS_Store -------------------------------------------------------------------------------- /Cargo.lock: -------------------------------------------------------------------------------- 1 | # This file is automatically @generated by Cargo. 2 | # It is not intended for manual editing. 3 | version = 4 4 | 5 | [[package]] 6 | name = "addr2line" 7 | version = "0.24.2" 8 | source = "registry+https://github.com/rust-lang/crates.io-index" 9 | checksum = "dfbe277e56a376000877090da837660b4427aad530e3028d44e0bffe4f89a1c1" 10 | dependencies = [ 11 | "gimli", 12 | ] 13 | 14 | [[package]] 15 | name = "adler2" 16 | version = "2.0.0" 17 | source = "registry+https://github.com/rust-lang/crates.io-index" 18 | checksum = "512761e0bb2578dd7380c6baaa0f4ce03e84f95e960231d1dec8bf4d7d6e2627" 19 | 20 | [[package]] 21 | name = "anstream" 22 | version = "0.6.18" 23 | source = "registry+https://github.com/rust-lang/crates.io-index" 24 | checksum = "8acc5369981196006228e28809f761875c0327210a891e941f4c683b3a99529b" 25 | dependencies = [ 26 | "anstyle", 27 | "anstyle-parse", 28 | "anstyle-query", 29 | "anstyle-wincon", 30 | "colorchoice", 31 | "is_terminal_polyfill", 32 | "utf8parse", 33 | ] 34 | 35 | [[package]] 36 | name = "anstyle" 37 | version = "1.0.10" 38 | source = "registry+https://github.com/rust-lang/crates.io-index" 39 | checksum = "55cc3b69f167a1ef2e161439aa98aed94e6028e5f9a59be9a6ffb47aef1651f9" 40 | 41 | [[package]] 42 | name = "anstyle-parse" 43 | version = "0.2.6" 44 | source = "registry+https://github.com/rust-lang/crates.io-index" 45 | checksum = "3b2d16507662817a6a20a9ea92df6652ee4f94f914589377d69f3b21bc5798a9" 46 | dependencies = [ 47 | "utf8parse", 48 | ] 49 | 50 | [[package]] 51 | name = "anstyle-query" 52 | version = "1.1.2" 53 | source = "registry+https://github.com/rust-lang/crates.io-index" 54 | checksum = "79947af37f4177cfead1110013d678905c37501914fba0efea834c3fe9a8d60c" 55 | dependencies = [ 56 | "windows-sys 0.59.0", 57 | ] 58 | 59 | [[package]] 60 | name = "anstyle-wincon" 61 | version = "3.0.7" 62 | source = "registry+https://github.com/rust-lang/crates.io-index" 63 | checksum = "ca3534e77181a9cc07539ad51f2141fe32f6c3ffd4df76db8ad92346b003ae4e" 64 | dependencies = [ 65 | "anstyle", 66 | "once_cell", 67 | "windows-sys 0.59.0", 68 | ] 69 | 70 | [[package]] 71 | name = "atomic-waker" 72 | version = "1.1.2" 73 | source = "registry+https://github.com/rust-lang/crates.io-index" 74 | checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0" 75 | 76 | [[package]] 77 | name = "autocfg" 78 | version = "1.4.0" 79 | source = "registry+https://github.com/rust-lang/crates.io-index" 80 | checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26" 81 | 82 | [[package]] 83 | name = "backtrace" 84 | version = "0.3.74" 85 | source = "registry+https://github.com/rust-lang/crates.io-index" 86 | checksum = "8d82cb332cdfaed17ae235a638438ac4d4839913cc2af585c3c6746e8f8bee1a" 87 | dependencies = [ 88 | "addr2line", 89 | "cfg-if", 90 | "libc", 91 | "miniz_oxide", 92 | "object", 93 | "rustc-demangle", 94 | "windows-targets 0.52.6", 95 | ] 96 | 97 | [[package]] 98 | name = "base64" 99 | version = "0.22.1" 100 | source = "registry+https://github.com/rust-lang/crates.io-index" 101 | checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6" 102 | 103 | [[package]] 104 | name = "bitflags" 105 | version = "1.3.2" 106 | source = "registry+https://github.com/rust-lang/crates.io-index" 107 | checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" 108 | 109 | [[package]] 110 | name = "bitflags" 111 | version = "2.9.0" 112 | source = "registry+https://github.com/rust-lang/crates.io-index" 113 | checksum = "5c8214115b7bf84099f1309324e63141d4c5d7cc26862f97a0a857dbefe165bd" 114 | 115 | [[package]] 116 | name = "bumpalo" 117 | version = "3.17.0" 118 | source = "registry+https://github.com/rust-lang/crates.io-index" 119 | checksum = "1628fb46dfa0b37568d12e5edd512553eccf6a22a78e8bde00bb4aed84d5bdbf" 120 | 121 | [[package]] 122 | name = "byteorder" 123 | version = "1.5.0" 124 | source = "registry+https://github.com/rust-lang/crates.io-index" 125 | checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" 126 | 127 | [[package]] 128 | name = "bytes" 129 | version = "1.10.1" 130 | source = "registry+https://github.com/rust-lang/crates.io-index" 131 | checksum = "d71b6127be86fdcfddb610f7182ac57211d4b18a3e9c82eb2d17662f2227ad6a" 132 | 133 | [[package]] 134 | name = "cc" 135 | version = "1.2.19" 136 | source = "registry+https://github.com/rust-lang/crates.io-index" 137 | checksum = "8e3a13707ac958681c13b39b458c073d0d9bc8a22cb1b2f4c8e55eb72c13f362" 138 | dependencies = [ 139 | "shlex", 140 | ] 141 | 142 | [[package]] 143 | name = "cfg-if" 144 | version = "1.0.0" 145 | source = "registry+https://github.com/rust-lang/crates.io-index" 146 | checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" 147 | 148 | [[package]] 149 | name = "clap" 150 | version = "4.5.36" 151 | source = "registry+https://github.com/rust-lang/crates.io-index" 152 | checksum = "2df961d8c8a0d08aa9945718ccf584145eee3f3aa06cddbeac12933781102e04" 153 | dependencies = [ 154 | "clap_builder", 155 | "clap_derive", 156 | ] 157 | 158 | [[package]] 159 | name = "clap_builder" 160 | version = "4.5.36" 161 | source = "registry+https://github.com/rust-lang/crates.io-index" 162 | checksum = "132dbda40fb6753878316a489d5a1242a8ef2f0d9e47ba01c951ea8aa7d013a5" 163 | dependencies = [ 164 | "anstream", 165 | "anstyle", 166 | "clap_lex", 167 | "strsim", 168 | ] 169 | 170 | [[package]] 171 | name = "clap_derive" 172 | version = "4.5.32" 173 | source = "registry+https://github.com/rust-lang/crates.io-index" 174 | checksum = "09176aae279615badda0765c0c0b3f6ed53f4709118af73cf4655d85d1530cd7" 175 | dependencies = [ 176 | "heck", 177 | "proc-macro2", 178 | "quote", 179 | "syn", 180 | ] 181 | 182 | [[package]] 183 | name = "clap_lex" 184 | version = "0.7.4" 185 | source = "registry+https://github.com/rust-lang/crates.io-index" 186 | checksum = "f46ad14479a25103f283c0f10005961cf086d8dc42205bb44c46ac563475dca6" 187 | 188 | [[package]] 189 | name = "colorchoice" 190 | version = "1.0.3" 191 | source = "registry+https://github.com/rust-lang/crates.io-index" 192 | checksum = "5b63caa9aa9397e2d9480a9b13673856c78d8ac123288526c37d7839f2a86990" 193 | 194 | [[package]] 195 | name = "colored" 196 | version = "2.2.0" 197 | source = "registry+https://github.com/rust-lang/crates.io-index" 198 | checksum = "117725a109d387c937a1533ce01b450cbde6b88abceea8473c4d7a85853cda3c" 199 | dependencies = [ 200 | "lazy_static", 201 | "windows-sys 0.59.0", 202 | ] 203 | 204 | [[package]] 205 | name = "core-foundation" 206 | version = "0.9.4" 207 | source = "registry+https://github.com/rust-lang/crates.io-index" 208 | checksum = "91e195e091a93c46f7102ec7818a2aa394e1e1771c3ab4825963fa03e45afb8f" 209 | dependencies = [ 210 | "core-foundation-sys", 211 | "libc", 212 | ] 213 | 214 | [[package]] 215 | name = "core-foundation-sys" 216 | version = "0.8.7" 217 | source = "registry+https://github.com/rust-lang/crates.io-index" 218 | checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" 219 | 220 | [[package]] 221 | name = "crossterm" 222 | version = "0.25.0" 223 | source = "registry+https://github.com/rust-lang/crates.io-index" 224 | checksum = "e64e6c0fbe2c17357405f7c758c1ef960fce08bdfb2c03d88d2a18d7e09c4b67" 225 | dependencies = [ 226 | "bitflags 1.3.2", 227 | "crossterm_winapi", 228 | "libc", 229 | "mio 0.8.11", 230 | "parking_lot", 231 | "signal-hook", 232 | "signal-hook-mio", 233 | "winapi", 234 | ] 235 | 236 | [[package]] 237 | name = "crossterm_winapi" 238 | version = "0.9.1" 239 | source = "registry+https://github.com/rust-lang/crates.io-index" 240 | checksum = "acdd7c62a3665c7f6830a51635d9ac9b23ed385797f70a83bb8bafe9c572ab2b" 241 | dependencies = [ 242 | "winapi", 243 | ] 244 | 245 | [[package]] 246 | name = "displaydoc" 247 | version = "0.2.5" 248 | source = "registry+https://github.com/rust-lang/crates.io-index" 249 | checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0" 250 | dependencies = [ 251 | "proc-macro2", 252 | "quote", 253 | "syn", 254 | ] 255 | 256 | [[package]] 257 | name = "dyn-clone" 258 | version = "1.0.19" 259 | source = "registry+https://github.com/rust-lang/crates.io-index" 260 | checksum = "1c7a8fb8a9fbf66c1f703fe16184d10ca0ee9d23be5b4436400408ba54a95005" 261 | 262 | [[package]] 263 | name = "encoding_rs" 264 | version = "0.8.35" 265 | source = "registry+https://github.com/rust-lang/crates.io-index" 266 | checksum = "75030f3c4f45dafd7586dd6780965a8c7e8e285a5ecb86713e63a79c5b2766f3" 267 | dependencies = [ 268 | "cfg-if", 269 | ] 270 | 271 | [[package]] 272 | name = "equivalent" 273 | version = "1.0.2" 274 | source = "registry+https://github.com/rust-lang/crates.io-index" 275 | checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f" 276 | 277 | [[package]] 278 | name = "errno" 279 | version = "0.3.11" 280 | source = "registry+https://github.com/rust-lang/crates.io-index" 281 | checksum = "976dd42dc7e85965fe702eb8164f21f450704bdde31faefd6471dba214cb594e" 282 | dependencies = [ 283 | "libc", 284 | "windows-sys 0.59.0", 285 | ] 286 | 287 | [[package]] 288 | name = "fastrand" 289 | version = "2.3.0" 290 | source = "registry+https://github.com/rust-lang/crates.io-index" 291 | checksum = "37909eebbb50d72f9059c3b6d82c0463f2ff062c9e95845c43a6c9c0355411be" 292 | 293 | [[package]] 294 | name = "fnv" 295 | version = "1.0.7" 296 | source = "registry+https://github.com/rust-lang/crates.io-index" 297 | checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" 298 | 299 | [[package]] 300 | name = "foreign-types" 301 | version = "0.3.2" 302 | source = "registry+https://github.com/rust-lang/crates.io-index" 303 | checksum = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1" 304 | dependencies = [ 305 | "foreign-types-shared", 306 | ] 307 | 308 | [[package]] 309 | name = "foreign-types-shared" 310 | version = "0.1.1" 311 | source = "registry+https://github.com/rust-lang/crates.io-index" 312 | checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b" 313 | 314 | [[package]] 315 | name = "form_urlencoded" 316 | version = "1.2.1" 317 | source = "registry+https://github.com/rust-lang/crates.io-index" 318 | checksum = "e13624c2627564efccf4934284bdd98cbaa14e79b0b5a141218e507b3a823456" 319 | dependencies = [ 320 | "percent-encoding", 321 | ] 322 | 323 | [[package]] 324 | name = "futures-channel" 325 | version = "0.3.31" 326 | source = "registry+https://github.com/rust-lang/crates.io-index" 327 | checksum = "2dff15bf788c671c1934e366d07e30c1814a8ef514e1af724a602e8a2fbe1b10" 328 | dependencies = [ 329 | "futures-core", 330 | "futures-sink", 331 | ] 332 | 333 | [[package]] 334 | name = "futures-core" 335 | version = "0.3.31" 336 | source = "registry+https://github.com/rust-lang/crates.io-index" 337 | checksum = "05f29059c0c2090612e8d742178b0580d2dc940c837851ad723096f87af6663e" 338 | 339 | [[package]] 340 | name = "futures-io" 341 | version = "0.3.31" 342 | source = "registry+https://github.com/rust-lang/crates.io-index" 343 | checksum = "9e5c1b78ca4aae1ac06c48a526a655760685149f0d465d21f37abfe57ce075c6" 344 | 345 | [[package]] 346 | name = "futures-sink" 347 | version = "0.3.31" 348 | source = "registry+https://github.com/rust-lang/crates.io-index" 349 | checksum = "e575fab7d1e0dcb8d0c7bcf9a63ee213816ab51902e6d244a95819acacf1d4f7" 350 | 351 | [[package]] 352 | name = "futures-task" 353 | version = "0.3.31" 354 | source = "registry+https://github.com/rust-lang/crates.io-index" 355 | checksum = "f90f7dce0722e95104fcb095585910c0977252f286e354b5e3bd38902cd99988" 356 | 357 | [[package]] 358 | name = "futures-util" 359 | version = "0.3.31" 360 | source = "registry+https://github.com/rust-lang/crates.io-index" 361 | checksum = "9fa08315bb612088cc391249efdc3bc77536f16c91f6cf495e6fbe85b20a4a81" 362 | dependencies = [ 363 | "futures-core", 364 | "futures-io", 365 | "futures-sink", 366 | "futures-task", 367 | "memchr", 368 | "pin-project-lite", 369 | "pin-utils", 370 | "slab", 371 | ] 372 | 373 | [[package]] 374 | name = "fuzzy-matcher" 375 | version = "0.3.7" 376 | source = "registry+https://github.com/rust-lang/crates.io-index" 377 | checksum = "54614a3312934d066701a80f20f15fa3b56d67ac7722b39eea5b4c9dd1d66c94" 378 | dependencies = [ 379 | "thread_local", 380 | ] 381 | 382 | [[package]] 383 | name = "fxhash" 384 | version = "0.2.1" 385 | source = "registry+https://github.com/rust-lang/crates.io-index" 386 | checksum = "c31b6d751ae2c7f11320402d34e41349dd1016f8d5d45e48c4312bc8625af50c" 387 | dependencies = [ 388 | "byteorder", 389 | ] 390 | 391 | [[package]] 392 | name = "getrandom" 393 | version = "0.2.15" 394 | source = "registry+https://github.com/rust-lang/crates.io-index" 395 | checksum = "c4567c8db10ae91089c99af84c68c38da3ec2f087c3f82960bcdbf3656b6f4d7" 396 | dependencies = [ 397 | "cfg-if", 398 | "libc", 399 | "wasi 0.11.0+wasi-snapshot-preview1", 400 | ] 401 | 402 | [[package]] 403 | name = "getrandom" 404 | version = "0.3.2" 405 | source = "registry+https://github.com/rust-lang/crates.io-index" 406 | checksum = "73fea8450eea4bac3940448fb7ae50d91f034f941199fcd9d909a5a07aa455f0" 407 | dependencies = [ 408 | "cfg-if", 409 | "libc", 410 | "r-efi", 411 | "wasi 0.14.2+wasi-0.2.4", 412 | ] 413 | 414 | [[package]] 415 | name = "gimli" 416 | version = "0.31.1" 417 | source = "registry+https://github.com/rust-lang/crates.io-index" 418 | checksum = "07e28edb80900c19c28f1072f2e8aeca7fa06b23cd4169cefe1af5aa3260783f" 419 | 420 | [[package]] 421 | name = "h2" 422 | version = "0.4.9" 423 | source = "registry+https://github.com/rust-lang/crates.io-index" 424 | checksum = "75249d144030531f8dee69fe9cea04d3edf809a017ae445e2abdff6629e86633" 425 | dependencies = [ 426 | "atomic-waker", 427 | "bytes", 428 | "fnv", 429 | "futures-core", 430 | "futures-sink", 431 | "http", 432 | "indexmap", 433 | "slab", 434 | "tokio", 435 | "tokio-util", 436 | "tracing", 437 | ] 438 | 439 | [[package]] 440 | name = "hashbrown" 441 | version = "0.15.2" 442 | source = "registry+https://github.com/rust-lang/crates.io-index" 443 | checksum = "bf151400ff0baff5465007dd2f3e717f3fe502074ca563069ce3a6629d07b289" 444 | 445 | [[package]] 446 | name = "heck" 447 | version = "0.5.0" 448 | source = "registry+https://github.com/rust-lang/crates.io-index" 449 | checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" 450 | 451 | [[package]] 452 | name = "http" 453 | version = "1.3.1" 454 | source = "registry+https://github.com/rust-lang/crates.io-index" 455 | checksum = "f4a85d31aea989eead29a3aaf9e1115a180df8282431156e533de47660892565" 456 | dependencies = [ 457 | "bytes", 458 | "fnv", 459 | "itoa", 460 | ] 461 | 462 | [[package]] 463 | name = "http-body" 464 | version = "1.0.1" 465 | source = "registry+https://github.com/rust-lang/crates.io-index" 466 | checksum = "1efedce1fb8e6913f23e0c92de8e62cd5b772a67e7b3946df930a62566c93184" 467 | dependencies = [ 468 | "bytes", 469 | "http", 470 | ] 471 | 472 | [[package]] 473 | name = "http-body-util" 474 | version = "0.1.3" 475 | source = "registry+https://github.com/rust-lang/crates.io-index" 476 | checksum = "b021d93e26becf5dc7e1b75b1bed1fd93124b374ceb73f43d4d4eafec896a64a" 477 | dependencies = [ 478 | "bytes", 479 | "futures-core", 480 | "http", 481 | "http-body", 482 | "pin-project-lite", 483 | ] 484 | 485 | [[package]] 486 | name = "httparse" 487 | version = "1.10.1" 488 | source = "registry+https://github.com/rust-lang/crates.io-index" 489 | checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87" 490 | 491 | [[package]] 492 | name = "hyper" 493 | version = "1.6.0" 494 | source = "registry+https://github.com/rust-lang/crates.io-index" 495 | checksum = "cc2b571658e38e0c01b1fdca3bbbe93c00d3d71693ff2770043f8c29bc7d6f80" 496 | dependencies = [ 497 | "bytes", 498 | "futures-channel", 499 | "futures-util", 500 | "h2", 501 | "http", 502 | "http-body", 503 | "httparse", 504 | "itoa", 505 | "pin-project-lite", 506 | "smallvec", 507 | "tokio", 508 | "want", 509 | ] 510 | 511 | [[package]] 512 | name = "hyper-rustls" 513 | version = "0.27.5" 514 | source = "registry+https://github.com/rust-lang/crates.io-index" 515 | checksum = "2d191583f3da1305256f22463b9bb0471acad48a4e534a5218b9963e9c1f59b2" 516 | dependencies = [ 517 | "futures-util", 518 | "http", 519 | "hyper", 520 | "hyper-util", 521 | "rustls", 522 | "rustls-pki-types", 523 | "tokio", 524 | "tokio-rustls", 525 | "tower-service", 526 | ] 527 | 528 | [[package]] 529 | name = "hyper-tls" 530 | version = "0.6.0" 531 | source = "registry+https://github.com/rust-lang/crates.io-index" 532 | checksum = "70206fc6890eaca9fde8a0bf71caa2ddfc9fe045ac9e5c70df101a7dbde866e0" 533 | dependencies = [ 534 | "bytes", 535 | "http-body-util", 536 | "hyper", 537 | "hyper-util", 538 | "native-tls", 539 | "tokio", 540 | "tokio-native-tls", 541 | "tower-service", 542 | ] 543 | 544 | [[package]] 545 | name = "hyper-util" 546 | version = "0.1.11" 547 | source = "registry+https://github.com/rust-lang/crates.io-index" 548 | checksum = "497bbc33a26fdd4af9ed9c70d63f61cf56a938375fbb32df34db9b1cd6d643f2" 549 | dependencies = [ 550 | "bytes", 551 | "futures-channel", 552 | "futures-util", 553 | "http", 554 | "http-body", 555 | "hyper", 556 | "libc", 557 | "pin-project-lite", 558 | "socket2", 559 | "tokio", 560 | "tower-service", 561 | "tracing", 562 | ] 563 | 564 | [[package]] 565 | name = "icu_collections" 566 | version = "1.5.0" 567 | source = "registry+https://github.com/rust-lang/crates.io-index" 568 | checksum = "db2fa452206ebee18c4b5c2274dbf1de17008e874b4dc4f0aea9d01ca79e4526" 569 | dependencies = [ 570 | "displaydoc", 571 | "yoke", 572 | "zerofrom", 573 | "zerovec", 574 | ] 575 | 576 | [[package]] 577 | name = "icu_locid" 578 | version = "1.5.0" 579 | source = "registry+https://github.com/rust-lang/crates.io-index" 580 | checksum = "13acbb8371917fc971be86fc8057c41a64b521c184808a698c02acc242dbf637" 581 | dependencies = [ 582 | "displaydoc", 583 | "litemap", 584 | "tinystr", 585 | "writeable", 586 | "zerovec", 587 | ] 588 | 589 | [[package]] 590 | name = "icu_locid_transform" 591 | version = "1.5.0" 592 | source = "registry+https://github.com/rust-lang/crates.io-index" 593 | checksum = "01d11ac35de8e40fdeda00d9e1e9d92525f3f9d887cdd7aa81d727596788b54e" 594 | dependencies = [ 595 | "displaydoc", 596 | "icu_locid", 597 | "icu_locid_transform_data", 598 | "icu_provider", 599 | "tinystr", 600 | "zerovec", 601 | ] 602 | 603 | [[package]] 604 | name = "icu_locid_transform_data" 605 | version = "1.5.1" 606 | source = "registry+https://github.com/rust-lang/crates.io-index" 607 | checksum = "7515e6d781098bf9f7205ab3fc7e9709d34554ae0b21ddbcb5febfa4bc7df11d" 608 | 609 | [[package]] 610 | name = "icu_normalizer" 611 | version = "1.5.0" 612 | source = "registry+https://github.com/rust-lang/crates.io-index" 613 | checksum = "19ce3e0da2ec68599d193c93d088142efd7f9c5d6fc9b803774855747dc6a84f" 614 | dependencies = [ 615 | "displaydoc", 616 | "icu_collections", 617 | "icu_normalizer_data", 618 | "icu_properties", 619 | "icu_provider", 620 | "smallvec", 621 | "utf16_iter", 622 | "utf8_iter", 623 | "write16", 624 | "zerovec", 625 | ] 626 | 627 | [[package]] 628 | name = "icu_normalizer_data" 629 | version = "1.5.1" 630 | source = "registry+https://github.com/rust-lang/crates.io-index" 631 | checksum = "c5e8338228bdc8ab83303f16b797e177953730f601a96c25d10cb3ab0daa0cb7" 632 | 633 | [[package]] 634 | name = "icu_properties" 635 | version = "1.5.1" 636 | source = "registry+https://github.com/rust-lang/crates.io-index" 637 | checksum = "93d6020766cfc6302c15dbbc9c8778c37e62c14427cb7f6e601d849e092aeef5" 638 | dependencies = [ 639 | "displaydoc", 640 | "icu_collections", 641 | "icu_locid_transform", 642 | "icu_properties_data", 643 | "icu_provider", 644 | "tinystr", 645 | "zerovec", 646 | ] 647 | 648 | [[package]] 649 | name = "icu_properties_data" 650 | version = "1.5.1" 651 | source = "registry+https://github.com/rust-lang/crates.io-index" 652 | checksum = "85fb8799753b75aee8d2a21d7c14d9f38921b54b3dbda10f5a3c7a7b82dba5e2" 653 | 654 | [[package]] 655 | name = "icu_provider" 656 | version = "1.5.0" 657 | source = "registry+https://github.com/rust-lang/crates.io-index" 658 | checksum = "6ed421c8a8ef78d3e2dbc98a973be2f3770cb42b606e3ab18d6237c4dfde68d9" 659 | dependencies = [ 660 | "displaydoc", 661 | "icu_locid", 662 | "icu_provider_macros", 663 | "stable_deref_trait", 664 | "tinystr", 665 | "writeable", 666 | "yoke", 667 | "zerofrom", 668 | "zerovec", 669 | ] 670 | 671 | [[package]] 672 | name = "icu_provider_macros" 673 | version = "1.5.0" 674 | source = "registry+https://github.com/rust-lang/crates.io-index" 675 | checksum = "1ec89e9337638ecdc08744df490b221a7399bf8d164eb52a665454e60e075ad6" 676 | dependencies = [ 677 | "proc-macro2", 678 | "quote", 679 | "syn", 680 | ] 681 | 682 | [[package]] 683 | name = "idna" 684 | version = "1.0.3" 685 | source = "registry+https://github.com/rust-lang/crates.io-index" 686 | checksum = "686f825264d630750a544639377bae737628043f20d38bbc029e8f29ea968a7e" 687 | dependencies = [ 688 | "idna_adapter", 689 | "smallvec", 690 | "utf8_iter", 691 | ] 692 | 693 | [[package]] 694 | name = "idna_adapter" 695 | version = "1.2.0" 696 | source = "registry+https://github.com/rust-lang/crates.io-index" 697 | checksum = "daca1df1c957320b2cf139ac61e7bd64fed304c5040df000a745aa1de3b4ef71" 698 | dependencies = [ 699 | "icu_normalizer", 700 | "icu_properties", 701 | ] 702 | 703 | [[package]] 704 | name = "indexmap" 705 | version = "2.9.0" 706 | source = "registry+https://github.com/rust-lang/crates.io-index" 707 | checksum = "cea70ddb795996207ad57735b50c5982d8844f38ba9ee5f1aedcfb708a2aa11e" 708 | dependencies = [ 709 | "equivalent", 710 | "hashbrown", 711 | ] 712 | 713 | [[package]] 714 | name = "inquire" 715 | version = "0.7.5" 716 | source = "registry+https://github.com/rust-lang/crates.io-index" 717 | checksum = "0fddf93031af70e75410a2511ec04d49e758ed2f26dad3404a934e0fb45cc12a" 718 | dependencies = [ 719 | "bitflags 2.9.0", 720 | "crossterm", 721 | "dyn-clone", 722 | "fuzzy-matcher", 723 | "fxhash", 724 | "newline-converter", 725 | "once_cell", 726 | "unicode-segmentation", 727 | "unicode-width", 728 | ] 729 | 730 | [[package]] 731 | name = "ipnet" 732 | version = "2.11.0" 733 | source = "registry+https://github.com/rust-lang/crates.io-index" 734 | checksum = "469fb0b9cefa57e3ef31275ee7cacb78f2fdca44e4765491884a2b119d4eb130" 735 | 736 | [[package]] 737 | name = "is_terminal_polyfill" 738 | version = "1.70.1" 739 | source = "registry+https://github.com/rust-lang/crates.io-index" 740 | checksum = "7943c866cc5cd64cbc25b2e01621d07fa8eb2a1a23160ee81ce38704e97b8ecf" 741 | 742 | [[package]] 743 | name = "itoa" 744 | version = "1.0.15" 745 | source = "registry+https://github.com/rust-lang/crates.io-index" 746 | checksum = "4a5f13b858c8d314ee3e8f639011f7ccefe71f97f96e50151fb991f267928e2c" 747 | 748 | [[package]] 749 | name = "js-sys" 750 | version = "0.3.77" 751 | source = "registry+https://github.com/rust-lang/crates.io-index" 752 | checksum = "1cfaf33c695fc6e08064efbc1f72ec937429614f25eef83af942d0e227c3a28f" 753 | dependencies = [ 754 | "once_cell", 755 | "wasm-bindgen", 756 | ] 757 | 758 | [[package]] 759 | name = "lazy_static" 760 | version = "1.5.0" 761 | source = "registry+https://github.com/rust-lang/crates.io-index" 762 | checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe" 763 | 764 | [[package]] 765 | name = "libc" 766 | version = "0.2.172" 767 | source = "registry+https://github.com/rust-lang/crates.io-index" 768 | checksum = "d750af042f7ef4f724306de029d18836c26c1765a54a6a3f094cbd23a7267ffa" 769 | 770 | [[package]] 771 | name = "linux-raw-sys" 772 | version = "0.9.4" 773 | source = "registry+https://github.com/rust-lang/crates.io-index" 774 | checksum = "cd945864f07fe9f5371a27ad7b52a172b4b499999f1d97574c9fa68373937e12" 775 | 776 | [[package]] 777 | name = "litemap" 778 | version = "0.7.5" 779 | source = "registry+https://github.com/rust-lang/crates.io-index" 780 | checksum = "23fb14cb19457329c82206317a5663005a4d404783dc74f4252769b0d5f42856" 781 | 782 | [[package]] 783 | name = "lock_api" 784 | version = "0.4.12" 785 | source = "registry+https://github.com/rust-lang/crates.io-index" 786 | checksum = "07af8b9cdd281b7915f413fa73f29ebd5d55d0d3f0155584dade1ff18cea1b17" 787 | dependencies = [ 788 | "autocfg", 789 | "scopeguard", 790 | ] 791 | 792 | [[package]] 793 | name = "log" 794 | version = "0.4.27" 795 | source = "registry+https://github.com/rust-lang/crates.io-index" 796 | checksum = "13dc2df351e3202783a1fe0d44375f7295ffb4049267b0f3018346dc122a1d94" 797 | 798 | [[package]] 799 | name = "mcsast" 800 | version = "2.1.0" 801 | dependencies = [ 802 | "clap", 803 | "colored", 804 | "inquire", 805 | "reqwest", 806 | "serde_json", 807 | ] 808 | 809 | [[package]] 810 | name = "memchr" 811 | version = "2.7.4" 812 | source = "registry+https://github.com/rust-lang/crates.io-index" 813 | checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3" 814 | 815 | [[package]] 816 | name = "mime" 817 | version = "0.3.17" 818 | source = "registry+https://github.com/rust-lang/crates.io-index" 819 | checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a" 820 | 821 | [[package]] 822 | name = "miniz_oxide" 823 | version = "0.8.8" 824 | source = "registry+https://github.com/rust-lang/crates.io-index" 825 | checksum = "3be647b768db090acb35d5ec5db2b0e1f1de11133ca123b9eacf5137868f892a" 826 | dependencies = [ 827 | "adler2", 828 | ] 829 | 830 | [[package]] 831 | name = "mio" 832 | version = "0.8.11" 833 | source = "registry+https://github.com/rust-lang/crates.io-index" 834 | checksum = "a4a650543ca06a924e8b371db273b2756685faae30f8487da1b56505a8f78b0c" 835 | dependencies = [ 836 | "libc", 837 | "log", 838 | "wasi 0.11.0+wasi-snapshot-preview1", 839 | "windows-sys 0.48.0", 840 | ] 841 | 842 | [[package]] 843 | name = "mio" 844 | version = "1.0.3" 845 | source = "registry+https://github.com/rust-lang/crates.io-index" 846 | checksum = "2886843bf800fba2e3377cff24abf6379b4c4d5c6681eaf9ea5b0d15090450bd" 847 | dependencies = [ 848 | "libc", 849 | "wasi 0.11.0+wasi-snapshot-preview1", 850 | "windows-sys 0.52.0", 851 | ] 852 | 853 | [[package]] 854 | name = "native-tls" 855 | version = "0.2.14" 856 | source = "registry+https://github.com/rust-lang/crates.io-index" 857 | checksum = "87de3442987e9dbec73158d5c715e7ad9072fda936bb03d19d7fa10e00520f0e" 858 | dependencies = [ 859 | "libc", 860 | "log", 861 | "openssl", 862 | "openssl-probe", 863 | "openssl-sys", 864 | "schannel", 865 | "security-framework", 866 | "security-framework-sys", 867 | "tempfile", 868 | ] 869 | 870 | [[package]] 871 | name = "newline-converter" 872 | version = "0.3.0" 873 | source = "registry+https://github.com/rust-lang/crates.io-index" 874 | checksum = "47b6b097ecb1cbfed438542d16e84fd7ad9b0c76c8a65b7f9039212a3d14dc7f" 875 | dependencies = [ 876 | "unicode-segmentation", 877 | ] 878 | 879 | [[package]] 880 | name = "object" 881 | version = "0.36.7" 882 | source = "registry+https://github.com/rust-lang/crates.io-index" 883 | checksum = "62948e14d923ea95ea2c7c86c71013138b66525b86bdc08d2dcc262bdb497b87" 884 | dependencies = [ 885 | "memchr", 886 | ] 887 | 888 | [[package]] 889 | name = "once_cell" 890 | version = "1.21.3" 891 | source = "registry+https://github.com/rust-lang/crates.io-index" 892 | checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d" 893 | 894 | [[package]] 895 | name = "openssl" 896 | version = "0.10.72" 897 | source = "registry+https://github.com/rust-lang/crates.io-index" 898 | checksum = "fedfea7d58a1f73118430a55da6a286e7b044961736ce96a16a17068ea25e5da" 899 | dependencies = [ 900 | "bitflags 2.9.0", 901 | "cfg-if", 902 | "foreign-types", 903 | "libc", 904 | "once_cell", 905 | "openssl-macros", 906 | "openssl-sys", 907 | ] 908 | 909 | [[package]] 910 | name = "openssl-macros" 911 | version = "0.1.1" 912 | source = "registry+https://github.com/rust-lang/crates.io-index" 913 | checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c" 914 | dependencies = [ 915 | "proc-macro2", 916 | "quote", 917 | "syn", 918 | ] 919 | 920 | [[package]] 921 | name = "openssl-probe" 922 | version = "0.1.6" 923 | source = "registry+https://github.com/rust-lang/crates.io-index" 924 | checksum = "d05e27ee213611ffe7d6348b942e8f942b37114c00cc03cec254295a4a17852e" 925 | 926 | [[package]] 927 | name = "openssl-sys" 928 | version = "0.9.107" 929 | source = "registry+https://github.com/rust-lang/crates.io-index" 930 | checksum = "8288979acd84749c744a9014b4382d42b8f7b2592847b5afb2ed29e5d16ede07" 931 | dependencies = [ 932 | "cc", 933 | "libc", 934 | "pkg-config", 935 | "vcpkg", 936 | ] 937 | 938 | [[package]] 939 | name = "parking_lot" 940 | version = "0.12.3" 941 | source = "registry+https://github.com/rust-lang/crates.io-index" 942 | checksum = "f1bf18183cf54e8d6059647fc3063646a1801cf30896933ec2311622cc4b9a27" 943 | dependencies = [ 944 | "lock_api", 945 | "parking_lot_core", 946 | ] 947 | 948 | [[package]] 949 | name = "parking_lot_core" 950 | version = "0.9.10" 951 | source = "registry+https://github.com/rust-lang/crates.io-index" 952 | checksum = "1e401f977ab385c9e4e3ab30627d6f26d00e2c73eef317493c4ec6d468726cf8" 953 | dependencies = [ 954 | "cfg-if", 955 | "libc", 956 | "redox_syscall", 957 | "smallvec", 958 | "windows-targets 0.52.6", 959 | ] 960 | 961 | [[package]] 962 | name = "percent-encoding" 963 | version = "2.3.1" 964 | source = "registry+https://github.com/rust-lang/crates.io-index" 965 | checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e" 966 | 967 | [[package]] 968 | name = "pin-project-lite" 969 | version = "0.2.16" 970 | source = "registry+https://github.com/rust-lang/crates.io-index" 971 | checksum = "3b3cff922bd51709b605d9ead9aa71031d81447142d828eb4a6eba76fe619f9b" 972 | 973 | [[package]] 974 | name = "pin-utils" 975 | version = "0.1.0" 976 | source = "registry+https://github.com/rust-lang/crates.io-index" 977 | checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" 978 | 979 | [[package]] 980 | name = "pkg-config" 981 | version = "0.3.32" 982 | source = "registry+https://github.com/rust-lang/crates.io-index" 983 | checksum = "7edddbd0b52d732b21ad9a5fab5c704c14cd949e5e9a1ec5929a24fded1b904c" 984 | 985 | [[package]] 986 | name = "proc-macro2" 987 | version = "1.0.95" 988 | source = "registry+https://github.com/rust-lang/crates.io-index" 989 | checksum = "02b3e5e68a3a1a02aad3ec490a98007cbc13c37cbe84a3cd7b8e406d76e7f778" 990 | dependencies = [ 991 | "unicode-ident", 992 | ] 993 | 994 | [[package]] 995 | name = "quote" 996 | version = "1.0.40" 997 | source = "registry+https://github.com/rust-lang/crates.io-index" 998 | checksum = "1885c039570dc00dcb4ff087a89e185fd56bae234ddc7f056a945bf36467248d" 999 | dependencies = [ 1000 | "proc-macro2", 1001 | ] 1002 | 1003 | [[package]] 1004 | name = "r-efi" 1005 | version = "5.2.0" 1006 | source = "registry+https://github.com/rust-lang/crates.io-index" 1007 | checksum = "74765f6d916ee2faa39bc8e68e4f3ed8949b48cccdac59983d287a7cb71ce9c5" 1008 | 1009 | [[package]] 1010 | name = "redox_syscall" 1011 | version = "0.5.11" 1012 | source = "registry+https://github.com/rust-lang/crates.io-index" 1013 | checksum = "d2f103c6d277498fbceb16e84d317e2a400f160f46904d5f5410848c829511a3" 1014 | dependencies = [ 1015 | "bitflags 2.9.0", 1016 | ] 1017 | 1018 | [[package]] 1019 | name = "reqwest" 1020 | version = "0.12.15" 1021 | source = "registry+https://github.com/rust-lang/crates.io-index" 1022 | checksum = "d19c46a6fdd48bc4dab94b6103fccc55d34c67cc0ad04653aad4ea2a07cd7bbb" 1023 | dependencies = [ 1024 | "base64", 1025 | "bytes", 1026 | "encoding_rs", 1027 | "futures-channel", 1028 | "futures-core", 1029 | "futures-util", 1030 | "h2", 1031 | "http", 1032 | "http-body", 1033 | "http-body-util", 1034 | "hyper", 1035 | "hyper-rustls", 1036 | "hyper-tls", 1037 | "hyper-util", 1038 | "ipnet", 1039 | "js-sys", 1040 | "log", 1041 | "mime", 1042 | "native-tls", 1043 | "once_cell", 1044 | "percent-encoding", 1045 | "pin-project-lite", 1046 | "rustls-pemfile", 1047 | "serde", 1048 | "serde_json", 1049 | "serde_urlencoded", 1050 | "sync_wrapper", 1051 | "system-configuration", 1052 | "tokio", 1053 | "tokio-native-tls", 1054 | "tower", 1055 | "tower-service", 1056 | "url", 1057 | "wasm-bindgen", 1058 | "wasm-bindgen-futures", 1059 | "web-sys", 1060 | "windows-registry", 1061 | ] 1062 | 1063 | [[package]] 1064 | name = "ring" 1065 | version = "0.17.14" 1066 | source = "registry+https://github.com/rust-lang/crates.io-index" 1067 | checksum = "a4689e6c2294d81e88dc6261c768b63bc4fcdb852be6d1352498b114f61383b7" 1068 | dependencies = [ 1069 | "cc", 1070 | "cfg-if", 1071 | "getrandom 0.2.15", 1072 | "libc", 1073 | "untrusted", 1074 | "windows-sys 0.52.0", 1075 | ] 1076 | 1077 | [[package]] 1078 | name = "rustc-demangle" 1079 | version = "0.1.24" 1080 | source = "registry+https://github.com/rust-lang/crates.io-index" 1081 | checksum = "719b953e2095829ee67db738b3bfa9fa368c94900df327b3f07fe6e794d2fe1f" 1082 | 1083 | [[package]] 1084 | name = "rustix" 1085 | version = "1.0.5" 1086 | source = "registry+https://github.com/rust-lang/crates.io-index" 1087 | checksum = "d97817398dd4bb2e6da002002db259209759911da105da92bec29ccb12cf58bf" 1088 | dependencies = [ 1089 | "bitflags 2.9.0", 1090 | "errno", 1091 | "libc", 1092 | "linux-raw-sys", 1093 | "windows-sys 0.59.0", 1094 | ] 1095 | 1096 | [[package]] 1097 | name = "rustls" 1098 | version = "0.23.26" 1099 | source = "registry+https://github.com/rust-lang/crates.io-index" 1100 | checksum = "df51b5869f3a441595eac5e8ff14d486ff285f7b8c0df8770e49c3b56351f0f0" 1101 | dependencies = [ 1102 | "once_cell", 1103 | "rustls-pki-types", 1104 | "rustls-webpki", 1105 | "subtle", 1106 | "zeroize", 1107 | ] 1108 | 1109 | [[package]] 1110 | name = "rustls-pemfile" 1111 | version = "2.2.0" 1112 | source = "registry+https://github.com/rust-lang/crates.io-index" 1113 | checksum = "dce314e5fee3f39953d46bb63bb8a46d40c2f8fb7cc5a3b6cab2bde9721d6e50" 1114 | dependencies = [ 1115 | "rustls-pki-types", 1116 | ] 1117 | 1118 | [[package]] 1119 | name = "rustls-pki-types" 1120 | version = "1.11.0" 1121 | source = "registry+https://github.com/rust-lang/crates.io-index" 1122 | checksum = "917ce264624a4b4db1c364dcc35bfca9ded014d0a958cd47ad3e960e988ea51c" 1123 | 1124 | [[package]] 1125 | name = "rustls-webpki" 1126 | version = "0.103.1" 1127 | source = "registry+https://github.com/rust-lang/crates.io-index" 1128 | checksum = "fef8b8769aaccf73098557a87cd1816b4f9c7c16811c9c77142aa695c16f2c03" 1129 | dependencies = [ 1130 | "ring", 1131 | "rustls-pki-types", 1132 | "untrusted", 1133 | ] 1134 | 1135 | [[package]] 1136 | name = "rustversion" 1137 | version = "1.0.20" 1138 | source = "registry+https://github.com/rust-lang/crates.io-index" 1139 | checksum = "eded382c5f5f786b989652c49544c4877d9f015cc22e145a5ea8ea66c2921cd2" 1140 | 1141 | [[package]] 1142 | name = "ryu" 1143 | version = "1.0.20" 1144 | source = "registry+https://github.com/rust-lang/crates.io-index" 1145 | checksum = "28d3b2b1366ec20994f1fd18c3c594f05c5dd4bc44d8bb0c1c632c8d6829481f" 1146 | 1147 | [[package]] 1148 | name = "schannel" 1149 | version = "0.1.27" 1150 | source = "registry+https://github.com/rust-lang/crates.io-index" 1151 | checksum = "1f29ebaa345f945cec9fbbc532eb307f0fdad8161f281b6369539c8d84876b3d" 1152 | dependencies = [ 1153 | "windows-sys 0.59.0", 1154 | ] 1155 | 1156 | [[package]] 1157 | name = "scopeguard" 1158 | version = "1.2.0" 1159 | source = "registry+https://github.com/rust-lang/crates.io-index" 1160 | checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" 1161 | 1162 | [[package]] 1163 | name = "security-framework" 1164 | version = "2.11.1" 1165 | source = "registry+https://github.com/rust-lang/crates.io-index" 1166 | checksum = "897b2245f0b511c87893af39b033e5ca9cce68824c4d7e7630b5a1d339658d02" 1167 | dependencies = [ 1168 | "bitflags 2.9.0", 1169 | "core-foundation", 1170 | "core-foundation-sys", 1171 | "libc", 1172 | "security-framework-sys", 1173 | ] 1174 | 1175 | [[package]] 1176 | name = "security-framework-sys" 1177 | version = "2.14.0" 1178 | source = "registry+https://github.com/rust-lang/crates.io-index" 1179 | checksum = "49db231d56a190491cb4aeda9527f1ad45345af50b0851622a7adb8c03b01c32" 1180 | dependencies = [ 1181 | "core-foundation-sys", 1182 | "libc", 1183 | ] 1184 | 1185 | [[package]] 1186 | name = "serde" 1187 | version = "1.0.219" 1188 | source = "registry+https://github.com/rust-lang/crates.io-index" 1189 | checksum = "5f0e2c6ed6606019b4e29e69dbaba95b11854410e5347d525002456dbbb786b6" 1190 | dependencies = [ 1191 | "serde_derive", 1192 | ] 1193 | 1194 | [[package]] 1195 | name = "serde_derive" 1196 | version = "1.0.219" 1197 | source = "registry+https://github.com/rust-lang/crates.io-index" 1198 | checksum = "5b0276cf7f2c73365f7157c8123c21cd9a50fbbd844757af28ca1f5925fc2a00" 1199 | dependencies = [ 1200 | "proc-macro2", 1201 | "quote", 1202 | "syn", 1203 | ] 1204 | 1205 | [[package]] 1206 | name = "serde_json" 1207 | version = "1.0.140" 1208 | source = "registry+https://github.com/rust-lang/crates.io-index" 1209 | checksum = "20068b6e96dc6c9bd23e01df8827e6c7e1f2fddd43c21810382803c136b99373" 1210 | dependencies = [ 1211 | "itoa", 1212 | "memchr", 1213 | "ryu", 1214 | "serde", 1215 | ] 1216 | 1217 | [[package]] 1218 | name = "serde_urlencoded" 1219 | version = "0.7.1" 1220 | source = "registry+https://github.com/rust-lang/crates.io-index" 1221 | checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd" 1222 | dependencies = [ 1223 | "form_urlencoded", 1224 | "itoa", 1225 | "ryu", 1226 | "serde", 1227 | ] 1228 | 1229 | [[package]] 1230 | name = "shlex" 1231 | version = "1.3.0" 1232 | source = "registry+https://github.com/rust-lang/crates.io-index" 1233 | checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" 1234 | 1235 | [[package]] 1236 | name = "signal-hook" 1237 | version = "0.3.17" 1238 | source = "registry+https://github.com/rust-lang/crates.io-index" 1239 | checksum = "8621587d4798caf8eb44879d42e56b9a93ea5dcd315a6487c357130095b62801" 1240 | dependencies = [ 1241 | "libc", 1242 | "signal-hook-registry", 1243 | ] 1244 | 1245 | [[package]] 1246 | name = "signal-hook-mio" 1247 | version = "0.2.4" 1248 | source = "registry+https://github.com/rust-lang/crates.io-index" 1249 | checksum = "34db1a06d485c9142248b7a054f034b349b212551f3dfd19c94d45a754a217cd" 1250 | dependencies = [ 1251 | "libc", 1252 | "mio 0.8.11", 1253 | "signal-hook", 1254 | ] 1255 | 1256 | [[package]] 1257 | name = "signal-hook-registry" 1258 | version = "1.4.2" 1259 | source = "registry+https://github.com/rust-lang/crates.io-index" 1260 | checksum = "a9e9e0b4211b72e7b8b6e85c807d36c212bdb33ea8587f7569562a84df5465b1" 1261 | dependencies = [ 1262 | "libc", 1263 | ] 1264 | 1265 | [[package]] 1266 | name = "slab" 1267 | version = "0.4.9" 1268 | source = "registry+https://github.com/rust-lang/crates.io-index" 1269 | checksum = "8f92a496fb766b417c996b9c5e57daf2f7ad3b0bebe1ccfca4856390e3d3bb67" 1270 | dependencies = [ 1271 | "autocfg", 1272 | ] 1273 | 1274 | [[package]] 1275 | name = "smallvec" 1276 | version = "1.15.0" 1277 | source = "registry+https://github.com/rust-lang/crates.io-index" 1278 | checksum = "8917285742e9f3e1683f0a9c4e6b57960b7314d0b08d30d1ecd426713ee2eee9" 1279 | 1280 | [[package]] 1281 | name = "socket2" 1282 | version = "0.5.9" 1283 | source = "registry+https://github.com/rust-lang/crates.io-index" 1284 | checksum = "4f5fd57c80058a56cf5c777ab8a126398ece8e442983605d280a44ce79d0edef" 1285 | dependencies = [ 1286 | "libc", 1287 | "windows-sys 0.52.0", 1288 | ] 1289 | 1290 | [[package]] 1291 | name = "stable_deref_trait" 1292 | version = "1.2.0" 1293 | source = "registry+https://github.com/rust-lang/crates.io-index" 1294 | checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3" 1295 | 1296 | [[package]] 1297 | name = "strsim" 1298 | version = "0.11.1" 1299 | source = "registry+https://github.com/rust-lang/crates.io-index" 1300 | checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f" 1301 | 1302 | [[package]] 1303 | name = "subtle" 1304 | version = "2.6.1" 1305 | source = "registry+https://github.com/rust-lang/crates.io-index" 1306 | checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" 1307 | 1308 | [[package]] 1309 | name = "syn" 1310 | version = "2.0.100" 1311 | source = "registry+https://github.com/rust-lang/crates.io-index" 1312 | checksum = "b09a44accad81e1ba1cd74a32461ba89dee89095ba17b32f5d03683b1b1fc2a0" 1313 | dependencies = [ 1314 | "proc-macro2", 1315 | "quote", 1316 | "unicode-ident", 1317 | ] 1318 | 1319 | [[package]] 1320 | name = "sync_wrapper" 1321 | version = "1.0.2" 1322 | source = "registry+https://github.com/rust-lang/crates.io-index" 1323 | checksum = "0bf256ce5efdfa370213c1dabab5935a12e49f2c58d15e9eac2870d3b4f27263" 1324 | dependencies = [ 1325 | "futures-core", 1326 | ] 1327 | 1328 | [[package]] 1329 | name = "synstructure" 1330 | version = "0.13.1" 1331 | source = "registry+https://github.com/rust-lang/crates.io-index" 1332 | checksum = "c8af7666ab7b6390ab78131fb5b0fce11d6b7a6951602017c35fa82800708971" 1333 | dependencies = [ 1334 | "proc-macro2", 1335 | "quote", 1336 | "syn", 1337 | ] 1338 | 1339 | [[package]] 1340 | name = "system-configuration" 1341 | version = "0.6.1" 1342 | source = "registry+https://github.com/rust-lang/crates.io-index" 1343 | checksum = "3c879d448e9d986b661742763247d3693ed13609438cf3d006f51f5368a5ba6b" 1344 | dependencies = [ 1345 | "bitflags 2.9.0", 1346 | "core-foundation", 1347 | "system-configuration-sys", 1348 | ] 1349 | 1350 | [[package]] 1351 | name = "system-configuration-sys" 1352 | version = "0.6.0" 1353 | source = "registry+https://github.com/rust-lang/crates.io-index" 1354 | checksum = "8e1d1b10ced5ca923a1fcb8d03e96b8d3268065d724548c0211415ff6ac6bac4" 1355 | dependencies = [ 1356 | "core-foundation-sys", 1357 | "libc", 1358 | ] 1359 | 1360 | [[package]] 1361 | name = "tempfile" 1362 | version = "3.19.1" 1363 | source = "registry+https://github.com/rust-lang/crates.io-index" 1364 | checksum = "7437ac7763b9b123ccf33c338a5cc1bac6f69b45a136c19bdd8a65e3916435bf" 1365 | dependencies = [ 1366 | "fastrand", 1367 | "getrandom 0.3.2", 1368 | "once_cell", 1369 | "rustix", 1370 | "windows-sys 0.59.0", 1371 | ] 1372 | 1373 | [[package]] 1374 | name = "thread_local" 1375 | version = "1.1.8" 1376 | source = "registry+https://github.com/rust-lang/crates.io-index" 1377 | checksum = "8b9ef9bad013ada3808854ceac7b46812a6465ba368859a37e2100283d2d719c" 1378 | dependencies = [ 1379 | "cfg-if", 1380 | "once_cell", 1381 | ] 1382 | 1383 | [[package]] 1384 | name = "tinystr" 1385 | version = "0.7.6" 1386 | source = "registry+https://github.com/rust-lang/crates.io-index" 1387 | checksum = "9117f5d4db391c1cf6927e7bea3db74b9a1c1add8f7eda9ffd5364f40f57b82f" 1388 | dependencies = [ 1389 | "displaydoc", 1390 | "zerovec", 1391 | ] 1392 | 1393 | [[package]] 1394 | name = "tokio" 1395 | version = "1.44.2" 1396 | source = "registry+https://github.com/rust-lang/crates.io-index" 1397 | checksum = "e6b88822cbe49de4185e3a4cbf8321dd487cf5fe0c5c65695fef6346371e9c48" 1398 | dependencies = [ 1399 | "backtrace", 1400 | "bytes", 1401 | "libc", 1402 | "mio 1.0.3", 1403 | "pin-project-lite", 1404 | "socket2", 1405 | "windows-sys 0.52.0", 1406 | ] 1407 | 1408 | [[package]] 1409 | name = "tokio-native-tls" 1410 | version = "0.3.1" 1411 | source = "registry+https://github.com/rust-lang/crates.io-index" 1412 | checksum = "bbae76ab933c85776efabc971569dd6119c580d8f5d448769dec1764bf796ef2" 1413 | dependencies = [ 1414 | "native-tls", 1415 | "tokio", 1416 | ] 1417 | 1418 | [[package]] 1419 | name = "tokio-rustls" 1420 | version = "0.26.2" 1421 | source = "registry+https://github.com/rust-lang/crates.io-index" 1422 | checksum = "8e727b36a1a0e8b74c376ac2211e40c2c8af09fb4013c60d910495810f008e9b" 1423 | dependencies = [ 1424 | "rustls", 1425 | "tokio", 1426 | ] 1427 | 1428 | [[package]] 1429 | name = "tokio-util" 1430 | version = "0.7.14" 1431 | source = "registry+https://github.com/rust-lang/crates.io-index" 1432 | checksum = "6b9590b93e6fcc1739458317cccd391ad3955e2bde8913edf6f95f9e65a8f034" 1433 | dependencies = [ 1434 | "bytes", 1435 | "futures-core", 1436 | "futures-sink", 1437 | "pin-project-lite", 1438 | "tokio", 1439 | ] 1440 | 1441 | [[package]] 1442 | name = "tower" 1443 | version = "0.5.2" 1444 | source = "registry+https://github.com/rust-lang/crates.io-index" 1445 | checksum = "d039ad9159c98b70ecfd540b2573b97f7f52c3e8d9f8ad57a24b916a536975f9" 1446 | dependencies = [ 1447 | "futures-core", 1448 | "futures-util", 1449 | "pin-project-lite", 1450 | "sync_wrapper", 1451 | "tokio", 1452 | "tower-layer", 1453 | "tower-service", 1454 | ] 1455 | 1456 | [[package]] 1457 | name = "tower-layer" 1458 | version = "0.3.3" 1459 | source = "registry+https://github.com/rust-lang/crates.io-index" 1460 | checksum = "121c2a6cda46980bb0fcd1647ffaf6cd3fc79a013de288782836f6df9c48780e" 1461 | 1462 | [[package]] 1463 | name = "tower-service" 1464 | version = "0.3.3" 1465 | source = "registry+https://github.com/rust-lang/crates.io-index" 1466 | checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3" 1467 | 1468 | [[package]] 1469 | name = "tracing" 1470 | version = "0.1.41" 1471 | source = "registry+https://github.com/rust-lang/crates.io-index" 1472 | checksum = "784e0ac535deb450455cbfa28a6f0df145ea1bb7ae51b821cf5e7927fdcfbdd0" 1473 | dependencies = [ 1474 | "pin-project-lite", 1475 | "tracing-core", 1476 | ] 1477 | 1478 | [[package]] 1479 | name = "tracing-core" 1480 | version = "0.1.33" 1481 | source = "registry+https://github.com/rust-lang/crates.io-index" 1482 | checksum = "e672c95779cf947c5311f83787af4fa8fffd12fb27e4993211a84bdfd9610f9c" 1483 | dependencies = [ 1484 | "once_cell", 1485 | ] 1486 | 1487 | [[package]] 1488 | name = "try-lock" 1489 | version = "0.2.5" 1490 | source = "registry+https://github.com/rust-lang/crates.io-index" 1491 | checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" 1492 | 1493 | [[package]] 1494 | name = "unicode-ident" 1495 | version = "1.0.18" 1496 | source = "registry+https://github.com/rust-lang/crates.io-index" 1497 | checksum = "5a5f39404a5da50712a4c1eecf25e90dd62b613502b7e925fd4e4d19b5c96512" 1498 | 1499 | [[package]] 1500 | name = "unicode-segmentation" 1501 | version = "1.12.0" 1502 | source = "registry+https://github.com/rust-lang/crates.io-index" 1503 | checksum = "f6ccf251212114b54433ec949fd6a7841275f9ada20dddd2f29e9ceea4501493" 1504 | 1505 | [[package]] 1506 | name = "unicode-width" 1507 | version = "0.1.14" 1508 | source = "registry+https://github.com/rust-lang/crates.io-index" 1509 | checksum = "7dd6e30e90baa6f72411720665d41d89b9a3d039dc45b8faea1ddd07f617f6af" 1510 | 1511 | [[package]] 1512 | name = "untrusted" 1513 | version = "0.9.0" 1514 | source = "registry+https://github.com/rust-lang/crates.io-index" 1515 | checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" 1516 | 1517 | [[package]] 1518 | name = "url" 1519 | version = "2.5.4" 1520 | source = "registry+https://github.com/rust-lang/crates.io-index" 1521 | checksum = "32f8b686cadd1473f4bd0117a5d28d36b1ade384ea9b5069a1c40aefed7fda60" 1522 | dependencies = [ 1523 | "form_urlencoded", 1524 | "idna", 1525 | "percent-encoding", 1526 | ] 1527 | 1528 | [[package]] 1529 | name = "utf16_iter" 1530 | version = "1.0.5" 1531 | source = "registry+https://github.com/rust-lang/crates.io-index" 1532 | checksum = "c8232dd3cdaed5356e0f716d285e4b40b932ac434100fe9b7e0e8e935b9e6246" 1533 | 1534 | [[package]] 1535 | name = "utf8_iter" 1536 | version = "1.0.4" 1537 | source = "registry+https://github.com/rust-lang/crates.io-index" 1538 | checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be" 1539 | 1540 | [[package]] 1541 | name = "utf8parse" 1542 | version = "0.2.2" 1543 | source = "registry+https://github.com/rust-lang/crates.io-index" 1544 | checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821" 1545 | 1546 | [[package]] 1547 | name = "vcpkg" 1548 | version = "0.2.15" 1549 | source = "registry+https://github.com/rust-lang/crates.io-index" 1550 | checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426" 1551 | 1552 | [[package]] 1553 | name = "want" 1554 | version = "0.3.1" 1555 | source = "registry+https://github.com/rust-lang/crates.io-index" 1556 | checksum = "bfa7760aed19e106de2c7c0b581b509f2f25d3dacaf737cb82ac61bc6d760b0e" 1557 | dependencies = [ 1558 | "try-lock", 1559 | ] 1560 | 1561 | [[package]] 1562 | name = "wasi" 1563 | version = "0.11.0+wasi-snapshot-preview1" 1564 | source = "registry+https://github.com/rust-lang/crates.io-index" 1565 | checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" 1566 | 1567 | [[package]] 1568 | name = "wasi" 1569 | version = "0.14.2+wasi-0.2.4" 1570 | source = "registry+https://github.com/rust-lang/crates.io-index" 1571 | checksum = "9683f9a5a998d873c0d21fcbe3c083009670149a8fab228644b8bd36b2c48cb3" 1572 | dependencies = [ 1573 | "wit-bindgen-rt", 1574 | ] 1575 | 1576 | [[package]] 1577 | name = "wasm-bindgen" 1578 | version = "0.2.100" 1579 | source = "registry+https://github.com/rust-lang/crates.io-index" 1580 | checksum = "1edc8929d7499fc4e8f0be2262a241556cfc54a0bea223790e71446f2aab1ef5" 1581 | dependencies = [ 1582 | "cfg-if", 1583 | "once_cell", 1584 | "rustversion", 1585 | "wasm-bindgen-macro", 1586 | ] 1587 | 1588 | [[package]] 1589 | name = "wasm-bindgen-backend" 1590 | version = "0.2.100" 1591 | source = "registry+https://github.com/rust-lang/crates.io-index" 1592 | checksum = "2f0a0651a5c2bc21487bde11ee802ccaf4c51935d0d3d42a6101f98161700bc6" 1593 | dependencies = [ 1594 | "bumpalo", 1595 | "log", 1596 | "proc-macro2", 1597 | "quote", 1598 | "syn", 1599 | "wasm-bindgen-shared", 1600 | ] 1601 | 1602 | [[package]] 1603 | name = "wasm-bindgen-futures" 1604 | version = "0.4.50" 1605 | source = "registry+https://github.com/rust-lang/crates.io-index" 1606 | checksum = "555d470ec0bc3bb57890405e5d4322cc9ea83cebb085523ced7be4144dac1e61" 1607 | dependencies = [ 1608 | "cfg-if", 1609 | "js-sys", 1610 | "once_cell", 1611 | "wasm-bindgen", 1612 | "web-sys", 1613 | ] 1614 | 1615 | [[package]] 1616 | name = "wasm-bindgen-macro" 1617 | version = "0.2.100" 1618 | source = "registry+https://github.com/rust-lang/crates.io-index" 1619 | checksum = "7fe63fc6d09ed3792bd0897b314f53de8e16568c2b3f7982f468c0bf9bd0b407" 1620 | dependencies = [ 1621 | "quote", 1622 | "wasm-bindgen-macro-support", 1623 | ] 1624 | 1625 | [[package]] 1626 | name = "wasm-bindgen-macro-support" 1627 | version = "0.2.100" 1628 | source = "registry+https://github.com/rust-lang/crates.io-index" 1629 | checksum = "8ae87ea40c9f689fc23f209965b6fb8a99ad69aeeb0231408be24920604395de" 1630 | dependencies = [ 1631 | "proc-macro2", 1632 | "quote", 1633 | "syn", 1634 | "wasm-bindgen-backend", 1635 | "wasm-bindgen-shared", 1636 | ] 1637 | 1638 | [[package]] 1639 | name = "wasm-bindgen-shared" 1640 | version = "0.2.100" 1641 | source = "registry+https://github.com/rust-lang/crates.io-index" 1642 | checksum = "1a05d73b933a847d6cccdda8f838a22ff101ad9bf93e33684f39c1f5f0eece3d" 1643 | dependencies = [ 1644 | "unicode-ident", 1645 | ] 1646 | 1647 | [[package]] 1648 | name = "web-sys" 1649 | version = "0.3.77" 1650 | source = "registry+https://github.com/rust-lang/crates.io-index" 1651 | checksum = "33b6dd2ef9186f1f2072e409e99cd22a975331a6b3591b12c764e0e55c60d5d2" 1652 | dependencies = [ 1653 | "js-sys", 1654 | "wasm-bindgen", 1655 | ] 1656 | 1657 | [[package]] 1658 | name = "winapi" 1659 | version = "0.3.9" 1660 | source = "registry+https://github.com/rust-lang/crates.io-index" 1661 | checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" 1662 | dependencies = [ 1663 | "winapi-i686-pc-windows-gnu", 1664 | "winapi-x86_64-pc-windows-gnu", 1665 | ] 1666 | 1667 | [[package]] 1668 | name = "winapi-i686-pc-windows-gnu" 1669 | version = "0.4.0" 1670 | source = "registry+https://github.com/rust-lang/crates.io-index" 1671 | checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" 1672 | 1673 | [[package]] 1674 | name = "winapi-x86_64-pc-windows-gnu" 1675 | version = "0.4.0" 1676 | source = "registry+https://github.com/rust-lang/crates.io-index" 1677 | checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" 1678 | 1679 | [[package]] 1680 | name = "windows-link" 1681 | version = "0.1.1" 1682 | source = "registry+https://github.com/rust-lang/crates.io-index" 1683 | checksum = "76840935b766e1b0a05c0066835fb9ec80071d4c09a16f6bd5f7e655e3c14c38" 1684 | 1685 | [[package]] 1686 | name = "windows-registry" 1687 | version = "0.4.0" 1688 | source = "registry+https://github.com/rust-lang/crates.io-index" 1689 | checksum = "4286ad90ddb45071efd1a66dfa43eb02dd0dfbae1545ad6cc3c51cf34d7e8ba3" 1690 | dependencies = [ 1691 | "windows-result", 1692 | "windows-strings", 1693 | "windows-targets 0.53.0", 1694 | ] 1695 | 1696 | [[package]] 1697 | name = "windows-result" 1698 | version = "0.3.2" 1699 | source = "registry+https://github.com/rust-lang/crates.io-index" 1700 | checksum = "c64fd11a4fd95df68efcfee5f44a294fe71b8bc6a91993e2791938abcc712252" 1701 | dependencies = [ 1702 | "windows-link", 1703 | ] 1704 | 1705 | [[package]] 1706 | name = "windows-strings" 1707 | version = "0.3.1" 1708 | source = "registry+https://github.com/rust-lang/crates.io-index" 1709 | checksum = "87fa48cc5d406560701792be122a10132491cff9d0aeb23583cc2dcafc847319" 1710 | dependencies = [ 1711 | "windows-link", 1712 | ] 1713 | 1714 | [[package]] 1715 | name = "windows-sys" 1716 | version = "0.48.0" 1717 | source = "registry+https://github.com/rust-lang/crates.io-index" 1718 | checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9" 1719 | dependencies = [ 1720 | "windows-targets 0.48.5", 1721 | ] 1722 | 1723 | [[package]] 1724 | name = "windows-sys" 1725 | version = "0.52.0" 1726 | source = "registry+https://github.com/rust-lang/crates.io-index" 1727 | checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" 1728 | dependencies = [ 1729 | "windows-targets 0.52.6", 1730 | ] 1731 | 1732 | [[package]] 1733 | name = "windows-sys" 1734 | version = "0.59.0" 1735 | source = "registry+https://github.com/rust-lang/crates.io-index" 1736 | checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b" 1737 | dependencies = [ 1738 | "windows-targets 0.52.6", 1739 | ] 1740 | 1741 | [[package]] 1742 | name = "windows-targets" 1743 | version = "0.48.5" 1744 | source = "registry+https://github.com/rust-lang/crates.io-index" 1745 | checksum = "9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c" 1746 | dependencies = [ 1747 | "windows_aarch64_gnullvm 0.48.5", 1748 | "windows_aarch64_msvc 0.48.5", 1749 | "windows_i686_gnu 0.48.5", 1750 | "windows_i686_msvc 0.48.5", 1751 | "windows_x86_64_gnu 0.48.5", 1752 | "windows_x86_64_gnullvm 0.48.5", 1753 | "windows_x86_64_msvc 0.48.5", 1754 | ] 1755 | 1756 | [[package]] 1757 | name = "windows-targets" 1758 | version = "0.52.6" 1759 | source = "registry+https://github.com/rust-lang/crates.io-index" 1760 | checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" 1761 | dependencies = [ 1762 | "windows_aarch64_gnullvm 0.52.6", 1763 | "windows_aarch64_msvc 0.52.6", 1764 | "windows_i686_gnu 0.52.6", 1765 | "windows_i686_gnullvm 0.52.6", 1766 | "windows_i686_msvc 0.52.6", 1767 | "windows_x86_64_gnu 0.52.6", 1768 | "windows_x86_64_gnullvm 0.52.6", 1769 | "windows_x86_64_msvc 0.52.6", 1770 | ] 1771 | 1772 | [[package]] 1773 | name = "windows-targets" 1774 | version = "0.53.0" 1775 | source = "registry+https://github.com/rust-lang/crates.io-index" 1776 | checksum = "b1e4c7e8ceaaf9cb7d7507c974735728ab453b67ef8f18febdd7c11fe59dca8b" 1777 | dependencies = [ 1778 | "windows_aarch64_gnullvm 0.53.0", 1779 | "windows_aarch64_msvc 0.53.0", 1780 | "windows_i686_gnu 0.53.0", 1781 | "windows_i686_gnullvm 0.53.0", 1782 | "windows_i686_msvc 0.53.0", 1783 | "windows_x86_64_gnu 0.53.0", 1784 | "windows_x86_64_gnullvm 0.53.0", 1785 | "windows_x86_64_msvc 0.53.0", 1786 | ] 1787 | 1788 | [[package]] 1789 | name = "windows_aarch64_gnullvm" 1790 | version = "0.48.5" 1791 | source = "registry+https://github.com/rust-lang/crates.io-index" 1792 | checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8" 1793 | 1794 | [[package]] 1795 | name = "windows_aarch64_gnullvm" 1796 | version = "0.52.6" 1797 | source = "registry+https://github.com/rust-lang/crates.io-index" 1798 | checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" 1799 | 1800 | [[package]] 1801 | name = "windows_aarch64_gnullvm" 1802 | version = "0.53.0" 1803 | source = "registry+https://github.com/rust-lang/crates.io-index" 1804 | checksum = "86b8d5f90ddd19cb4a147a5fa63ca848db3df085e25fee3cc10b39b6eebae764" 1805 | 1806 | [[package]] 1807 | name = "windows_aarch64_msvc" 1808 | version = "0.48.5" 1809 | source = "registry+https://github.com/rust-lang/crates.io-index" 1810 | checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc" 1811 | 1812 | [[package]] 1813 | name = "windows_aarch64_msvc" 1814 | version = "0.52.6" 1815 | source = "registry+https://github.com/rust-lang/crates.io-index" 1816 | checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" 1817 | 1818 | [[package]] 1819 | name = "windows_aarch64_msvc" 1820 | version = "0.53.0" 1821 | source = "registry+https://github.com/rust-lang/crates.io-index" 1822 | checksum = "c7651a1f62a11b8cbd5e0d42526e55f2c99886c77e007179efff86c2b137e66c" 1823 | 1824 | [[package]] 1825 | name = "windows_i686_gnu" 1826 | version = "0.48.5" 1827 | source = "registry+https://github.com/rust-lang/crates.io-index" 1828 | checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e" 1829 | 1830 | [[package]] 1831 | name = "windows_i686_gnu" 1832 | version = "0.52.6" 1833 | source = "registry+https://github.com/rust-lang/crates.io-index" 1834 | checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" 1835 | 1836 | [[package]] 1837 | name = "windows_i686_gnu" 1838 | version = "0.53.0" 1839 | source = "registry+https://github.com/rust-lang/crates.io-index" 1840 | checksum = "c1dc67659d35f387f5f6c479dc4e28f1d4bb90ddd1a5d3da2e5d97b42d6272c3" 1841 | 1842 | [[package]] 1843 | name = "windows_i686_gnullvm" 1844 | version = "0.52.6" 1845 | source = "registry+https://github.com/rust-lang/crates.io-index" 1846 | checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" 1847 | 1848 | [[package]] 1849 | name = "windows_i686_gnullvm" 1850 | version = "0.53.0" 1851 | source = "registry+https://github.com/rust-lang/crates.io-index" 1852 | checksum = "9ce6ccbdedbf6d6354471319e781c0dfef054c81fbc7cf83f338a4296c0cae11" 1853 | 1854 | [[package]] 1855 | name = "windows_i686_msvc" 1856 | version = "0.48.5" 1857 | source = "registry+https://github.com/rust-lang/crates.io-index" 1858 | checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406" 1859 | 1860 | [[package]] 1861 | name = "windows_i686_msvc" 1862 | version = "0.52.6" 1863 | source = "registry+https://github.com/rust-lang/crates.io-index" 1864 | checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" 1865 | 1866 | [[package]] 1867 | name = "windows_i686_msvc" 1868 | version = "0.53.0" 1869 | source = "registry+https://github.com/rust-lang/crates.io-index" 1870 | checksum = "581fee95406bb13382d2f65cd4a908ca7b1e4c2f1917f143ba16efe98a589b5d" 1871 | 1872 | [[package]] 1873 | name = "windows_x86_64_gnu" 1874 | version = "0.48.5" 1875 | source = "registry+https://github.com/rust-lang/crates.io-index" 1876 | checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e" 1877 | 1878 | [[package]] 1879 | name = "windows_x86_64_gnu" 1880 | version = "0.52.6" 1881 | source = "registry+https://github.com/rust-lang/crates.io-index" 1882 | checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" 1883 | 1884 | [[package]] 1885 | name = "windows_x86_64_gnu" 1886 | version = "0.53.0" 1887 | source = "registry+https://github.com/rust-lang/crates.io-index" 1888 | checksum = "2e55b5ac9ea33f2fc1716d1742db15574fd6fc8dadc51caab1c16a3d3b4190ba" 1889 | 1890 | [[package]] 1891 | name = "windows_x86_64_gnullvm" 1892 | version = "0.48.5" 1893 | source = "registry+https://github.com/rust-lang/crates.io-index" 1894 | checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc" 1895 | 1896 | [[package]] 1897 | name = "windows_x86_64_gnullvm" 1898 | version = "0.52.6" 1899 | source = "registry+https://github.com/rust-lang/crates.io-index" 1900 | checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" 1901 | 1902 | [[package]] 1903 | name = "windows_x86_64_gnullvm" 1904 | version = "0.53.0" 1905 | source = "registry+https://github.com/rust-lang/crates.io-index" 1906 | checksum = "0a6e035dd0599267ce1ee132e51c27dd29437f63325753051e71dd9e42406c57" 1907 | 1908 | [[package]] 1909 | name = "windows_x86_64_msvc" 1910 | version = "0.48.5" 1911 | source = "registry+https://github.com/rust-lang/crates.io-index" 1912 | checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538" 1913 | 1914 | [[package]] 1915 | name = "windows_x86_64_msvc" 1916 | version = "0.52.6" 1917 | source = "registry+https://github.com/rust-lang/crates.io-index" 1918 | checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" 1919 | 1920 | [[package]] 1921 | name = "windows_x86_64_msvc" 1922 | version = "0.53.0" 1923 | source = "registry+https://github.com/rust-lang/crates.io-index" 1924 | checksum = "271414315aff87387382ec3d271b52d7ae78726f5d44ac98b4f4030c91880486" 1925 | 1926 | [[package]] 1927 | name = "wit-bindgen-rt" 1928 | version = "0.39.0" 1929 | source = "registry+https://github.com/rust-lang/crates.io-index" 1930 | checksum = "6f42320e61fe2cfd34354ecb597f86f413484a798ba44a8ca1165c58d42da6c1" 1931 | dependencies = [ 1932 | "bitflags 2.9.0", 1933 | ] 1934 | 1935 | [[package]] 1936 | name = "write16" 1937 | version = "1.0.0" 1938 | source = "registry+https://github.com/rust-lang/crates.io-index" 1939 | checksum = "d1890f4022759daae28ed4fe62859b1236caebfc61ede2f63ed4e695f3f6d936" 1940 | 1941 | [[package]] 1942 | name = "writeable" 1943 | version = "0.5.5" 1944 | source = "registry+https://github.com/rust-lang/crates.io-index" 1945 | checksum = "1e9df38ee2d2c3c5948ea468a8406ff0db0b29ae1ffde1bcf20ef305bcc95c51" 1946 | 1947 | [[package]] 1948 | name = "yoke" 1949 | version = "0.7.5" 1950 | source = "registry+https://github.com/rust-lang/crates.io-index" 1951 | checksum = "120e6aef9aa629e3d4f52dc8cc43a015c7724194c97dfaf45180d2daf2b77f40" 1952 | dependencies = [ 1953 | "serde", 1954 | "stable_deref_trait", 1955 | "yoke-derive", 1956 | "zerofrom", 1957 | ] 1958 | 1959 | [[package]] 1960 | name = "yoke-derive" 1961 | version = "0.7.5" 1962 | source = "registry+https://github.com/rust-lang/crates.io-index" 1963 | checksum = "2380878cad4ac9aac1e2435f3eb4020e8374b5f13c296cb75b4620ff8e229154" 1964 | dependencies = [ 1965 | "proc-macro2", 1966 | "quote", 1967 | "syn", 1968 | "synstructure", 1969 | ] 1970 | 1971 | [[package]] 1972 | name = "zerofrom" 1973 | version = "0.1.6" 1974 | source = "registry+https://github.com/rust-lang/crates.io-index" 1975 | checksum = "50cc42e0333e05660c3587f3bf9d0478688e15d870fab3346451ce7f8c9fbea5" 1976 | dependencies = [ 1977 | "zerofrom-derive", 1978 | ] 1979 | 1980 | [[package]] 1981 | name = "zerofrom-derive" 1982 | version = "0.1.6" 1983 | source = "registry+https://github.com/rust-lang/crates.io-index" 1984 | checksum = "d71e5d6e06ab090c67b5e44993ec16b72dcbaabc526db883a360057678b48502" 1985 | dependencies = [ 1986 | "proc-macro2", 1987 | "quote", 1988 | "syn", 1989 | "synstructure", 1990 | ] 1991 | 1992 | [[package]] 1993 | name = "zeroize" 1994 | version = "1.8.1" 1995 | source = "registry+https://github.com/rust-lang/crates.io-index" 1996 | checksum = "ced3678a2879b30306d323f4542626697a464a97c0a07c9aebf7ebca65cd4dde" 1997 | 1998 | [[package]] 1999 | name = "zerovec" 2000 | version = "0.10.4" 2001 | source = "registry+https://github.com/rust-lang/crates.io-index" 2002 | checksum = "aa2b893d79df23bfb12d5461018d408ea19dfafe76c2c7ef6d4eba614f8ff079" 2003 | dependencies = [ 2004 | "yoke", 2005 | "zerofrom", 2006 | "zerovec-derive", 2007 | ] 2008 | 2009 | [[package]] 2010 | name = "zerovec-derive" 2011 | version = "0.10.3" 2012 | source = "registry+https://github.com/rust-lang/crates.io-index" 2013 | checksum = "6eafa6dfb17584ea3e2bd6e76e0cc15ad7af12b09abdd1ca55961bed9b1063c6" 2014 | dependencies = [ 2015 | "proc-macro2", 2016 | "quote", 2017 | "syn", 2018 | ] 2019 | -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "mcsast" 3 | authors = ["MagicTeaMC "] 4 | description = "Minecraft server auto setup tool, simplified!" 5 | version = "2.1.0" 6 | edition = "2021" 7 | license = "GPL-3.0" 8 | 9 | [dependencies] 10 | clap = { version = "4.5.16", features = ["derive"] } 11 | colored = "2.1.0" 12 | inquire = "0.7.5" 13 | reqwest = { version = "0.12.7", features = ["blocking", "json"] } 14 | serde_json = "1.0.127" -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # MCSAST v2 2 | [![Discord](https://img.shields.io/discord/891325967203729472?color=5865F2&label=discord&style=for-the-badge)](https://discord.gg/uQ4UXANnP2) 3 | 4 | Setup a new Paper / Purpur / Folia / Velocity server quickly and easily. 5 | ## Usage 6 | Install via Cargo 7 | ``` 8 | cargo install mcsast 9 | ``` 10 | Run with command 11 | ``` 12 | mcsast 13 | ``` 14 | Give information to us with terminal: 15 | image 16 | 17 | If you want it to setup automantic, here is a command 18 | Note: Use `--mc-version=3.4.0-SNAPSHOT --eula=false` if you are installing Velocity 19 | ``` 20 | mcsast --software=paper --mc-version=1.21.1 --eula=true -y 21 | ``` 22 | -------------------------------------------------------------------------------- /clean.sh: -------------------------------------------------------------------------------- 1 | rm -rf ./server.jar 2 | rm -rf ./eula.txt -------------------------------------------------------------------------------- /src/eula.rs: -------------------------------------------------------------------------------- 1 | use std::{fs, io::Write}; 2 | 3 | pub fn add_eula() -> Result<(), Box> { 4 | let mut file = fs::File::create("eula.txt")?; 5 | 6 | file.write_all("eula=true".as_bytes())?; 7 | Ok(()) 8 | } 9 | -------------------------------------------------------------------------------- /src/main.rs: -------------------------------------------------------------------------------- 1 | use std::{io::Write, process::exit}; 2 | 3 | use clap::{Parser, ValueEnum}; 4 | use colored::Colorize; 5 | use inquire::{Confirm, Select, Text}; 6 | 7 | mod eula; 8 | mod softwares; 9 | 10 | #[derive(Parser)] 11 | #[command( 12 | version = "2.1.1-SNAPSHOT", 13 | author = "Maoyue (MagicTeaMC)", 14 | about = "Minecraft server auto setup tool, simplified!" 15 | )] 16 | struct CLI { 17 | /// Software to use (paper/folia/purpur) 18 | #[arg(short, long, value_enum)] 19 | software: Option, 20 | 21 | /// Minecraft version (e.g., 1.21.1) 22 | #[arg(short, long)] 23 | mc_version: Option, 24 | 25 | /// EULA agreement (true/false), reference: www.minecraft.net/en-us/eula 26 | #[arg(short, long)] 27 | eula: Option, 28 | 29 | /// Skip confirmation prompt? 30 | #[arg(short, default_value_t = false)] 31 | yes: bool, 32 | } 33 | 34 | #[derive(ValueEnum, Clone)] 35 | enum Software { 36 | Paper, 37 | Folia, 38 | Purpur, 39 | Velocity, 40 | } 41 | 42 | fn inquired(binding: Result) -> T { 43 | match binding { 44 | Ok(t) => t, 45 | Err(e) => { 46 | println!("{}: failed to inquire ({:?})", "error".red().bold(), e); 47 | exit(-1); 48 | } 49 | } 50 | } 51 | 52 | impl Software { 53 | fn from_name(name: String) -> Self { 54 | match name.as_str() { 55 | "paper" => Self::Paper, 56 | "folia" => Self::Folia, 57 | "purpur" => Self::Purpur, 58 | "velocity" => Self::Velocity, 59 | _ => panic!("Invalid software name: {}", name), 60 | } 61 | } 62 | 63 | fn name(&self) -> String { 64 | match self { 65 | Self::Paper => "paper", 66 | Self::Folia => "folia", 67 | Self::Purpur => "purpur", 68 | Self::Velocity => "velocity", 69 | } 70 | .to_string() 71 | } 72 | } 73 | 74 | fn main() -> Result<(), Box> { 75 | let cli = CLI::parse(); 76 | 77 | let software = { 78 | if cli.software.is_none() { 79 | let binding = Select::new( 80 | "💽 Which server software are you using?", 81 | vec!["Paper", "Folia", "Purpur", "Velocity"], 82 | ) 83 | .prompt(); 84 | 85 | Software::from_name(inquired(binding).to_lowercase().to_string()) 86 | } else { 87 | cli.software.unwrap() 88 | } 89 | }; 90 | let version = { 91 | if software.name() == "velocity" { 92 | "3.4.0-SNAPSHOT".to_string() 93 | } else if cli.mc_version.is_none() { 94 | let binding = Text::new("🪨 What version of Minecraft are you using?") 95 | .with_default("1.21.1") 96 | .prompt(); 97 | 98 | inquired::(binding) 99 | } else { 100 | cli.mc_version.unwrap() 101 | } 102 | }; 103 | let eula = { 104 | if software.name() == "velocity" { 105 | false 106 | } else if cli.eula.is_none() { 107 | let binding = Confirm::new( 108 | format!( 109 | "📄 Do you agree to the {}?", 110 | "\x1B]8;;https://www.minecraft.net/en-us/eula\x1B\\Mojang EULA\x1B]8;;\x1B\\" 111 | .purple() 112 | ) 113 | .as_str(), 114 | ) 115 | .with_placeholder("Y/n") 116 | .prompt(); 117 | 118 | inquired::(binding) 119 | } else { 120 | cli.eula.unwrap() 121 | } 122 | }; 123 | 124 | if software.name() != "velocity" { 125 | println!( 126 | "\n✨ I will setup {}, with Minecraft server version {}, {} Mojang's EULA in this directory {}{}{}.", 127 | software.name().bold().yellow(), 128 | version.bold().blue(), 129 | { 130 | if eula { 131 | "accepting".bold().green() 132 | } else { 133 | "denying".bold().red() 134 | } 135 | }, 136 | "(".dimmed(), 137 | { 138 | let current_dir = std::env::current_dir().unwrap(); 139 | current_dir 140 | .to_owned() 141 | .file_name() 142 | .and_then(|name| name.to_str()) 143 | .unwrap_or("") 144 | }.dimmed(), 145 | ")".dimmed() 146 | ); 147 | } else { 148 | println!( 149 | "\n✨ I will setup {} in this directory {}{}{}.", 150 | software.name().bold().yellow(), 151 | "(".dimmed(), 152 | { 153 | let current_dir = std::env::current_dir().unwrap(); 154 | current_dir 155 | .to_owned() 156 | .file_name() 157 | .and_then(|name| name.to_str()) 158 | .unwrap_or("") 159 | } 160 | .dimmed(), 161 | ")".dimmed() 162 | ); 163 | } 164 | 165 | if !cli.yes { 166 | match Confirm::new("Proceed?").with_default(true).prompt() { 167 | Ok(result) => { 168 | if !result { 169 | println!( 170 | "\n🎏 You can pass `--software={} --mc-version={} --eula={}` to get everything up and running!\n", 171 | software.name().bold().yellow(), 172 | version.bold().blue(), 173 | { 174 | if eula { 175 | "true".bold().green() 176 | } else { 177 | "false".bold().red() 178 | } 179 | } 180 | ); 181 | println!("{}: aborted", "warning".yellow().bold()); 182 | exit(-1); 183 | } 184 | } 185 | Err(e) => { 186 | println!("{}: failed to inquire ({:?})", "error".red().bold(), e); 187 | exit(-1); 188 | } 189 | } 190 | } 191 | 192 | println!(); 193 | 194 | if eula && software.name() != "velocity" { 195 | print!("(1/2) Adding EULA... "); 196 | match eula::add_eula() { 197 | Err(e) => { 198 | println!("{}: failed to add EULA ({:?})", "error".red().bold(), e); 199 | exit(-1); 200 | } 201 | Ok(_) => println!("{}", "✅ done!".bold().green()), 202 | } 203 | } 204 | 205 | print!( 206 | "{}Downloading {}... ", 207 | { 208 | if eula && software.name() != "velocity" { 209 | "(2/2) " 210 | } else { 211 | "(1/1) " 212 | } 213 | }, 214 | software.name().cyan().bold() 215 | ); 216 | std::io::stdout().flush()?; 217 | 218 | match softwares::get(software.name(), version) { 219 | Err(e) => { 220 | println!(); 221 | println!("{}: {}", "error".bold().red(), e); 222 | exit(-1); 223 | } 224 | Ok(_) => println!("{}", "✅ done!".bold().green()), 225 | } 226 | 227 | println!("\n{}", "Summary".bold().underline()); 228 | if eula && software.name() != "velocity" { 229 | println!(" {} eula.txt", "+".green().bold()); 230 | } 231 | 232 | println!( 233 | " {} server.jar {}{}{}", 234 | "+".green().bold(), 235 | "(".dimmed(), 236 | software.name().dimmed(), 237 | ")".dimmed() 238 | ); 239 | 240 | Ok(()) 241 | } 242 | -------------------------------------------------------------------------------- /src/softwares.rs: -------------------------------------------------------------------------------- 1 | use std::{fs, io::Write}; 2 | 3 | fn download_jar(res: reqwest::blocking::Response) -> Result<(), Box> { 4 | let mut file = fs::File::create("server.jar")?; 5 | file.write_all(&res.bytes().unwrap())?; 6 | Ok(()) 7 | } 8 | 9 | pub fn get_purpur(version: String) -> Result<(), Box> { 10 | let client = reqwest::blocking::Client::new(); 11 | let res = client 12 | .get(format!( 13 | "https://api.purpurmc.org/v2/purpur/{}/latest/download", 14 | version 15 | )) 16 | .send(); 17 | 18 | if let Ok(res) = res { 19 | download_jar(res)?; 20 | Ok(()) 21 | } else { 22 | Err(format!("failed to download Purpur").into()) 23 | } 24 | } 25 | 26 | pub fn get_other(software: String, version: String) -> Result<(), Box> { 27 | let client = reqwest::blocking::Client::new(); 28 | let res = client 29 | .get(format!( 30 | "https://api.papermc.io/v2/projects/{}/versions/{}/builds", 31 | software, version 32 | )) 33 | .send(); 34 | 35 | if let Ok(res) = res { 36 | let json: serde_json::Value = res.json()?; 37 | 38 | let latest_build = json["builds"] 39 | .as_array() 40 | .unwrap_or(&vec![]) 41 | .iter() 42 | .filter_map(|build| build["build"].as_u64()) 43 | .max(); 44 | 45 | if let Some(latest_build) = latest_build { 46 | let jar_name = format!("{}-{}-{}.jar", software, version, latest_build); 47 | let res = client 48 | .get(format!( 49 | "https://api.papermc.io/v2/projects/{}/versions/{}/builds/{}/downloads/{}", 50 | software.to_lowercase(), 51 | version, 52 | latest_build, 53 | jar_name 54 | )) 55 | .send(); 56 | if let Ok(res) = res { 57 | download_jar(res)?; 58 | Ok(()) 59 | } else { 60 | Err(format!("failed to download {}", software).into()) 61 | } 62 | } else { 63 | Err(format!("failed to download {}", software).into()) 64 | } 65 | } else { 66 | Err(format!("failed to download {}", software).into()) 67 | } 68 | } 69 | 70 | pub fn get(name: String, version: String) -> Result<(), Box> { 71 | match name.as_str() { 72 | "purpur" => get_purpur(version), 73 | _ => get_other(name, version), 74 | } 75 | } 76 | --------------------------------------------------------------------------------