From 7e8ba1277d88d9f70c78a81a89ebc2d4f277d145 Mon Sep 17 00:00:00 2001 From: pasta Date: Sat, 14 Nov 2026 02:00:35 +0000 Subject: [PATCH 1/3] primitives%feat: add the partial merkle transaction hash --- pkgs/primitives/src/block.rs | 7 +++++++ pkgs/primitives/src/lib.rs | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/pkgs/primitives/src/block.rs b/pkgs/primitives/src/block.rs index ee68a38be..5ac1a8950 100644 --- a/pkgs/primitives/src/block.rs +++ b/pkgs/primitives/src/block.rs @@ -44,6 +44,13 @@ make_hash! { hash_impl!(MerkleRoot); +make_hash! { + /// A transaction or inner node hash in a partial merkle tree. + TxMerkleNode, 32 +} + +hash_impl!(TxMerkleNode); + codec_base! { /// A block header. #[derive(Clone, Copy, CopyGetters, Debug, Default, Eq, Hash, PartialEq, Setters, TypeId)] diff --git a/pkgs/primitives/src/lib.rs b/pkgs/primitives/src/lib.rs index bde3ec37c..551020430 100644 --- a/pkgs/primitives/src/lib.rs +++ b/pkgs/primitives/src/lib.rs @@ -35,7 +35,7 @@ pub mod __private { pub mod serialize; pub use block::{ - Block, BlockHash, BlockHeader, BlockInvalid, MerkleRoot, MAX_DIP0001_BLOCK_SIZE, MAX_LEGACY_BLOCK_SIZE, + Block, BlockHash, BlockHeader, BlockInvalid, MerkleRoot, TxMerkleNode, MAX_DIP0001_BLOCK_SIZE, MAX_LEGACY_BLOCK_SIZE, }; pub use codec::MAX_SPTX_PAYLOAD_SIZE; pub use gov::*; From 05fbb8e3082668cda327d29e78269a96f43878e8 Mon Sep 17 00:00:00 2001 From: pasta Date: Sat, 14 Nov 2026 04:51:57 +0000 Subject: [PATCH 2/3] p2p_core%feat!: type the BIP37 messages --- pkgs/p2p_core/contrib/merkleblock.py | 63 +++++++ pkgs/p2p_core/contrib/util/rpc.py | 79 +++++++++ pkgs/p2p_core/corpus/bloom.json5 | 254 +++++++++++++++++++++++++++ pkgs/p2p_core/src/msg/bloom.rs | 250 ++++++++++++++++++++++++++ pkgs/p2p_core/src/msg/mod.rs | 18 +- 5 files changed, 656 insertions(+), 8 deletions(-) create mode 100644 pkgs/p2p_core/contrib/merkleblock.py create mode 100644 pkgs/p2p_core/contrib/util/rpc.py create mode 100644 pkgs/p2p_core/corpus/bloom.json5 create mode 100644 pkgs/p2p_core/src/msg/bloom.rs diff --git a/pkgs/p2p_core/contrib/merkleblock.py b/pkgs/p2p_core/contrib/merkleblock.py new file mode 100644 index 000000000..646715582 --- /dev/null +++ b/pkgs/p2p_core/contrib/merkleblock.py @@ -0,0 +1,63 @@ +#!/usr/bin/env python3 +# coding: latin-1 + +# +# Copyright (c) 2026-present, The Dash Core developers +# SPDX-License-Identifier: MIT +# See the accompanying file LICENSE or https://opensource.org/license/MIT +# + +"""Print the literals of the `merkleblock_payloads` program.""" + +from __future__ import annotations + +import argparse +from pathlib import Path + +from util.rpc import Node, RpcError + +# Mainnet block 2,000,000, and for each proof the transactions it matches. +BLOCK_HEIGHT = 2_000_000 +BLOCK_HASH = "0000000000000009bd68b5e00976c3f7482d4cc12b6596614fbba5678ef13a59" +FIRST_TXID = "8954c8546a4b19860afaaac95f14fc5909e9593b729b6d8228918d5deacfc222" +LAST_TXID = "ac745767380eac6ba7065a34b460fae44b56d5f2c4f96afba9cdb0ef6d14501e" +MATCHES = { + "last": ((LAST_TXID,), "its last transaction"), + "two": ((FIRST_TXID, LAST_TXID), "transactions at both ends"), +} + + +def render(node: Node) -> str: + """Return the literals of the program, read from *node*.""" + block_hash = node.call("getblockhash", BLOCK_HEIGHT) + if block_hash != BLOCK_HASH: + raise RpcError(f"unexpected block hash {block_hash!r}") + lines = [] + for label, (txids, matched) in MATCHES.items(): + proof = node.call("gettxoutproof", list(txids), BLOCK_HASH) + if not isinstance(proof, str): + raise RpcError(f"gettxoutproof {label} did not return hex") + lines.extend([ + f" // Mainnet height {BLOCK_HEIGHT:,}, block hash {BLOCK_HASH}, from" + f" gettxoutproof for {matched}.", + f" constexpr char PROOF_{label.upper()}[] =", + f' "{proof}";', + ]) + return "\n".join(lines) + "\n" + + +def parse_args() -> argparse.Namespace: + parser = argparse.ArgumentParser(description=__doc__) + parser.add_argument( + "--node", nargs=2, required=True, metavar=("HOST:PORT", "COOKIE") + ) + return parser.parse_args() + + +def main() -> None: + args = parse_args() + print(render(Node(args.node[0], Path(args.node[1]).expanduser())), end="") + + +if __name__ == "__main__": + main() diff --git a/pkgs/p2p_core/contrib/util/rpc.py b/pkgs/p2p_core/contrib/util/rpc.py new file mode 100644 index 000000000..fa16d962d --- /dev/null +++ b/pkgs/p2p_core/contrib/util/rpc.py @@ -0,0 +1,79 @@ +# coding: latin-1 + +# +# Copyright (c) 2026-present, The Dash Core developers +# SPDX-License-Identifier: MIT +# See the accompanying file LICENSE or https://opensource.org/license/MIT +# + +"""A JSON-RPC client of one node, for the scripts that read chain data.""" + +from __future__ import annotations + +import base64 +import http.client +import ipaddress +import json +from typing import TYPE_CHECKING + +if TYPE_CHECKING: + from pathlib import Path + +RPC_TIMEOUT = 600 + + +class RpcError(Exception): + """A failed call, or a reply without the expected members.""" + + +def is_loopback(host: str) -> bool: + """Whether *host* is `localhost` or a loopback address.""" + if host == "localhost": + return True + if host.startswith("[") and host.endswith("]"): + host = host[1:-1] + try: + return ipaddress.ip_address(host).is_loopback + except ValueError: + return False + + +class Node: + """A JSON-RPC client of one node, authenticated with its cookie.""" + + def __init__(self, address: str, cookie: Path) -> None: + host, _, port = address.rpartition(":") + if not host or not port.isdigit(): + raise RpcError(f"{address!r} is not a host:port address") + if not is_loopback(host): + raise RpcError(f"{host} is not a loopback address") + self.host = host + self.port = int(port) + token = base64.b64encode(cookie.read_bytes().strip()).decode() + self.headers = { + "Authorization": f"Basic {token}", + "Content-Type": "application/json", + } + + def call(self, method: str, *params: object) -> object: + """Return the result of RPC *method* with *params*.""" + body = json.dumps({"id": 0, "method": method, "params": list(params)}) + conn = http.client.HTTPConnection(self.host, self.port, timeout=RPC_TIMEOUT) + try: + conn.request("POST", "/", body, self.headers) + response = conn.getresponse() + data = response.read() + except http.client.HTTPException as err: + raise RpcError(f"{method}: {err!r}") from err + finally: + conn.close() + try: + reply = json.loads(data) + except ValueError: + reply = None + error = reply.get("error") if isinstance(reply, dict) else None + if error is not None: + raise RpcError(f"{method}: {error!r:.300}") + if response.status != http.client.OK or not isinstance(reply, dict): + raise RpcError(f"{method}: HTTP {response.status}, {data[:300]!r}") + return reply.get("result") diff --git a/pkgs/p2p_core/corpus/bloom.json5 b/pkgs/p2p_core/corpus/bloom.json5 new file mode 100644 index 000000000..e6cd83263 --- /dev/null +++ b/pkgs/p2p_core/corpus/bloom.json5 @@ -0,0 +1,254 @@ +// +// BIP37 vectors. Generated with the reference implementation +// (dashpay/dash v24.0.0, 938fba5028). +// +// Each section comes with the program used to generate it. The literals of +// `merkleblock_payloads` were read from mainnet with +// `python3 pkgs/p2p_core/contrib/merkleblock.py --node HOST:PORT COOKIE`, +// which prints them as the program takes them. +// +// To run a program, paste it at the end of the `bloom_tests` suite in +// `src/test/bloom_tests.cpp` at the specified revision, include +// `netmessagemaker.h` there, build it with `make -C src test/test_dash` and +// run `./src/test/test_dash --run_test=bloom_tests/`. The output should +// match the section. +// + +{ +/* +BOOST_AUTO_TEST_CASE(filterload_payloads) +{ + const CNetMsgMaker maker{PROTOCOL_VERSION}; + std::printf(" \"filterload\": {\n"); + const auto print = [](const char* label, const CSerializedNetMsg& message) { + DataStream fields{message.data}; + std::vector filter; + uint32_t hash_funcs, tweak; + uint8_t flags; + fields >> filter >> hash_funcs >> tweak >> flags; + std::printf(" \"%s\": {\n \"raw\": \"%s\",\n \"details\": {\n" + " \"filter\": \"%s\",\n \"hash_funcs\": %u,\n" + " \"tweak\": %u,\n \"flags\": %u\n }\n },\n", + label, HexStr(message.data).c_str(), HexStr(filter).c_str(), hash_funcs, tweak, flags); + }; + const auto make = [&](const CBloomFilter& filter) { + return maker.Make(NetMsgType::FILTERLOAD, filter); + }; + CBloomFilter all(3, 0.01, 0, BLOOM_UPDATE_ALL); + all.insert(ParseHex("99108ad8ed9bb6274d3980bab5a85c048f0950c8")); + all.insert(ParseHex("b5a2c786d9ef4658287ced5914b37a1b4aa32eee")); + print("update_all", make(all)); + CBloomFilter p2pubkey(2, 0.001, 2147483649UL, BLOOM_UPDATE_P2PUBKEY_ONLY); + p2pubkey.insert(ParseHex("045b81f0017e2091e2edcd5eecf10d5bdd120a5514cb3ee65b8447ec18bfc4575c6d5bf415e54e03b1067934a0f0ba76b01c6b9ab227142ee1d543764b69d901e0")); + print("update_p2pubkey_only", make(p2pubkey)); + print("empty", make(CBloomFilter{})); + DataStream unchecked{}; + unchecked << std::vector{0xa5} << uint32_t{MAX_HASH_FUNCS + 1} << uint32_t{7} << uint8_t{0xff}; + CBloomFilter read; + unchecked >> read; + print("unchecked", make(read)); + std::printf(" },\n"); +} +*/ + "filterload": { + // Pins a non-empty filter with update-all flags. + "update_all": { + "raw": "0341449a050000000000000001", + "details": { + "filter": "41449a", + "hash_funcs": 5, + "tweak": 0, + "flags": 1 + } + }, + // Pins a non-empty filter with pubkey-only flags and a high tweak. + "update_p2pubkey_only": { + "raw": "03350c21080000000100008002", + "details": { + "filter": "350c21", + "hash_funcs": 8, + "tweak": 2147483649, + "flags": 2 + } + }, + // Pins an empty filter and zero scalar fields. + "empty": { + "raw": "00000000000000000000", + "details": { + "filter": "", + "hash_funcs": 0, + "tweak": 0, + "flags": 0 + } + }, + // Pins a hash function count past the relay limit and a flags byte past two, both read as they are. + "unchecked": { + "raw": "01a53300000007000000ff", + "details": { + "filter": "a5", + "hash_funcs": 51, + "tweak": 7, + "flags": 255 + } + }, + }, +/* +BOOST_AUTO_TEST_CASE(filterload_reads) +{ + std::printf(" \"filterload_reads\": [\n"); + const auto try_read = [](size_t size) { + DataStream stream{}; + WriteCompactSize(stream, size); + const std::string prefix{HexStr(MakeUCharSpan(stream))}; + stream.write(MakeByteSpan(std::vector(size + 9))); + const size_t len{stream.size()}; + bool read{true}; + try { + CBloomFilter filter; + stream >> filter; + } catch (const std::ios_base::failure&) { + read = false; + } + std::printf(" { \"prefix\": \"%s\", \"len\": %zu, \"read\": %s },\n", prefix.c_str(), len, + read ? "true" : "false"); + }; + try_read(MAX_BLOOM_FILTER_SIZE); + try_read(MAX_BLOOM_FILTER_SIZE + 1); + std::printf(" ],\n"); +} +*/ + "filterload_reads": [ + // Filter payload at the bound, with all trailing fields present. + { "prefix": "fda08c", "len": 36012, "read": true }, + // Filter payload one past the bound. + { "prefix": "fda18c", "len": 36013, "read": false }, + ], +/* +BOOST_AUTO_TEST_CASE(filteradd_payloads) +{ + const CNetMsgMaker maker{PROTOCOL_VERSION}; + std::printf(" \"filteradd\": {\n"); + const auto print = [](const char* label, const CSerializedNetMsg& message) { + DataStream fields{message.data}; + std::vector data; + fields >> data; + std::printf(" \"%s\": {\n \"raw\": \"%s\",\n \"details\": {\n" + " \"data\": \"%s\"\n }\n },\n", + label, HexStr(message.data).c_str(), HexStr(data).c_str()); + }; + print("empty", maker.Make(NetMsgType::FILTERADD, std::vector{})); + print("key_id", maker.Make(NetMsgType::FILTERADD, ParseHex("99108ad8ed9bb6274d3980bab5a85c048f0950c8"))); + std::printf(" },\n"); +} +*/ + "filteradd": { + // Pins an empty element. + "empty": { + "raw": "00", + "details": { + "data": "" + } + }, + // Pins a 20-byte element. + "key_id": { + "raw": "1499108ad8ed9bb6274d3980bab5a85c048f0950c8", + "details": { + "data": "99108ad8ed9bb6274d3980bab5a85c048f0950c8" + } + }, + }, +/* +BOOST_AUTO_TEST_CASE(filteradd_reads) +{ + std::printf(" \"filteradd_reads\": [\n"); + const auto try_read = [](size_t size) { + DataStream stream{}; + WriteCompactSize(stream, size); + const std::string prefix{HexStr(MakeUCharSpan(stream))}; + stream.write(MakeByteSpan(std::vector(size))); + const size_t len{stream.size()}; + bool read{true}; + try { + std::vector data; + stream >> LIMITED_VECTOR(data, MAX_SCRIPT_ELEMENT_SIZE); + } catch (const std::ios_base::failure&) { + read = false; + } + std::printf(" { \"prefix\": \"%s\", \"len\": %zu, \"read\": %s },\n", prefix.c_str(), len, + read ? "true" : "false"); + }; + try_read(MAX_SCRIPT_ELEMENT_SIZE); + try_read(MAX_SCRIPT_ELEMENT_SIZE + 1); + std::printf(" ],\n"); +} +*/ + "filteradd_reads": [ + // Element at the bound. + { "prefix": "fd0802", "len": 523, "read": true }, + // Element one past the bound. + { "prefix": "fd0902", "len": 524, "read": false }, + ], +/* +BOOST_AUTO_TEST_CASE(merkleblock_payloads) +{ + // Mainnet height 2,000,000, block hash 0000000000000009bd68b5e00976c3f7482d4cc12b6596614fbba5678ef13a59, from gettxoutproof for its last transaction. + constexpr char PROOF_LAST[] = + "0000002032060b2816b25db4cbc20dad9c6bdba406851191ba3be8c41d0000000000000029b59c356e22194a12227b79e867a56bc730b3b445b285634a1c763696cb3865e8b19865f3144c19c67780e8040000000350f15981002714c84cc74f6522b5a4fe01f6589fbfff233b9a4819185553b7344bd0439d6b93f48eaa5e67ef4f7b38b52a2e533c781eb934f9a6ed71a47727b11e50146defb0cda9fb6af9c4f2d5564be4fa60b4345a06a76bac0e38675774ac0115"; + // Mainnet height 2,000,000, block hash 0000000000000009bd68b5e00976c3f7482d4cc12b6596614fbba5678ef13a59, from gettxoutproof for transactions at both ends. + constexpr char PROOF_TWO[] = + "0000002032060b2816b25db4cbc20dad9c6bdba406851191ba3be8c41d0000000000000029b59c356e22194a12227b79e867a56bc730b3b445b285634a1c763696cb3865e8b19865f3144c19c67780e8040000000422c2cfea5d8d9128826d9b723b59e90959fc145fc9aafa0a86194b6a54c854897d7bea4d0e9a9200cd3da32a1bd2f56bb64359e4cf4433ee90b3693f66f3a18d4bd0439d6b93f48eaa5e67ef4f7b38b52a2e533c781eb934f9a6ed71a47727b11e50146defb0cda9fb6af9c4f2d5564be4fa60b4345a06a76bac0e38675774ac0157"; + class PartialMerkleTreeTester : public CPartialMerkleTree { + public: + explicit PartialMerkleTreeTester(const CPartialMerkleTree& tree) : CPartialMerkleTree(tree) {} + const std::vector& bits() const { return vBits; } + const std::vector& hashes() const { return vHash; } + unsigned int transactions() const { return nTransactions; } + }; + std::printf(" \"merkleblock\": {\n"); + const auto print = [](const char* label, const char* proof) { + DataStream input(ParseHex(proof)); + CMerkleBlock proven; + input >> proven; + const auto message{CNetMsgMaker{PROTOCOL_VERSION}.Make(NetMsgType::MERKLEBLOCK, proven)}; + DataStream fields{message.data}; + CMerkleBlock block; + fields >> block; + PartialMerkleTreeTester tree(block.txn); + std::printf(" \"%s\": {\n \"raw\": \"%s\",\n \"details\": {\n" + " \"header\": {\"version\": %d, \"prevHash\": \"%s\", " + "\"merkleRoot\": \"%s\", \"time\": %u, \"bits\": %u, \"nonce\": %u},\n" + " \"txn\": {\"num_transactions\": %u, \"hashes\": [", + label, HexStr(message.data).c_str(), block.header.nVersion, block.header.hashPrevBlock.GetHex().c_str(), + block.header.hashMerkleRoot.GetHex().c_str(), block.header.nTime, block.header.nBits, + block.header.nNonce, tree.transactions()); + for (size_t i = 0; i < tree.hashes().size(); ++i) { + std::printf("%s\"%s\"", i == 0 ? "" : ", ", tree.hashes()[i].GetHex().c_str()); + } + std::printf("], \"bits\": ["); + for (size_t i = 0; i < tree.bits().size(); ++i) { + std::printf("%s%s", i == 0 ? "" : ", ", tree.bits()[i] ? "true" : "false"); + } + std::printf("]}}\n },\n"); + }; + print("last", PROOF_LAST); + print("two", PROOF_TWO); + std::printf(" },\n"); +} +*/ + "merkleblock": { + // Pins the last transaction and the padded flag bits from a partial tree. + "last": { + "raw": "0000002032060b2816b25db4cbc20dad9c6bdba406851191ba3be8c41d0000000000000029b59c356e22194a12227b79e867a56bc730b3b445b285634a1c763696cb3865e8b19865f3144c19c67780e8040000000350f15981002714c84cc74f6522b5a4fe01f6589fbfff233b9a4819185553b7344bd0439d6b93f48eaa5e67ef4f7b38b52a2e533c781eb934f9a6ed71a47727b11e50146defb0cda9fb6af9c4f2d5564be4fa60b4345a06a76bac0e38675774ac0115", + "details": { + "header": {"version": 536870912, "prevHash": "000000000000001dc4e83bba91118506a4db6b9cad0dc2cbb45db216280b0632", "merkleRoot": "6538cb9636761c4a6385b245b4b330c76ba567e8797b22124a19226e359cb529", "time": 1704505832, "bits": 424416499, "nonce": 3900733382}, + "txn": {"num_transactions": 4, "hashes": ["34b753551819489a3b23ffbf9f58f601fea4b522654fc74cc81427008159f150", "b12777a471eda6f934b91e783c532e2ab5387b4fef675eaa8ef4936b9d43d04b", "ac745767380eac6ba7065a34b460fae44b56d5f2c4f96afba9cdb0ef6d14501e"], "bits": [true, false, true, false, true, false, false, false]}} + }, + // Pins transactions at indexes 0 and 3, covering both ends of the block. + "two": { + "raw": "0000002032060b2816b25db4cbc20dad9c6bdba406851191ba3be8c41d0000000000000029b59c356e22194a12227b79e867a56bc730b3b445b285634a1c763696cb3865e8b19865f3144c19c67780e8040000000422c2cfea5d8d9128826d9b723b59e90959fc145fc9aafa0a86194b6a54c854897d7bea4d0e9a9200cd3da32a1bd2f56bb64359e4cf4433ee90b3693f66f3a18d4bd0439d6b93f48eaa5e67ef4f7b38b52a2e533c781eb934f9a6ed71a47727b11e50146defb0cda9fb6af9c4f2d5564be4fa60b4345a06a76bac0e38675774ac0157", + "details": { + "header": {"version": 536870912, "prevHash": "000000000000001dc4e83bba91118506a4db6b9cad0dc2cbb45db216280b0632", "merkleRoot": "6538cb9636761c4a6385b245b4b330c76ba567e8797b22124a19226e359cb529", "time": 1704505832, "bits": 424416499, "nonce": 3900733382}, + "txn": {"num_transactions": 4, "hashes": ["8954c8546a4b19860afaaac95f14fc5909e9593b729b6d8228918d5deacfc222", "8da1f3663f69b390ee3344cfe45943b66bf5d21b2aa33dcd00929a0e4dea7b7d", "b12777a471eda6f934b91e783c532e2ab5387b4fef675eaa8ef4936b9d43d04b", "ac745767380eac6ba7065a34b460fae44b56d5f2c4f96afba9cdb0ef6d14501e"], "bits": [true, true, true, false, true, false, true, false]}} + }, + }, +} diff --git a/pkgs/p2p_core/src/msg/bloom.rs b/pkgs/p2p_core/src/msg/bloom.rs new file mode 100644 index 000000000..5a9c28b9f --- /dev/null +++ b/pkgs/p2p_core/src/msg/bloom.rs @@ -0,0 +1,250 @@ +// +// Copyright (c) 2026-present, The Dash Core developers +// SPDX-License-Identifier: MIT +// See the accompanying file LICENSE or https://opensource.org/license/MIT +// + +//! BIP37 bloom filter messages. + +use crate::codec::{codec_p2p, impl_p2p}; +use crate::prelude::*; + +use dash_primitives::{hash_impl, BlockHeader, TxMerkleNode}; +use dash_types::codec::{BaseCodec, DecodeError, EncodeBuf}; +use dash_types::type_id::TypeId; +use dash_types::{enum_map, impl_new, impl_num, impl_vec}; +use getset::{CopyGetters, Getters}; + +// TODO(pasta): substitute `PartialMerkleTree` with the upstream type when its +// decoder can be used. + +enum_map! { + /// How matches update a [`FilterLoad`] filter. The two low bits select + /// the mode. + #[derive(Clone, Copy, Debug, Eq, Hash, PartialEq, TypeId)] + pub enum BloomFlags, u8, Unknown { + /// Matches leave the filter as it is. + None = 0 => "none", + /// A matched output's outpoint is added to the filter. + All = 1 => "all", + /// A matched output's outpoint is added to the filter only for a + /// pay-to-pubkey or bare multisig output. + PubkeyOnly = 2 => "pubkey_only", + } +} + +impl_num!(BloomFlags, u8); + +hash_impl!(BloomFlags); + +impl_new! { +/// A `filterload` payload. +#[derive(Clone, CopyGetters, Debug, Eq, Getters, Hash, PartialEq, TypeId)] +#[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] +pub struct FilterLoad { + /// The filter's bit field. + #[cfg_attr(feature = "serde", serde(with = "dash_types::serialize::hex"))] + #[getset(get = "pub")] + filter: Vec, + /// The number of hash functions. + #[getset(get_copy = "pub")] + hash_funcs: u32, + /// A value added to each hash function's seed. + #[getset(get_copy = "pub")] + tweak: u32, + /// How matches update the filter. + #[getset(get_copy = "pub")] + flags: BloomFlags, +} +} + +impl_vec!(FilterLoad, { filter: Self::MAX_FILTER_SIZE, hash_funcs, tweak, flags }); +impl_p2p!(FilterLoad); +hash_impl!(FilterLoad); + +impl FilterLoad { + /// The most bytes a `filterload` filter carries. + pub const MAX_FILTER_SIZE: usize = 36_000; +} + +impl_new! { +/// A `filteradd` payload. +#[derive(Clone, Debug, Eq, Getters, Hash, PartialEq, TypeId)] +#[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] +pub struct FilterAdd { + /// The element to add. + #[cfg_attr(feature = "serde", serde(with = "dash_types::serialize::hex"))] + #[getset(get = "pub")] + data: Vec, +} +} + +impl_vec!(FilterAdd, { data: Self::MAX_DATA_SIZE }); +impl_p2p!(FilterAdd); +hash_impl!(FilterAdd); + +impl FilterAdd { + /// The most bytes a `filteradd` element carries. + pub const MAX_DATA_SIZE: usize = 520; +} + +/// Packs bits eight to a byte, least significant first, padding the last +/// byte with unset bits. +fn pack_bits(bits: &[bool]) -> Vec { + bits + .chunks(8) + .map(|chunk| { + chunk + .iter() + .enumerate() + .fold(0, |byte, (i, &bit)| byte | (u8::from(bit) << i)) + }) + .collect() +} + +/// Unpacks eight bits from each byte, least significant first. +fn unpack_bits(bytes: &[u8]) -> Vec { + bytes + .iter() + .flat_map(|&byte| (0..8).map(move |i| byte & (1 << i) != 0)) + .collect() +} + +impl_new! { +/// The transactions of a block that match a filter, with the hashes that +/// prove them against the block's merkle root. +#[derive(Clone, CopyGetters, Debug, Eq, Getters, Hash, PartialEq, TypeId)] +#[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] +pub struct PartialMerkleTree { + /// The number of transactions in the block. + #[getset(get_copy = "pub")] + num_transactions: u32, + /// The bits, in depth-first order from the root. + #[getset(get = "pub")] + bits: Vec, + /// Transaction and inner node hashes, in depth-first order from the root. + #[getset(get = "pub")] + hashes: Vec, +} +} + +impl_p2p!(PartialMerkleTree); + +impl BaseCodec for PartialMerkleTree { + fn decode(data: &mut &[u8]) -> Result { + let num_transactions = u32::decode(data)?; + let hashes = Vec::::decode(data)?; + let bytes = Vec::::decode(data)?; + Ok(Self { + num_transactions, + bits: unpack_bits(&bytes), + hashes, + }) + } + + fn encode(&self, buf: &mut impl EncodeBuf) { + self.num_transactions.encode(buf); + self.hashes.encode(buf); + pack_bits(&self.bits).encode(buf); + } +} + +hash_impl!(PartialMerkleTree); + +codec_p2p! { +/// A `merkleblock` payload, holding a block header and a partial merkle tree. +#[derive(Clone, CopyGetters, Debug, Eq, Getters, Hash, PartialEq, TypeId)] +#[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] +pub struct MerkleBlock { + /// The block's header. + #[getset(get_copy = "pub")] + header: BlockHeader, + /// The matched transactions and their proof. + #[getset(get = "pub")] + txn: PartialMerkleTree, +} +} + +#[cfg(all(test, feature = "serde"))] +#[expect(clippy::unwrap_used, reason = "test code")] +mod tests { + use super::*; + use crate::{CommandString, P2pMsg}; + + use dash_dev::{assert_serde_rt, check_wire, Corpus}; + use hex_conservative::decode_to_vec; + use rstest::rstest; + use serde::Deserialize; + + /// A payload of `len` bytes, `prefix` then zeros, and whether decoding + /// succeeds. + #[derive(Deserialize)] + struct ReadVector { + prefix: String, + len: usize, + read: bool, + } + + fn reads(section: &str) -> Vec<(Vec, bool)> { + let corpus = Corpus::open(env!("CARGO_MANIFEST_DIR"), "bloom"); + let vectors = corpus.vectors::(section); + assert!(!vectors.is_empty(), "{section}: no vectors"); + vectors + .into_iter() + .map(|v| { + let mut payload = decode_to_vec(&v.prefix).unwrap(); + payload.resize(v.len, 0); + (payload, v.read) + }) + .collect() + } + + #[rstest] + fn corpus_filterload() { + let corpus = Corpus::open(env!("CARGO_MANIFEST_DIR"), "bloom"); + let items = corpus.entries::("filterload", |raw, details, label| { + check_wire(raw, details, label); + let decoded = P2pMsg::decode_payload(&CommandString::FILTERLOAD, raw); + assert_eq!(decoded, Ok(P2pMsg::FilterLoad(details.clone())), "{label}: dispatch"); + }); + assert_serde_rt("filterload", &items); + } + + #[rstest] + fn corpus_filteradd() { + let corpus = Corpus::open(env!("CARGO_MANIFEST_DIR"), "bloom"); + let items = corpus.entries::("filteradd", |raw, details, label| { + check_wire(raw, details, label); + let decoded = P2pMsg::decode_payload(&CommandString::FILTERADD, raw); + assert_eq!(decoded, Ok(P2pMsg::FilterAdd(details.clone())), "{label}: dispatch"); + }); + assert_serde_rt("filteradd", &items); + } + + #[rstest] + fn corpus_merkleblock() { + let corpus = Corpus::open(env!("CARGO_MANIFEST_DIR"), "bloom"); + let items = corpus.entries::("merkleblock", |raw, details, label| { + check_wire(raw, details, label); + let decoded = P2pMsg::decode_payload(&CommandString::MERKLEBLOCK, raw); + assert_eq!(decoded, Ok(P2pMsg::MerkleBlock(details.clone())), "{label}: dispatch"); + }); + assert_serde_rt("merkleblock", &items); + } + + #[rstest] + fn filterload_reads_match_vectors() { + for (payload, read) in reads("filterload_reads") { + let decoded = FilterLoad::decode(&mut &payload[..]); + assert_eq!(decoded.is_ok(), read, "{} bytes", payload.len()); + } + } + + #[rstest] + fn filteradd_reads_match_vectors() { + for (payload, read) in reads("filteradd_reads") { + let decoded = FilterAdd::decode(&mut &payload[..]); + assert_eq!(decoded.is_ok(), read, "{} bytes", payload.len()); + } + } +} diff --git a/pkgs/p2p_core/src/msg/mod.rs b/pkgs/p2p_core/src/msg/mod.rs index c8774f472..8b6edba35 100644 --- a/pkgs/p2p_core/src/msg/mod.rs +++ b/pkgs/p2p_core/src/msg/mod.rs @@ -8,6 +8,7 @@ mod addr; mod blocks; +mod bloom; mod coinjoin; mod gov; mod headers; @@ -30,6 +31,7 @@ use dash_types::type_id::Unencodable; pub use addr::{Addr, AddrV2Entry, AddrV2Msg, TimestampedAddr}; pub use blocks::{GetBlocks, SendCmpct}; +pub use bloom::{BloomFlags, FilterAdd, FilterLoad, MerkleBlock, PartialMerkleTree}; pub use coinjoin::SendDsq; pub use gov::{GovSync, GovSyncStatusCount}; pub use headers::{GetHeaders, Headers}; @@ -89,6 +91,12 @@ define_p2p! { SendCmpct(SendCmpct) => SENDCMPCT "sendcmpct" @ 20, /// BIP330: transaction reconciliation. SendTxRcncl(SendTxRcncl) => SENDTXRCNCL "sendtxrcncl", + /// BIP37: load bloom filter. + FilterLoad(FilterLoad) => FILTERLOAD "filterload" @ 8, + /// BIP37: add data to bloom filter. + FilterAdd(FilterAdd) => FILTERADD "filteradd" @ 6, + /// BIP37: filtered block. + MerkleBlock(MerkleBlock) => MERKLEBLOCK "merkleblock" @ 16, } parsed_empty { @@ -102,6 +110,8 @@ define_p2p! { SendHeaders => SENDHEADERS "sendheaders", /// Prefer compressed header announcements. SendHeaders2 => SENDHEADERS2 "sendheaders2" @ 164, + /// BIP37: clear bloom filter. + FilterClear => FILTERCLEAR "filterclear" @ 7, } stub { @@ -111,14 +121,8 @@ define_p2p! { BlockTxn => BLOCKTXN "blocktxn" @ 3, /// BIP152: compact block. CmpctBlock => CMPCTBLOCK "cmpctblock" @ 4, - /// BIP37: add data to bloom filter. - FilterAdd => FILTERADD "filteradd" @ 6, - /// BIP37: load bloom filter. - FilterLoad => FILTERLOAD "filterload" @ 8, /// BIP152: request compact block transactions. GetBlockTxn => GETBLOCKTXN "getblocktxn" @ 10, - /// BIP37: filtered block. - MerkleBlock => MERKLEBLOCK "merkleblock" @ 16, /// Transaction. Tx => TX "tx" @ 21, /// Request compact filters. @@ -192,8 +196,6 @@ define_p2p! { } stub_empty { - /// BIP37: clear bloom filter. - FilterClear => FILTERCLEAR "filterclear" @ 7, /// Request mempool contents. Mempool => MEMPOOL "mempool" @ 15, /// Request active sporks. From 7ce7bcf206b387b44cf3610ed92623e9b0fe2119 Mon Sep 17 00:00:00 2001 From: pasta Date: Sat, 14 Nov 2026 04:52:08 +0000 Subject: [PATCH 3/3] p2p_core%feat!: type the BIP157 messages --- Cargo.lock | 1 + MODULE.bazel.lock | 6 +- pkgs/p2p_core/Cargo.toml | 3 + pkgs/p2p_core/contrib/cfilter.py | 74 +++++++++ pkgs/p2p_core/corpus/cfilter.json5 | 246 ++++++++++++++++++++++++++++ pkgs/p2p_core/src/msg/cfilter.rs | 250 +++++++++++++++++++++++++++++ pkgs/p2p_core/src/msg/mod.rs | 26 +-- 7 files changed, 591 insertions(+), 15 deletions(-) create mode 100644 pkgs/p2p_core/contrib/cfilter.py create mode 100644 pkgs/p2p_core/corpus/cfilter.json5 create mode 100644 pkgs/p2p_core/src/msg/cfilter.rs diff --git a/Cargo.lock b/Cargo.lock index d43e3731b..f8495c56e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -478,6 +478,7 @@ name = "dash-p2p-core" version = "0.0.0" dependencies = [ "bitcoin-consensus-encoding", + "bitcoin-units", "cfg-if", "dash-dev", "dash-num", diff --git a/MODULE.bazel.lock b/MODULE.bazel.lock index 1e8bf9f55..08a534cf6 100644 --- a/MODULE.bazel.lock +++ b/MODULE.bazel.lock @@ -501,7 +501,7 @@ "REPO_MAPPING:rules_rust+,bazel_skylib bazel_skylib+", "REPO_MAPPING:rules_rust+,bazel_tools bazel_tools", "REPO_MAPPING:rules_rust+,rules_cc rules_cc+", - "FILE:@@//Cargo.lock 6ef6ccf342773eb87e9485eed7144d014aa06c8d60b740c31d32038428377ef2", + "FILE:@@//Cargo.lock 4ceec7851c80e8bddf225db857647d411d4add85b0f6fbde4142cd2eeb512940", "FILE:@@//Cargo.toml e539b723544052ecd9ed9db32eba21c88a2e80207c10ea9ebf8e2e97f29e0ecd", "FILE:@@//meta/bazel/Cargo.toml 2a4ad939536503578d106bb7f98a961e4a487cf1456c5b4c637fc8049558a795", "FILE:@@//pkgs/num/Cargo.toml c934b31ac1efe34a59f07032586465a64f5bc0dbbcebfe380acb4b69408889e6", @@ -513,7 +513,7 @@ "FILE:@@//pkgs/primitives/Cargo.toml ac212c70bd8d49239dcb23e6941daea93fe285919edbfe90aac9f6f4fd215677", "FILE:@@//pkgs/pkc/Cargo.toml 3c5f6c6ddc6bd91a7cc3719d98cfe9dd4fa7a5f0a34b0e96efae4c2771051e1e", "FILE:@@//pkgs/script/Cargo.toml c7238b5d56c5fd9e2640b40ee31e62c37458b2cc5bccd918fc356d735d16c63b", - "FILE:@@//pkgs/p2p_core/Cargo.toml 9e234cfaf31a73005c49368ed3fb462acfaa2d7754f5a9cf60dc04c799f39284" + "FILE:@@//pkgs/p2p_core/Cargo.toml 415e43b46d1d6ab4ffcb7e544919adbb856b537487db2043495679c4aa4cb0af" ], "generatedRepoSpecs": { "crates": { @@ -522,7 +522,7 @@ "contents": { "BUILD.bazel": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'dash_base_sdk'\n###############################################################################\n\npackage(default_visibility = [\"//visibility:public\"])\n\nexports_files(\n [\n \"cargo-bazel.json\",\n \"crates.bzl\",\n \"defs.bzl\",\n ] + glob(\n allow_empty = True,\n include = [\"*.bazel\"],\n ),\n)\n\nfilegroup(\n name = \"srcs\",\n srcs = glob(\n allow_empty = True,\n include = [\n \"*.bazel\",\n \"*.bzl\",\n ],\n ),\n)\n\n# Workspace Member Dependencies\nalias(\n name = \"aes-0.9.3\",\n actual = \"@crates__aes-0.9.3//:aes\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"aes\",\n actual = \"@crates__aes-0.9.3//:aes\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"ambassador-0.5.1\",\n actual = \"@crates__ambassador-0.5.1//:ambassador\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"ambassador\",\n actual = \"@crates__ambassador-0.5.1//:ambassador\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"base58ck-0.5.0\",\n actual = \"@crates__base58ck-0.5.0//:base58ck\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"base58ck\",\n actual = \"@crates__base58ck-0.5.0//:base58ck\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"bitcoin-consensus-encoding-1.3.0\",\n actual = \"@crates__bitcoin-consensus-encoding-1.3.0//:bitcoin_consensus_encoding\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"bitcoin-consensus-encoding\",\n actual = \"@crates__bitcoin-consensus-encoding-1.3.0//:bitcoin_consensus_encoding\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"bitcoin-internals-0.8.2\",\n actual = \"@crates__bitcoin-internals-0.8.2//:bitcoin_internals\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"bitcoin-internals\",\n actual = \"@crates__bitcoin-internals-0.8.2//:bitcoin_internals\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"bitcoin-primitives-0.104.0\",\n actual = \"@crates__bitcoin-primitives-0.104.0//:bitcoin_primitives\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"bitcoin-primitives\",\n actual = \"@crates__bitcoin-primitives-0.104.0//:bitcoin_primitives\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"bitcoin-units-0.7.0\",\n actual = \"@crates__bitcoin-units-0.7.0//:bitcoin_units\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"bitcoin-units\",\n actual = \"@crates__bitcoin-units-0.7.0//:bitcoin_units\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"bitcoin_hashes-1.2.0\",\n actual = \"@crates__bitcoin_hashes-1.2.0//:bitcoin_hashes\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"bitcoin_hashes\",\n actual = \"@crates__bitcoin_hashes-1.2.0//:bitcoin_hashes\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"blst-0.3.17\",\n actual = \"@crates__blst-0.3.17//:blst\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"blst\",\n actual = \"@crates__blst-0.3.17//:blst\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"built-0.7.7\",\n actual = \"@crates__built-0.7.7//:built\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"built\",\n actual = \"@crates__built-0.7.7//:built\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"cfg-if-1.0.5\",\n actual = \"@crates__cfg-if-1.0.5//:cfg_if\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"cfg-if\",\n actual = \"@crates__cfg-if-1.0.5//:cfg_if\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"ciborium-0.2.2\",\n actual = \"@crates__ciborium-0.2.2//:ciborium\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"ciborium\",\n actual = \"@crates__ciborium-0.2.2//:ciborium\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"delegate-0.13.5\",\n actual = \"@crates__delegate-0.13.5//:delegate\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"delegate\",\n actual = \"@crates__delegate-0.13.5//:delegate\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"digest-0.11.3\",\n actual = \"@crates__digest-0.11.3//:digest\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"digest\",\n actual = \"@crates__digest-0.11.3//:digest\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"divan-0.1.21\",\n actual = \"@crates__divan-0.1.21//:divan\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"divan\",\n actual = \"@crates__divan-0.1.21//:divan\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"ed25519-dalek-3.0.0\",\n actual = \"@crates__ed25519-dalek-3.0.0//:ed25519_dalek\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"ed25519-dalek\",\n actual = \"@crates__ed25519-dalek-3.0.0//:ed25519_dalek\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"ff-0.14.0\",\n actual = \"@crates__ff-0.14.0//:ff\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"ff\",\n actual = \"@crates__ff-0.14.0//:ff\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"getrandom-0.4.3\",\n actual = \"@crates__getrandom-0.4.3//:getrandom\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"getrandom\",\n actual = \"@crates__getrandom-0.4.3//:getrandom\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"getset-0.1.7\",\n actual = \"@crates__getset-0.1.7//:getset\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"getset\",\n actual = \"@crates__getset-0.1.7//:getset\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"group-0.14.0\",\n actual = \"@crates__group-0.14.0//:group\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"group\",\n actual = \"@crates__group-0.14.0//:group\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"hex-conservative-1.3.0\",\n actual = \"@crates__hex-conservative-1.3.0//:hex_conservative\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"hex-conservative\",\n actual = \"@crates__hex-conservative-1.3.0//:hex_conservative\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"json5-0.4.1\",\n actual = \"@crates__json5-0.4.1//:json5\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"json5\",\n actual = \"@crates__json5-0.4.1//:json5\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"libm-0.2.16\",\n actual = \"@crates__libm-0.2.16//:libm\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"libm\",\n actual = \"@crates__libm-0.2.16//:libm\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"proc-macro2-1.0.107\",\n actual = \"@crates__proc-macro2-1.0.107//:proc_macro2\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"proc-macro2\",\n actual = \"@crates__proc-macro2-1.0.107//:proc_macro2\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"quote-1.0.47\",\n actual = \"@crates__quote-1.0.47//:quote\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"quote\",\n actual = \"@crates__quote-1.0.47//:quote\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"rand_core-0.10.1\",\n actual = \"@crates__rand_core-0.10.1//:rand_core\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"rand_core\",\n actual = \"@crates__rand_core-0.10.1//:rand_core\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"rstest-0.25.0\",\n actual = \"@crates__rstest-0.25.0//:rstest\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"rstest\",\n actual = \"@crates__rstest-0.25.0//:rstest\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"secp256k1-0.33.1\",\n actual = \"@crates__secp256k1-0.33.1//:secp256k1\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"secp256k1\",\n actual = \"@crates__secp256k1-0.33.1//:secp256k1\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"serde-1.0.229\",\n actual = \"@crates__serde-1.0.229//:serde\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"serde\",\n actual = \"@crates__serde-1.0.229//:serde\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"serde_json-1.0.154\",\n actual = \"@crates__serde_json-1.0.154//:serde_json\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"serde_json\",\n actual = \"@crates__serde_json-1.0.154//:serde_json\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"sha2-0.11.1\",\n actual = \"@crates__sha2-0.11.1//:sha2\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"sha2\",\n actual = \"@crates__sha2-0.11.1//:sha2\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"subtle-2.6.1\",\n actual = \"@crates__subtle-2.6.1//:subtle\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"subtle\",\n actual = \"@crates__subtle-2.6.1//:subtle\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"syn-2.0.119\",\n actual = \"@crates__syn-2.0.119//:syn\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"syn\",\n actual = \"@crates__syn-2.0.119//:syn\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"thiserror-2.0.21\",\n actual = \"@crates__thiserror-2.0.21//:thiserror\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"thiserror\",\n actual = \"@crates__thiserror-2.0.21//:thiserror\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"wide-1.7.1\",\n actual = \"@crates__wide-1.7.1//:wide\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"wide\",\n actual = \"@crates__wide-1.7.1//:wide\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"xxhash-rust-0.8.19\",\n actual = \"@crates__xxhash-rust-0.8.19//:xxhash_rust\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"xxhash-rust\",\n actual = \"@crates__xxhash-rust-0.8.19//:xxhash_rust\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"zeroize-1.9.1\",\n actual = \"@crates__zeroize-1.9.1//:zeroize\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"zeroize\",\n actual = \"@crates__zeroize-1.9.1//:zeroize\",\n tags = [\"manual\"],\n)\n", "alias_rules.bzl": "\"\"\"Alias that transitions its target to `compilation_mode=opt`. Use `transition_alias=\"opt\"` to enable.\"\"\"\n\nload(\"@rules_cc//cc:defs.bzl\", \"CcInfo\")\nload(\"@rules_rust//rust:rust_common.bzl\", \"COMMON_PROVIDERS\")\n\ndef _transition_alias_impl(ctx):\n # `ctx.attr.actual` is a list of 1 item due to the transition\n providers = [ctx.attr.actual[0][provider] for provider in COMMON_PROVIDERS]\n if CcInfo in ctx.attr.actual[0]:\n providers.append(ctx.attr.actual[0][CcInfo])\n return providers\n\ndef _change_compilation_mode(compilation_mode):\n def _change_compilation_mode_impl(_settings, _attr):\n return {\n \"//command_line_option:compilation_mode\": compilation_mode,\n }\n\n return transition(\n implementation = _change_compilation_mode_impl,\n inputs = [],\n outputs = [\n \"//command_line_option:compilation_mode\",\n ],\n )\n\ndef _transition_alias_rule(compilation_mode):\n return rule(\n implementation = _transition_alias_impl,\n provides = COMMON_PROVIDERS,\n attrs = {\n \"actual\": attr.label(\n mandatory = True,\n doc = \"`rust_library()` target to transition to `compilation_mode=opt`.\",\n providers = COMMON_PROVIDERS,\n cfg = _change_compilation_mode(compilation_mode),\n ),\n \"_allowlist_function_transition\": attr.label(\n default = \"@bazel_tools//tools/allowlists/function_transition_allowlist\",\n ),\n },\n doc = \"Transitions a Rust library crate to the `compilation_mode=opt`.\",\n )\n\ntransition_alias_dbg = _transition_alias_rule(\"dbg\")\ntransition_alias_fastbuild = _transition_alias_rule(\"fastbuild\")\ntransition_alias_opt = _transition_alias_rule(\"opt\")\n", - "crates.bzl": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'dash_base_sdk'\n###############################################################################\n\"\"\"\n# `crates_repository` API\n\n- [aliases](#aliases)\n- [crate_edition](#crate_edition)\n- [crate_deps](#crate_deps)\n- [all_crate_deps](#all_crate_deps)\n- [crate_repositories](#crate_repositories)\n\n\"\"\"\n\nload(\"@bazel_tools//tools/build_defs/repo:git.bzl\", \"git_repository\")\nload(\"@bazel_tools//tools/build_defs/repo:http.bzl\", \"http_archive\")\nload(\"@bazel_tools//tools/build_defs/repo:utils.bzl\", \"maybe\")\nload(\"@bazel_skylib//lib:selects.bzl\", \"selects\")\nload(\"@rules_rust//crate_universe:defs.bzl\", \"crates_vendor_remote_repository\", \"local_crate_mirror\")\n\n###############################################################################\n# MACROS API\n###############################################################################\n\n# An identifier that represent common dependencies (unconditional).\n_COMMON_CONDITION = \"\"\n\ndef _flatten_dependency_maps(all_dependency_maps):\n \"\"\"Flatten a list of dependency maps into one dictionary.\n\n Dependency maps have the following structure:\n\n ```python\n DEPENDENCIES_MAP = {\n # The first key in the map is a Bazel package\n # name of the workspace this file is defined in.\n \"workspace_member_package\": {\n\n # Not all dependencies are supported for all platforms.\n # the condition key is the condition required to be true\n # on the host platform.\n \"condition\": {\n\n # An alias to a crate target. # The label of the crate target the\n # Aliases are only crate names. # package name refers to.\n \"package_name\": \"@full//:label\",\n }\n }\n }\n ```\n\n Args:\n all_dependency_maps (list): A list of dicts as described above\n\n Returns:\n dict: A dictionary as described above\n \"\"\"\n dependencies = {}\n\n for workspace_deps_map in all_dependency_maps:\n for pkg_name, conditional_deps_map in workspace_deps_map.items():\n if pkg_name not in dependencies:\n non_frozen_map = dict()\n for key, values in conditional_deps_map.items():\n non_frozen_map.update({key: dict(values.items())})\n dependencies.setdefault(pkg_name, non_frozen_map)\n continue\n\n for condition, deps_map in conditional_deps_map.items():\n # If the condition has not been recorded, do so and continue\n if condition not in dependencies[pkg_name]:\n dependencies[pkg_name].setdefault(condition, dict(deps_map.items()))\n continue\n\n # Alert on any miss-matched dependencies\n inconsistent_entries = []\n for crate_name, crate_label in deps_map.items():\n existing = dependencies[pkg_name][condition].get(crate_name)\n if existing and existing != crate_label:\n inconsistent_entries.append((crate_name, existing, crate_label))\n dependencies[pkg_name][condition].update({crate_name: crate_label})\n\n return dependencies\n\ndef crate_deps(deps, package_name = None):\n \"\"\"Finds the fully qualified label of the requested crates for the package where this macro is called.\n\n Args:\n deps (list): The desired list of crate targets.\n package_name (str, optional): The package name of the set of dependencies to look up.\n Defaults to `native.package_name()`.\n\n Returns:\n list: A list of labels to generated rust targets (str)\n \"\"\"\n\n if not deps:\n return []\n\n if package_name == None:\n package_name = native.package_name()\n\n # Join both sets of dependencies\n dependencies = _flatten_dependency_maps([\n _NORMAL_DEPENDENCIES,\n _NORMAL_DEV_DEPENDENCIES,\n _PROC_MACRO_DEPENDENCIES,\n _PROC_MACRO_DEV_DEPENDENCIES,\n _BUILD_DEPENDENCIES,\n _BUILD_PROC_MACRO_DEPENDENCIES,\n ]).pop(package_name, {})\n\n # Combine all conditional packages so we can easily index over a flat list\n # TODO: Perhaps this should actually return select statements and maintain\n # the conditionals of the dependencies\n flat_deps = {}\n for deps_set in dependencies.values():\n for crate_name, crate_label in deps_set.items():\n flat_deps.update({crate_name: crate_label})\n\n missing_crates = []\n crate_targets = []\n for crate_target in deps:\n if crate_target not in flat_deps:\n missing_crates.append(crate_target)\n else:\n crate_targets.append(flat_deps[crate_target])\n\n if missing_crates:\n fail(\"Could not find crates `{}` among dependencies of `{}`. Available dependencies were `{}`\".format(\n missing_crates,\n package_name,\n dependencies,\n ))\n\n return crate_targets\n\ndef crate_edition(package_name = None):\n \"\"\"Finds the Rust edition for the package where this macro is called.\n\n Args:\n package_name (str, optional): The package name whose edition should be\n looked up. Defaults to `native.package_name()` when unset.\n\n Returns:\n str: The Rust edition declared by the package's Cargo.toml file.\n \"\"\"\n if package_name == None:\n package_name = native.package_name()\n\n if package_name not in _CRATE_EDITIONS:\n fail(\"Tried to get crate_edition for package \" + package_name + \" but that package had no Cargo.toml file\")\n\n return _CRATE_EDITIONS[package_name]\n\ndef all_crate_deps(\n normal = False, \n normal_dev = False, \n proc_macro = False, \n proc_macro_dev = False,\n build = False,\n build_proc_macro = False,\n package_name = None):\n \"\"\"Finds the fully qualified label of all requested direct crate dependencies \\\n for the package where this macro is called.\n\n If no parameters are set, all normal dependencies are returned. Setting any one flag will\n otherwise impact the contents of the returned list.\n\n Args:\n normal (bool, optional): If True, normal dependencies are included in the\n output list.\n normal_dev (bool, optional): If True, normal dev dependencies will be\n included in the output list.\n proc_macro (bool, optional): If True, proc_macro dependencies are included\n in the output list.\n proc_macro_dev (bool, optional): If True, dev proc_macro dependencies are\n included in the output list.\n build (bool, optional): If True, build dependencies are included\n in the output list.\n build_proc_macro (bool, optional): If True, build proc_macro dependencies are\n included in the output list.\n package_name (str, optional): The package name of the set of dependencies to look up.\n Defaults to `native.package_name()` when unset.\n\n Returns:\n list: A list of labels to generated rust targets (str)\n \"\"\"\n\n if package_name == None:\n package_name = native.package_name()\n\n # Determine the relevant maps to use\n all_dependency_maps = []\n if normal:\n all_dependency_maps.append(_NORMAL_DEPENDENCIES)\n if normal_dev:\n all_dependency_maps.append(_NORMAL_DEV_DEPENDENCIES)\n if proc_macro:\n all_dependency_maps.append(_PROC_MACRO_DEPENDENCIES)\n if proc_macro_dev:\n all_dependency_maps.append(_PROC_MACRO_DEV_DEPENDENCIES)\n if build:\n all_dependency_maps.append(_BUILD_DEPENDENCIES)\n if build_proc_macro:\n all_dependency_maps.append(_BUILD_PROC_MACRO_DEPENDENCIES)\n\n # Default to always using normal dependencies\n if not all_dependency_maps:\n all_dependency_maps.append(_NORMAL_DEPENDENCIES)\n\n dependencies = _flatten_dependency_maps(all_dependency_maps).pop(package_name, None)\n\n if not dependencies:\n if dependencies == None:\n fail(\"Tried to get all_crate_deps for package \" + package_name + \" but that package had no Cargo.toml file\")\n else:\n return []\n\n crate_deps = list(dependencies.pop(_COMMON_CONDITION, {}).values())\n for condition, deps in dependencies.items():\n crate_deps += selects.with_or({\n tuple(_CONDITIONS[condition]): deps.values(),\n \"//conditions:default\": [],\n })\n\n return crate_deps\n\ndef aliases(\n normal = False,\n normal_dev = False,\n proc_macro = False,\n proc_macro_dev = False,\n build = False,\n build_proc_macro = False,\n package_name = None):\n \"\"\"Produces a map of Crate alias names to their original label\n\n If no dependency kinds are specified, `normal` and `proc_macro` are used by default.\n Setting any one flag will otherwise determine the contents of the returned dict.\n\n Args:\n normal (bool, optional): If True, normal dependencies are included in the\n output list.\n normal_dev (bool, optional): If True, normal dev dependencies will be\n included in the output list..\n proc_macro (bool, optional): If True, proc_macro dependencies are included\n in the output list.\n proc_macro_dev (bool, optional): If True, dev proc_macro dependencies are\n included in the output list.\n build (bool, optional): If True, build dependencies are included\n in the output list.\n build_proc_macro (bool, optional): If True, build proc_macro dependencies are\n included in the output list.\n package_name (str, optional): The package name of the set of dependencies to look up.\n Defaults to `native.package_name()` when unset.\n\n Returns:\n dict: The aliases of all associated packages\n \"\"\"\n if package_name == None:\n package_name = native.package_name()\n\n # Determine the relevant maps to use\n all_aliases_maps = []\n if normal:\n all_aliases_maps.append(_NORMAL_ALIASES)\n if normal_dev:\n all_aliases_maps.append(_NORMAL_DEV_ALIASES)\n if proc_macro:\n all_aliases_maps.append(_PROC_MACRO_ALIASES)\n if proc_macro_dev:\n all_aliases_maps.append(_PROC_MACRO_DEV_ALIASES)\n if build:\n all_aliases_maps.append(_BUILD_ALIASES)\n if build_proc_macro:\n all_aliases_maps.append(_BUILD_PROC_MACRO_ALIASES)\n\n # Default to always using normal aliases\n if not all_aliases_maps:\n all_aliases_maps.append(_NORMAL_ALIASES)\n all_aliases_maps.append(_PROC_MACRO_ALIASES)\n\n aliases = _flatten_dependency_maps(all_aliases_maps).pop(package_name, None)\n\n if not aliases:\n return dict()\n\n common_items = aliases.pop(_COMMON_CONDITION, {}).items()\n\n # If there are only common items in the dictionary, immediately return them\n if not len(aliases.keys()) == 1:\n return dict(common_items)\n\n # Build a single select statement where each conditional has accounted for the\n # common set of aliases.\n crate_aliases = {\"//conditions:default\": dict(common_items)}\n for condition, deps in aliases.items():\n condition_triples = _CONDITIONS[condition]\n for triple in condition_triples:\n if triple in crate_aliases:\n crate_aliases[triple].update(deps)\n else:\n crate_aliases.update({triple: dict(deps.items() + common_items)})\n\n return select(crate_aliases)\n\n###############################################################################\n# WORKSPACE MEMBER DEPS, ALIASES, AND EDITIONS\n###############################################################################\n\n_CRATE_EDITIONS = {\n \"meta/dev\": \"2021\",\n \"meta/bazel\": \"2021\",\n \"pkgs/num\": \"2021\",\n \"pkgs/p2p_core\": \"2021\",\n \"pkgs/params\": \"2021\",\n \"pkgs/pkc\": \"2021\",\n \"pkgs/pow\": \"2021\",\n \"pkgs/primitives\": \"2021\",\n \"pkgs/script\": \"2021\",\n \"pkgs/types\": \"2021\",\n \"pkgs/types/marker\": \"2021\",\n}\n\n_NORMAL_DEPENDENCIES = {\n \"meta/dev\": {\n _COMMON_CONDITION: {\n \"bitcoin-consensus-encoding\": Label(\"@crates//bitcoin-consensus-encoding-1.3.0\"),\n \"cfg-if\": Label(\"@crates//cfg-if-1.0.5\"),\n \"ciborium\": Label(\"@crates//ciborium-0.2.2\"),\n \"hex-conservative\": Label(\"@crates//hex-conservative-1.3.0\"),\n \"json5\": Label(\"@crates//json5-0.4.1\"),\n \"serde\": Label(\"@crates//serde-1.0.229\"),\n \"serde_json\": Label(\"@crates//serde_json-1.0.154\"),\n },\n },\n \"meta/bazel\": {\n },\n \"pkgs/num\": {\n _COMMON_CONDITION: {\n \"bitcoin-consensus-encoding\": Label(\"@crates//bitcoin-consensus-encoding-1.3.0\"),\n \"bitcoin-internals\": Label(\"@crates//bitcoin-internals-0.8.2\"),\n \"hex-conservative\": Label(\"@crates//hex-conservative-1.3.0\"),\n \"serde\": Label(\"@crates//serde-1.0.229\"),\n },\n },\n \"pkgs/p2p_core\": {\n _COMMON_CONDITION: {\n \"bitcoin-consensus-encoding\": Label(\"@crates//bitcoin-consensus-encoding-1.3.0\"),\n \"cfg-if\": Label(\"@crates//cfg-if-1.0.5\"),\n \"serde\": Label(\"@crates//serde-1.0.229\"),\n \"thiserror\": Label(\"@crates//thiserror-2.0.21\"),\n },\n },\n \"pkgs/params\": {\n _COMMON_CONDITION: {\n \"bitcoin-units\": Label(\"@crates//bitcoin-units-0.7.0\"),\n \"bitcoin_hashes\": Label(\"@crates//bitcoin_hashes-1.2.0\"),\n \"hex-conservative\": Label(\"@crates//hex-conservative-1.3.0\"),\n },\n },\n \"pkgs/pkc\": {\n _COMMON_CONDITION: {\n \"aes\": Label(\"@crates//aes-0.9.3\"),\n \"base58ck\": Label(\"@crates//base58ck-0.5.0\"),\n \"bitcoin_hashes\": Label(\"@crates//bitcoin_hashes-1.2.0\"),\n \"blst\": Label(\"@crates//blst-0.3.17\"),\n \"cfg-if\": Label(\"@crates//cfg-if-1.0.5\"),\n \"ed25519-dalek\": Label(\"@crates//ed25519-dalek-3.0.0\"),\n \"ff\": Label(\"@crates//ff-0.14.0\"),\n \"group\": Label(\"@crates//group-0.14.0\"),\n \"hex-conservative\": Label(\"@crates//hex-conservative-1.3.0\"),\n \"rand_core\": Label(\"@crates//rand_core-0.10.1\"),\n \"secp256k1\": Label(\"@crates//secp256k1-0.33.1\"),\n \"serde\": Label(\"@crates//serde-1.0.229\"),\n \"sha2\": Label(\"@crates//sha2-0.11.1\"),\n \"subtle\": Label(\"@crates//subtle-2.6.1\"),\n \"thiserror\": Label(\"@crates//thiserror-2.0.21\"),\n \"zeroize\": Label(\"@crates//zeroize-1.9.1\"),\n },\n },\n \"pkgs/pow\": {\n _COMMON_CONDITION: {\n \"digest\": Label(\"@crates//digest-0.11.3\"),\n \"wide\": Label(\"@crates//wide-1.7.1\"),\n },\n },\n \"pkgs/primitives\": {\n _COMMON_CONDITION: {\n \"bitcoin-consensus-encoding\": Label(\"@crates//bitcoin-consensus-encoding-1.3.0\"),\n \"bitcoin-primitives\": Label(\"@crates//bitcoin-primitives-0.104.0\"),\n \"bitcoin-units\": Label(\"@crates//bitcoin-units-0.7.0\"),\n \"bitcoin_hashes\": Label(\"@crates//bitcoin_hashes-1.2.0\"),\n \"cfg-if\": Label(\"@crates//cfg-if-1.0.5\"),\n \"hex-conservative\": Label(\"@crates//hex-conservative-1.3.0\"),\n \"libm\": Label(\"@crates//libm-0.2.16\"),\n \"serde\": Label(\"@crates//serde-1.0.229\"),\n \"thiserror\": Label(\"@crates//thiserror-2.0.21\"),\n },\n },\n \"pkgs/script\": {\n _COMMON_CONDITION: {\n \"base58ck\": Label(\"@crates//base58ck-0.5.0\"),\n \"bitcoin-consensus-encoding\": Label(\"@crates//bitcoin-consensus-encoding-1.3.0\"),\n \"serde\": Label(\"@crates//serde-1.0.229\"),\n },\n },\n \"pkgs/types\": {\n _COMMON_CONDITION: {\n \"base58ck\": Label(\"@crates//base58ck-0.5.0\"),\n \"bitcoin-consensus-encoding\": Label(\"@crates//bitcoin-consensus-encoding-1.3.0\"),\n \"bitcoin-primitives\": Label(\"@crates//bitcoin-primitives-0.104.0\"),\n \"bitcoin_hashes\": Label(\"@crates//bitcoin_hashes-1.2.0\"),\n \"cfg-if\": Label(\"@crates//cfg-if-1.0.5\"),\n \"hex-conservative\": Label(\"@crates//hex-conservative-1.3.0\"),\n \"serde\": Label(\"@crates//serde-1.0.229\"),\n \"subtle\": Label(\"@crates//subtle-2.6.1\"),\n \"thiserror\": Label(\"@crates//thiserror-2.0.21\"),\n \"zeroize\": Label(\"@crates//zeroize-1.9.1\"),\n },\n },\n \"pkgs/types/marker\": {\n _COMMON_CONDITION: {\n \"quote\": Label(\"@crates//quote-1.0.47\"),\n \"syn\": Label(\"@crates//syn-2.0.119\"),\n \"xxhash-rust\": Label(\"@crates//xxhash-rust-0.8.19\"),\n },\n },\n}\n\n\n_NORMAL_ALIASES = {\n \"meta/dev\": {\n _COMMON_CONDITION: {\n },\n },\n \"meta/bazel\": {\n },\n \"pkgs/num\": {\n _COMMON_CONDITION: {\n },\n },\n \"pkgs/p2p_core\": {\n _COMMON_CONDITION: {\n },\n },\n \"pkgs/params\": {\n _COMMON_CONDITION: {\n },\n },\n \"pkgs/pkc\": {\n _COMMON_CONDITION: {\n },\n },\n \"pkgs/pow\": {\n _COMMON_CONDITION: {\n },\n },\n \"pkgs/primitives\": {\n _COMMON_CONDITION: {\n },\n },\n \"pkgs/script\": {\n _COMMON_CONDITION: {\n },\n },\n \"pkgs/types\": {\n _COMMON_CONDITION: {\n },\n },\n \"pkgs/types/marker\": {\n _COMMON_CONDITION: {\n },\n },\n}\n\n\n_NORMAL_DEV_DEPENDENCIES = {\n \"meta/dev\": {\n },\n \"meta/bazel\": {\n },\n \"pkgs/num\": {\n _COMMON_CONDITION: {\n \"divan\": Label(\"@crates//divan-0.1.21\"),\n \"rstest\": Label(\"@crates//rstest-0.25.0\"),\n },\n },\n \"pkgs/p2p_core\": {\n _COMMON_CONDITION: {\n \"hex-conservative\": Label(\"@crates//hex-conservative-1.3.0\"),\n \"rstest\": Label(\"@crates//rstest-0.25.0\"),\n },\n },\n \"pkgs/params\": {\n _COMMON_CONDITION: {\n \"rstest\": Label(\"@crates//rstest-0.25.0\"),\n \"serde\": Label(\"@crates//serde-1.0.229\"),\n },\n },\n \"pkgs/pkc\": {\n _COMMON_CONDITION: {\n \"bitcoin-consensus-encoding\": Label(\"@crates//bitcoin-consensus-encoding-1.3.0\"),\n \"divan\": Label(\"@crates//divan-0.1.21\"),\n \"getrandom\": Label(\"@crates//getrandom-0.4.3\"),\n \"rstest\": Label(\"@crates//rstest-0.25.0\"),\n },\n },\n \"pkgs/pow\": {\n _COMMON_CONDITION: {\n \"divan\": Label(\"@crates//divan-0.1.21\"),\n \"hex-conservative\": Label(\"@crates//hex-conservative-1.3.0\"),\n \"rstest\": Label(\"@crates//rstest-0.25.0\"),\n },\n },\n \"pkgs/primitives\": {\n _COMMON_CONDITION: {\n \"rstest\": Label(\"@crates//rstest-0.25.0\"),\n },\n },\n \"pkgs/script\": {\n _COMMON_CONDITION: {\n \"hex-conservative\": Label(\"@crates//hex-conservative-1.3.0\"),\n \"rstest\": Label(\"@crates//rstest-0.25.0\"),\n },\n },\n \"pkgs/types\": {\n _COMMON_CONDITION: {\n \"ciborium\": Label(\"@crates//ciborium-0.2.2\"),\n \"rstest\": Label(\"@crates//rstest-0.25.0\"),\n },\n },\n \"pkgs/types/marker\": {\n },\n}\n\n\n_NORMAL_DEV_ALIASES = {\n \"meta/dev\": {\n },\n \"meta/bazel\": {\n },\n \"pkgs/num\": {\n _COMMON_CONDITION: {\n },\n },\n \"pkgs/p2p_core\": {\n _COMMON_CONDITION: {\n },\n },\n \"pkgs/params\": {\n _COMMON_CONDITION: {\n },\n },\n \"pkgs/pkc\": {\n _COMMON_CONDITION: {\n },\n },\n \"pkgs/pow\": {\n _COMMON_CONDITION: {\n },\n },\n \"pkgs/primitives\": {\n _COMMON_CONDITION: {\n },\n },\n \"pkgs/script\": {\n _COMMON_CONDITION: {\n },\n },\n \"pkgs/types\": {\n _COMMON_CONDITION: {\n },\n },\n \"pkgs/types/marker\": {\n },\n}\n\n\n_PROC_MACRO_DEPENDENCIES = {\n \"meta/dev\": {\n },\n \"meta/bazel\": {\n },\n \"pkgs/num\": {\n _COMMON_CONDITION: {\n \"ambassador\": Label(\"@crates//ambassador-0.5.1\"),\n \"delegate\": Label(\"@crates//delegate-0.13.5\"),\n },\n },\n \"pkgs/p2p_core\": {\n _COMMON_CONDITION: {\n \"getset\": Label(\"@crates//getset-0.1.7\"),\n },\n },\n \"pkgs/params\": {\n },\n \"pkgs/pkc\": {\n },\n \"pkgs/pow\": {\n },\n \"pkgs/primitives\": {\n _COMMON_CONDITION: {\n \"getset\": Label(\"@crates//getset-0.1.7\"),\n },\n },\n \"pkgs/script\": {\n },\n \"pkgs/types\": {\n },\n \"pkgs/types/marker\": {\n },\n}\n\n\n_PROC_MACRO_ALIASES = {\n \"meta/dev\": {\n },\n \"meta/bazel\": {\n },\n \"pkgs/num\": {\n },\n \"pkgs/p2p_core\": {\n },\n \"pkgs/params\": {\n },\n \"pkgs/pkc\": {\n },\n \"pkgs/pow\": {\n },\n \"pkgs/primitives\": {\n },\n \"pkgs/script\": {\n },\n \"pkgs/types\": {\n },\n \"pkgs/types/marker\": {\n },\n}\n\n\n_PROC_MACRO_DEV_DEPENDENCIES = {\n \"meta/dev\": {\n },\n \"meta/bazel\": {\n },\n \"pkgs/num\": {\n },\n \"pkgs/p2p_core\": {\n },\n \"pkgs/params\": {\n },\n \"pkgs/pkc\": {\n },\n \"pkgs/pow\": {\n },\n \"pkgs/primitives\": {\n },\n \"pkgs/script\": {\n },\n \"pkgs/types\": {\n },\n \"pkgs/types/marker\": {\n },\n}\n\n\n_PROC_MACRO_DEV_ALIASES = {\n \"meta/dev\": {\n },\n \"meta/bazel\": {\n },\n \"pkgs/num\": {\n _COMMON_CONDITION: {\n },\n },\n \"pkgs/p2p_core\": {\n _COMMON_CONDITION: {\n },\n },\n \"pkgs/params\": {\n _COMMON_CONDITION: {\n },\n },\n \"pkgs/pkc\": {\n _COMMON_CONDITION: {\n },\n },\n \"pkgs/pow\": {\n _COMMON_CONDITION: {\n },\n },\n \"pkgs/primitives\": {\n _COMMON_CONDITION: {\n },\n },\n \"pkgs/script\": {\n _COMMON_CONDITION: {\n },\n },\n \"pkgs/types\": {\n _COMMON_CONDITION: {\n },\n },\n \"pkgs/types/marker\": {\n },\n}\n\n\n_BUILD_DEPENDENCIES = {\n \"meta/dev\": {\n _COMMON_CONDITION: {\n \"built\": Label(\"@crates//built-0.7.7\"),\n \"proc-macro2\": Label(\"@crates//proc-macro2-1.0.107\"),\n \"syn\": Label(\"@crates//syn-2.0.119\"),\n \"xxhash-rust\": Label(\"@crates//xxhash-rust-0.8.19\"),\n },\n },\n \"meta/bazel\": {\n },\n \"pkgs/num\": {\n },\n \"pkgs/p2p_core\": {\n },\n \"pkgs/params\": {\n },\n \"pkgs/pkc\": {\n },\n \"pkgs/pow\": {\n },\n \"pkgs/primitives\": {\n },\n \"pkgs/script\": {\n },\n \"pkgs/types\": {\n },\n \"pkgs/types/marker\": {\n },\n}\n\n\n_BUILD_ALIASES = {\n \"meta/dev\": {\n _COMMON_CONDITION: {\n },\n },\n \"meta/bazel\": {\n },\n \"pkgs/num\": {\n },\n \"pkgs/p2p_core\": {\n },\n \"pkgs/params\": {\n },\n \"pkgs/pkc\": {\n },\n \"pkgs/pow\": {\n },\n \"pkgs/primitives\": {\n },\n \"pkgs/script\": {\n },\n \"pkgs/types\": {\n },\n \"pkgs/types/marker\": {\n },\n}\n\n\n_BUILD_PROC_MACRO_DEPENDENCIES = {\n \"meta/dev\": {\n },\n \"meta/bazel\": {\n },\n \"pkgs/num\": {\n },\n \"pkgs/p2p_core\": {\n },\n \"pkgs/params\": {\n },\n \"pkgs/pkc\": {\n },\n \"pkgs/pow\": {\n },\n \"pkgs/primitives\": {\n },\n \"pkgs/script\": {\n },\n \"pkgs/types\": {\n },\n \"pkgs/types/marker\": {\n },\n}\n\n\n_BUILD_PROC_MACRO_ALIASES = {\n \"meta/dev\": {\n },\n \"meta/bazel\": {\n },\n \"pkgs/num\": {\n },\n \"pkgs/p2p_core\": {\n },\n \"pkgs/params\": {\n },\n \"pkgs/pkc\": {\n },\n \"pkgs/pow\": {\n },\n \"pkgs/primitives\": {\n },\n \"pkgs/script\": {\n },\n \"pkgs/types\": {\n },\n \"pkgs/types/marker\": {\n },\n}\n\n\n_CONDITIONS = {\n \"aarch64-apple-darwin\": [\"@rules_rust//rust/platform:aarch64-apple-darwin\"],\n \"aarch64-pc-windows-msvc\": [],\n \"aarch64-unknown-linux-gnu\": [\"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\"],\n \"arm64ec-pc-windows-msvc\": [],\n \"cfg(all(any(target_os = \\\"linux\\\", target_os = \\\"android\\\"), any(rustix_use_libc, miri, not(all(target_os = \\\"linux\\\", any(target_endian = \\\"little\\\", any(target_arch = \\\"s390x\\\", target_arch = \\\"powerpc\\\")), any(target_arch = \\\"arm\\\", all(target_arch = \\\"aarch64\\\", target_pointer_width = \\\"64\\\"), target_arch = \\\"riscv64\\\", all(rustix_use_experimental_asm, target_arch = \\\"powerpc\\\"), all(rustix_use_experimental_asm, target_arch = \\\"powerpc64\\\"), all(rustix_use_experimental_asm, target_arch = \\\"s390x\\\"), all(rustix_use_experimental_asm, target_arch = \\\"mips\\\"), all(rustix_use_experimental_asm, target_arch = \\\"mips32r6\\\"), all(rustix_use_experimental_asm, target_arch = \\\"mips64\\\"), all(rustix_use_experimental_asm, target_arch = \\\"mips64r6\\\"), target_arch = \\\"x86\\\", all(target_arch = \\\"x86_64\\\", target_pointer_width = \\\"64\\\")))))))\": [],\n \"cfg(all(any(target_os = \\\"linux\\\", target_os = \\\"android\\\"), not(any(all(target_os = \\\"linux\\\", target_env = \\\"\\\"), getrandom_backend = \\\"custom\\\", getrandom_backend = \\\"linux_raw\\\", getrandom_backend = \\\"rdrand\\\", getrandom_backend = \\\"rndr\\\"))))\": [\"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\",\"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\"],\n \"cfg(all(not(curve25519_dalek_backend = \\\"fiat\\\"), not(curve25519_dalek_backend = \\\"serial\\\"), target_arch = \\\"x86_64\\\"))\": [\"@rules_rust//rust/platform:x86_64-apple-darwin\",\"@rules_rust//rust/platform:x86_64-pc-windows-msvc\",\"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\"],\n \"cfg(all(not(rustix_use_libc), not(miri), target_os = \\\"linux\\\", any(target_endian = \\\"little\\\", any(target_arch = \\\"s390x\\\", target_arch = \\\"powerpc\\\")), any(target_arch = \\\"arm\\\", all(target_arch = \\\"aarch64\\\", target_pointer_width = \\\"64\\\"), target_arch = \\\"riscv64\\\", all(rustix_use_experimental_asm, target_arch = \\\"powerpc\\\"), all(rustix_use_experimental_asm, target_arch = \\\"powerpc64\\\"), all(rustix_use_experimental_asm, target_arch = \\\"s390x\\\"), all(rustix_use_experimental_asm, target_arch = \\\"mips\\\"), all(rustix_use_experimental_asm, target_arch = \\\"mips32r6\\\"), all(rustix_use_experimental_asm, target_arch = \\\"mips64\\\"), all(rustix_use_experimental_asm, target_arch = \\\"mips64r6\\\"), target_arch = \\\"x86\\\", all(target_arch = \\\"x86_64\\\", target_pointer_width = \\\"64\\\"))))\": [\"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\",\"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\"],\n \"cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = \\\"linux\\\", any(target_endian = \\\"little\\\", any(target_arch = \\\"s390x\\\", target_arch = \\\"powerpc\\\")), any(target_arch = \\\"arm\\\", all(target_arch = \\\"aarch64\\\", target_pointer_width = \\\"64\\\"), target_arch = \\\"riscv64\\\", all(rustix_use_experimental_asm, target_arch = \\\"powerpc\\\"), all(rustix_use_experimental_asm, target_arch = \\\"powerpc64\\\"), all(rustix_use_experimental_asm, target_arch = \\\"s390x\\\"), all(rustix_use_experimental_asm, target_arch = \\\"mips\\\"), all(rustix_use_experimental_asm, target_arch = \\\"mips32r6\\\"), all(rustix_use_experimental_asm, target_arch = \\\"mips64\\\"), all(rustix_use_experimental_asm, target_arch = \\\"mips64r6\\\"), target_arch = \\\"x86\\\", all(target_arch = \\\"x86_64\\\", target_pointer_width = \\\"64\\\")))))))\": [\"@rules_rust//rust/platform:aarch64-apple-darwin\",\"@rules_rust//rust/platform:x86_64-apple-darwin\"],\n \"cfg(all(target_arch = \\\"aarch64\\\", target_os = \\\"android\\\"))\": [],\n \"cfg(all(target_arch = \\\"aarch64\\\", target_os = \\\"linux\\\"))\": [\"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\"],\n \"cfg(all(target_arch = \\\"aarch64\\\", target_vendor = \\\"apple\\\"))\": [\"@rules_rust//rust/platform:aarch64-apple-darwin\"],\n \"cfg(all(target_arch = \\\"loongarch64\\\", target_os = \\\"linux\\\"))\": [],\n \"cfg(all(target_os = \\\"uefi\\\", getrandom_backend = \\\"efi_rng\\\"))\": [],\n \"cfg(all(windows, not(target_arch = \\\"arm64ec\\\")))\": [\"@rules_rust//rust/platform:x86_64-pc-windows-msvc\"],\n \"cfg(any())\": [],\n \"cfg(any(target_arch = \\\"aarch64\\\", target_arch = \\\"x86_64\\\", target_arch = \\\"x86\\\"))\": [\"@rules_rust//rust/platform:aarch64-apple-darwin\",\"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\",\"@rules_rust//rust/platform:x86_64-apple-darwin\",\"@rules_rust//rust/platform:x86_64-pc-windows-msvc\",\"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\"],\n \"cfg(any(target_os = \\\"dragonfly\\\", target_os = \\\"freebsd\\\", target_os = \\\"hurd\\\", target_os = \\\"illumos\\\", target_os = \\\"cygwin\\\", all(target_os = \\\"horizon\\\", target_arch = \\\"arm\\\")))\": [],\n \"cfg(any(target_os = \\\"haiku\\\", target_os = \\\"redox\\\", target_os = \\\"nto\\\", target_os = \\\"aix\\\"))\": [],\n \"cfg(any(target_os = \\\"ios\\\", target_os = \\\"visionos\\\", target_os = \\\"watchos\\\", target_os = \\\"tvos\\\"))\": [],\n \"cfg(any(target_os = \\\"macos\\\", target_os = \\\"openbsd\\\", target_os = \\\"vita\\\", target_os = \\\"emscripten\\\"))\": [\"@rules_rust//rust/platform:aarch64-apple-darwin\",\"@rules_rust//rust/platform:x86_64-apple-darwin\"],\n \"cfg(curve25519_dalek_backend = \\\"fiat\\\")\": [],\n \"cfg(not(any(target_arch = \\\"wasm32\\\", target_os = \\\"none\\\", target_os = \\\"unknown\\\", target_os = \\\"uefi\\\")))\": [\"@rules_rust//rust/platform:aarch64-apple-darwin\",\"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\",\"@rules_rust//rust/platform:x86_64-apple-darwin\",\"@rules_rust//rust/platform:x86_64-pc-windows-msvc\",\"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\"],\n \"cfg(not(windows))\": [\"@rules_rust//rust/platform:aarch64-apple-darwin\",\"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\",\"@rules_rust//rust/platform:x86_64-apple-darwin\",\"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\"],\n \"cfg(target_arch = \\\"spirv\\\")\": [],\n \"cfg(target_arch = \\\"x86\\\")\": [],\n \"cfg(target_arch = \\\"x86_64\\\")\": [\"@rules_rust//rust/platform:x86_64-apple-darwin\",\"@rules_rust//rust/platform:x86_64-pc-windows-msvc\",\"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\"],\n \"cfg(target_env = \\\"msvc\\\")\": [\"@rules_rust//rust/platform:x86_64-pc-windows-msvc\"],\n \"cfg(target_os = \\\"hermit\\\")\": [],\n \"cfg(target_os = \\\"netbsd\\\")\": [],\n \"cfg(target_os = \\\"solaris\\\")\": [],\n \"cfg(target_os = \\\"vxworks\\\")\": [],\n \"cfg(target_os = \\\"wasi\\\")\": [],\n \"cfg(unix)\": [\"@rules_rust//rust/platform:aarch64-apple-darwin\",\"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\",\"@rules_rust//rust/platform:x86_64-apple-darwin\",\"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\"],\n \"cfg(windows)\": [\"@rules_rust//rust/platform:x86_64-pc-windows-msvc\"],\n \"x86_64-apple-darwin\": [\"@rules_rust//rust/platform:x86_64-apple-darwin\"],\n \"x86_64-pc-windows-msvc\": [\"@rules_rust//rust/platform:x86_64-pc-windows-msvc\"],\n \"x86_64-unknown-linux-gnu\": [\"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\"],\n}\n\n###############################################################################\n\ndef crate_repositories():\n \"\"\"A macro for defining repositories for all generated crates.\n\n Returns:\n A list of repos visible to the module through the module extension.\n \"\"\"\n maybe(\n crates_vendor_remote_repository,\n name = \"crates\",\n # Lean interface: just point at `crates.bzl`; the repo rule\n # derives the sibling `BUILD.bazel` and `defs.bzl`.\n crates_module = Label(\"@crates//crates:crates.bzl\"),\n )\n maybe(\n http_archive,\n name = \"crates__aes-0.9.3\",\n sha256 = \"35f0f96ce78e38c3dc6d8948aa8163d06385be74000f3c7a95bf1eef35d3ea32\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/aes/0.9.3/download\"],\n strip_prefix = \"aes-0.9.3\",\n build_file = Label(\"@crates//crates:BUILD.aes-0.9.3.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__aho-corasick-1.1.5\",\n sha256 = \"c982642fa9e8606056828ee9a8505737230110bb1099153c79efe865c59d12ba\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/aho-corasick/1.1.5/download\"],\n strip_prefix = \"aho-corasick-1.1.5\",\n build_file = Label(\"@crates//crates:BUILD.aho-corasick-1.1.5.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__ambassador-0.5.1\",\n sha256 = \"cd3d4da7fddbc6567cbd7b5c30364f91313701b1857ab5b925eb3acf06162eed\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/ambassador/0.5.1/download\"],\n strip_prefix = \"ambassador-0.5.1\",\n build_file = Label(\"@crates//crates:BUILD.ambassador-0.5.1.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__anstyle-1.0.14\",\n sha256 = \"940b3a0ca603d1eade50a4846a2afffd5ef57a9feac2c0e2ec2e14f9ead76000\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/anstyle/1.0.14/download\"],\n strip_prefix = \"anstyle-1.0.14\",\n build_file = Label(\"@crates//crates:BUILD.anstyle-1.0.14.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__arrayvec-0.7.8\",\n sha256 = \"d3fb67a6e08acf24fdeccbac2cb6ac4305825bd1f117462e0e6f2f193345ad56\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/arrayvec/0.7.8/download\"],\n strip_prefix = \"arrayvec-0.7.8\",\n build_file = Label(\"@crates//crates:BUILD.arrayvec-0.7.8.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__base58ck-0.5.0\",\n sha256 = \"df540278d807651653f9b6f21e18903d790d7769eadfbc0dc4df0a141260318f\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/base58ck/0.5.0/download\"],\n strip_prefix = \"base58ck-0.5.0\",\n build_file = Label(\"@crates//crates:BUILD.base58ck-0.5.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__bitcoin-consensus-encoding-1.3.0\",\n sha256 = \"9daa31138eb443d5751b207f3f64154e2bb09cd59960562ccc7a7112be38147f\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/bitcoin-consensus-encoding/1.3.0/download\"],\n strip_prefix = \"bitcoin-consensus-encoding-1.3.0\",\n build_file = Label(\"@crates//crates:BUILD.bitcoin-consensus-encoding-1.3.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__bitcoin-internals-0.6.0\",\n sha256 = \"d573f4cf32996a8dce612e4348cece65a241f1882ed594047c9ba348e8869fa5\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/bitcoin-internals/0.6.0/download\"],\n strip_prefix = \"bitcoin-internals-0.6.0\",\n build_file = Label(\"@crates//crates:BUILD.bitcoin-internals-0.6.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__bitcoin-internals-0.7.0\",\n sha256 = \"e8bea3a9f0cfece4564e37cb49a38cc245ca5184719e50d7d0dda3268722c4e2\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/bitcoin-internals/0.7.0/download\"],\n strip_prefix = \"bitcoin-internals-0.7.0\",\n build_file = Label(\"@crates//crates:BUILD.bitcoin-internals-0.7.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__bitcoin-internals-0.8.2\",\n sha256 = \"e3491249864b8cc929bf63e726045702ff1c1a39c990aef2d41bff0b42fee661\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/bitcoin-internals/0.8.2/download\"],\n strip_prefix = \"bitcoin-internals-0.8.2\",\n build_file = Label(\"@crates//crates:BUILD.bitcoin-internals-0.8.2.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__bitcoin-primitives-0.104.0\",\n sha256 = \"7837d569088c0dc0ce0ec5e0288e92011723c8e192f8c2d3ff09840974fa2cbe\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/bitcoin-primitives/0.104.0/download\"],\n strip_prefix = \"bitcoin-primitives-0.104.0\",\n build_file = Label(\"@crates//crates:BUILD.bitcoin-primitives-0.104.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__bitcoin-units-0.7.0\",\n sha256 = \"1e95f325c563b308c78fe6de36f46b359c1d326271082f0c0140fa4e1a854d26\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/bitcoin-units/0.7.0/download\"],\n strip_prefix = \"bitcoin-units-0.7.0\",\n build_file = Label(\"@crates//crates:BUILD.bitcoin-units-0.7.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__bitcoin_hashes-1.2.0\",\n sha256 = \"5304e53726dbe5f93141535e102ed97b5bf4714fbecefdda8f9fb98d7fdaff0e\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/bitcoin_hashes/1.2.0/download\"],\n strip_prefix = \"bitcoin_hashes-1.2.0\",\n build_file = Label(\"@crates//crates:BUILD.bitcoin_hashes-1.2.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__bitflags-2.13.2\",\n sha256 = \"3ded4057c258ba199e2d26386d3af3780957ecaee6c4ef4041c6b4b8b97c0b06\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/bitflags/2.13.2/download\"],\n strip_prefix = \"bitflags-2.13.2\",\n build_file = Label(\"@crates//crates:BUILD.bitflags-2.13.2.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__block-buffer-0.12.1\",\n sha256 = \"d2f6c7dbe95a6ed67ad9f18e57daf93a2f034c524b99fd2b76d18fdfeb6660aa\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/block-buffer/0.12.1/download\"],\n strip_prefix = \"block-buffer-0.12.1\",\n build_file = Label(\"@crates//crates:BUILD.block-buffer-0.12.1.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__blst-0.3.17\",\n sha256 = \"c20659f9bbee16cbbd2f7393e40ab6309f5a98f76a2eb57a995ec508b72387fe\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/blst/0.3.17/download\"],\n strip_prefix = \"blst-0.3.17\",\n build_file = Label(\"@crates//crates:BUILD.blst-0.3.17.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__built-0.7.7\",\n sha256 = \"56ed6191a7e78c36abdb16ab65341eefd73d64d303fffccdbb00d51e4205967b\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/built/0.7.7/download\"],\n strip_prefix = \"built-0.7.7\",\n build_file = Label(\"@crates//crates:BUILD.built-0.7.7.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__bytemuck-1.25.2\",\n sha256 = \"95832e849adfb21180ccb6826a99da14e5d266ae5c2e668e1602cf234f153797\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/bytemuck/1.25.2/download\"],\n strip_prefix = \"bytemuck-1.25.2\",\n build_file = Label(\"@crates//crates:BUILD.bytemuck-1.25.2.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__cargo-lock-10.1.0\",\n sha256 = \"c06acb4f71407ba205a07cb453211e0e6a67b21904e47f6ba1f9589e38f2e454\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/cargo-lock/10.1.0/download\"],\n strip_prefix = \"cargo-lock-10.1.0\",\n build_file = Label(\"@crates//crates:BUILD.cargo-lock-10.1.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__cc-1.10.0\",\n sha256 = \"86e055fa6e3e40ad6187ba25b6855eeb635d5271f8e0f0e1e9a5826b8d75bea0\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/cc/1.10.0/download\"],\n strip_prefix = \"cc-1.10.0\",\n build_file = Label(\"@crates//crates:BUILD.cc-1.10.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__cfg-if-1.0.5\",\n sha256 = \"4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/cfg-if/1.0.5/download\"],\n strip_prefix = \"cfg-if-1.0.5\",\n build_file = Label(\"@crates//crates:BUILD.cfg-if-1.0.5.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__ciborium-0.2.2\",\n sha256 = \"42e69ffd6f0917f5c029256a24d0161db17cea3997d185db0d35926308770f0e\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/ciborium/0.2.2/download\"],\n strip_prefix = \"ciborium-0.2.2\",\n build_file = Label(\"@crates//crates:BUILD.ciborium-0.2.2.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__ciborium-io-0.2.2\",\n sha256 = \"05afea1e0a06c9be33d539b876f1ce3692f4afea2cb41f740e7743225ed1c757\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/ciborium-io/0.2.2/download\"],\n strip_prefix = \"ciborium-io-0.2.2\",\n build_file = Label(\"@crates//crates:BUILD.ciborium-io-0.2.2.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__ciborium-ll-0.2.2\",\n sha256 = \"57663b653d948a338bfb3eeba9bb2fd5fcfaecb9e199e87e1eda4d9e8b240fd9\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/ciborium-ll/0.2.2/download\"],\n strip_prefix = \"ciborium-ll-0.2.2\",\n build_file = Label(\"@crates//crates:BUILD.ciborium-ll-0.2.2.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__cipher-0.5.2\",\n sha256 = \"e8cf2a2c93cd704877c0858356ed03480ff301ee950b43f1cbe4573b088bfa6c\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/cipher/0.5.2/download\"],\n strip_prefix = \"cipher-0.5.2\",\n build_file = Label(\"@crates//crates:BUILD.cipher-0.5.2.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__clap-4.6.7\",\n sha256 = \"aa8876b300ab35ba921adea3dfd70157a46249b33f95c9084ae5709785478946\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/clap/4.6.7/download\"],\n strip_prefix = \"clap-4.6.7\",\n build_file = Label(\"@crates//crates:BUILD.clap-4.6.7.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__clap_builder-4.6.7\",\n sha256 = \"ec0797fb7aeb1406c84efac526901f7ec3ead2124f946b494e72879d4b54704d\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/clap_builder/4.6.7/download\"],\n strip_prefix = \"clap_builder-4.6.7\",\n build_file = Label(\"@crates//crates:BUILD.clap_builder-4.6.7.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__clap_lex-1.1.1\",\n sha256 = \"1c133bc6a41be0d194c306b5506d15e6feeea7b1d6604bd3f8310dfb2ca96486\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/clap_lex/1.1.1/download\"],\n strip_prefix = \"clap_lex-1.1.1\",\n build_file = Label(\"@crates//crates:BUILD.clap_lex-1.1.1.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__condtype-1.3.0\",\n sha256 = \"baf0a07a401f374238ab8e2f11a104d2851bf9ce711ec69804834de8af45c7af\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/condtype/1.3.0/download\"],\n strip_prefix = \"condtype-1.3.0\",\n build_file = Label(\"@crates//crates:BUILD.condtype-1.3.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__cpubits-0.1.1\",\n sha256 = \"15b85f9c39137c3a891689859392b1bd49812121d0d61c9caf00d46ed5ce06ae\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/cpubits/0.1.1/download\"],\n strip_prefix = \"cpubits-0.1.1\",\n build_file = Label(\"@crates//crates:BUILD.cpubits-0.1.1.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__cpufeatures-0.3.1\",\n sha256 = \"5ca28b0ae3115b884660db4118d803791fd6756b6e88f39c0f3f7859060d7566\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/cpufeatures/0.3.1/download\"],\n strip_prefix = \"cpufeatures-0.3.1\",\n build_file = Label(\"@crates//crates:BUILD.cpufeatures-0.3.1.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__crunchy-0.2.4\",\n sha256 = \"460fbee9c2c2f33933d720630a6a0bac33ba7053db5344fac858d4b8952d77d5\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/crunchy/0.2.4/download\"],\n strip_prefix = \"crunchy-0.2.4\",\n build_file = Label(\"@crates//crates:BUILD.crunchy-0.2.4.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__crypto-common-0.2.2\",\n sha256 = \"ce6e4c961d6cd6c9a86db418387425e8bdeaf05b3c8bc1411e6dca4c252f1453\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/crypto-common/0.2.2/download\"],\n strip_prefix = \"crypto-common-0.2.2\",\n build_file = Label(\"@crates//crates:BUILD.crypto-common-0.2.2.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__curve25519-dalek-5.0.0\",\n sha256 = \"b5eed333089e2e1c1ac8c6c0398e5e2497b4c9926ca6d0365ed1e099afa5bc23\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/curve25519-dalek/5.0.0/download\"],\n strip_prefix = \"curve25519-dalek-5.0.0\",\n build_file = Label(\"@crates//crates:BUILD.curve25519-dalek-5.0.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__curve25519-dalek-derive-0.1.1\",\n sha256 = \"f46882e17999c6cc590af592290432be3bce0428cb0d5f8b6715e4dc7b383eb3\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/curve25519-dalek-derive/0.1.1/download\"],\n strip_prefix = \"curve25519-dalek-derive-0.1.1\",\n build_file = Label(\"@crates//crates:BUILD.curve25519-dalek-derive-0.1.1.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__delegate-0.13.5\",\n sha256 = \"780eb241654bf097afb00fc5f054a09b687dad862e485fdcf8399bb056565370\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/delegate/0.13.5/download\"],\n strip_prefix = \"delegate-0.13.5\",\n build_file = Label(\"@crates//crates:BUILD.delegate-0.13.5.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__digest-0.11.3\",\n sha256 = \"f1dd6dbb5841937940781866fa1281a1ff7bd3bf827091440879f9994983d5c2\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/digest/0.11.3/download\"],\n strip_prefix = \"digest-0.11.3\",\n build_file = Label(\"@crates//crates:BUILD.digest-0.11.3.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__displaydoc-0.2.7\",\n sha256 = \"c6232dd377dcc64799954cbd3a9bb882e9cdc1308ccd87b1c098f1fb2eaf82a8\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/displaydoc/0.2.7/download\"],\n strip_prefix = \"displaydoc-0.2.7\",\n build_file = Label(\"@crates//crates:BUILD.displaydoc-0.2.7.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__divan-0.1.21\",\n sha256 = \"a405457ec78b8fe08b0e32b4a3570ab5dff6dd16eb9e76a5ee0a9d9cbd898933\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/divan/0.1.21/download\"],\n strip_prefix = \"divan-0.1.21\",\n build_file = Label(\"@crates//crates:BUILD.divan-0.1.21.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__divan-macros-0.1.21\",\n sha256 = \"9556bc800956545d6420a640173e5ba7dfa82f38d3ea5a167eb555bc69ac3323\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/divan-macros/0.1.21/download\"],\n strip_prefix = \"divan-macros-0.1.21\",\n build_file = Label(\"@crates//crates:BUILD.divan-macros-0.1.21.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__ed25519-3.0.0\",\n sha256 = \"29fcf32e6c73d1079f83ab4d782de2d81620346a5f38c6237a86a22f8368980a\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/ed25519/3.0.0/download\"],\n strip_prefix = \"ed25519-3.0.0\",\n build_file = Label(\"@crates//crates:BUILD.ed25519-3.0.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__ed25519-dalek-3.0.0\",\n sha256 = \"6ebaa1a2bf1290ab3bfe5a7b771d050ebffab2711c19a81691c683a5144a25de\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/ed25519-dalek/3.0.0/download\"],\n strip_prefix = \"ed25519-dalek-3.0.0\",\n build_file = Label(\"@crates//crates:BUILD.ed25519-dalek-3.0.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__either-1.19.0\",\n sha256 = \"0e9c71c2167ca323c882b99918929403426e2373ea17242ff5653e0d5e1058be\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/either/1.19.0/download\"],\n strip_prefix = \"either-1.19.0\",\n build_file = Label(\"@crates//crates:BUILD.either-1.19.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__equivalent-1.0.3\",\n sha256 = \"00d174d5400e5e8fd687ad1049e2f578285fa914201b1af7e8b112a4546bd826\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/equivalent/1.0.3/download\"],\n strip_prefix = \"equivalent-1.0.3\",\n build_file = Label(\"@crates//crates:BUILD.equivalent-1.0.3.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__errno-0.3.14\",\n sha256 = \"39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/errno/0.3.14/download\"],\n strip_prefix = \"errno-0.3.14\",\n build_file = Label(\"@crates//crates:BUILD.errno-0.3.14.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__ff-0.14.0\",\n sha256 = \"a1f686ab92a9fb0eaf188f6c6c87b89490baa6fdb0db4544ba4dc47f7942489f\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/ff/0.14.0/download\"],\n strip_prefix = \"ff-0.14.0\",\n build_file = Label(\"@crates//crates:BUILD.ff-0.14.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__fiat-crypto-0.3.0\",\n sha256 = \"64cd1e32ddd350061ae6edb1b082d7c54915b5c672c389143b9a63403a109f24\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/fiat-crypto/0.3.0/download\"],\n strip_prefix = \"fiat-crypto-0.3.0\",\n build_file = Label(\"@crates//crates:BUILD.fiat-crypto-0.3.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__find-msvc-tools-0.1.15\",\n sha256 = \"1c66915cc5391097de7a2b0b972e8505aa33c0df401fd3a6811dbdb32881ba48\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/find-msvc-tools/0.1.15/download\"],\n strip_prefix = \"find-msvc-tools-0.1.15\",\n build_file = Label(\"@crates//crates:BUILD.find-msvc-tools-0.1.15.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__fixedbitset-0.4.2\",\n sha256 = \"0ce7134b9999ecaf8bcd65542e436736ef32ddca1b3e06094cb6ec5755203b80\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/fixedbitset/0.4.2/download\"],\n strip_prefix = \"fixedbitset-0.4.2\",\n build_file = Label(\"@crates//crates:BUILD.fixedbitset-0.4.2.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__form_urlencoded-1.2.2\",\n sha256 = \"cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/form_urlencoded/1.2.2/download\"],\n strip_prefix = \"form_urlencoded-1.2.2\",\n build_file = Label(\"@crates//crates:BUILD.form_urlencoded-1.2.2.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__futures-core-0.3.34\",\n sha256 = \"92d699e522242e69e3003b94ecc1f960f3a5e015aa7c5d7486e65ad01dd94f5e\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/futures-core/0.3.34/download\"],\n strip_prefix = \"futures-core-0.3.34\",\n build_file = Label(\"@crates//crates:BUILD.futures-core-0.3.34.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__futures-macro-0.3.34\",\n sha256 = \"9fb9654ba8355388abeb8dcb4fc62f511300867002afc858860463bdd9fe0c44\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/futures-macro/0.3.34/download\"],\n strip_prefix = \"futures-macro-0.3.34\",\n build_file = Label(\"@crates//crates:BUILD.futures-macro-0.3.34.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__futures-task-0.3.34\",\n sha256 = \"cd417de3d1d015fc3bfd2b1ea46dfc7bab72ef86f1cc7cc9c78e728b34a6d1fd\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/futures-task/0.3.34/download\"],\n strip_prefix = \"futures-task-0.3.34\",\n build_file = Label(\"@crates//crates:BUILD.futures-task-0.3.34.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__futures-timer-3.0.4\",\n sha256 = \"af43fadb8a98512d547e37b4e92e0ced13e205c061b87b4623eff01d918d6968\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/futures-timer/3.0.4/download\"],\n strip_prefix = \"futures-timer-3.0.4\",\n build_file = Label(\"@crates//crates:BUILD.futures-timer-3.0.4.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__futures-util-0.3.34\",\n sha256 = \"0d50a92467f8ba5dd6e3ee5d4bd04d73ab2e4e1c44474a0674821dfce14b79bc\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/futures-util/0.3.34/download\"],\n strip_prefix = \"futures-util-0.3.34\",\n build_file = Label(\"@crates//crates:BUILD.futures-util-0.3.34.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__getrandom-0.4.3\",\n sha256 = \"300e883d756b2e4ec94e02791f39b04b522276138852cfc41d9fb7e904106099\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/getrandom/0.4.3/download\"],\n strip_prefix = \"getrandom-0.4.3\",\n build_file = Label(\"@crates//crates:BUILD.getrandom-0.4.3.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__getset-0.1.7\",\n sha256 = \"6cf442baaabe4213ce7d1239afc26c039180b6456da2cededa316ae2c8a77a77\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/getset/0.1.7/download\"],\n strip_prefix = \"getset-0.1.7\",\n build_file = Label(\"@crates//crates:BUILD.getset-0.1.7.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__git2-0.20.4\",\n sha256 = \"7b88256088d75a56f8ecfa070513a775dd9107f6530ef14919dac831af9cfe2b\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/git2/0.20.4/download\"],\n strip_prefix = \"git2-0.20.4\",\n build_file = Label(\"@crates//crates:BUILD.git2-0.20.4.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__glob-0.3.4\",\n sha256 = \"e4eba85ea1d0a966a983acd07deee566e67395d2d96b6fb39e62b5a833f1eb0b\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/glob/0.3.4/download\"],\n strip_prefix = \"glob-0.3.4\",\n build_file = Label(\"@crates//crates:BUILD.glob-0.3.4.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__group-0.14.0\",\n sha256 = \"7fd1a1c7a5206c5b7a3f5a0d7ccd3ff85d0c8f5133d62a02680255b0004af5f4\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/group/0.14.0/download\"],\n strip_prefix = \"group-0.14.0\",\n build_file = Label(\"@crates//crates:BUILD.group-0.14.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__half-2.7.1\",\n sha256 = \"6ea2d84b969582b4b1864a92dc5d27cd2b77b622a8d79306834f1be5ba20d84b\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/half/2.7.1/download\"],\n strip_prefix = \"half-2.7.1\",\n build_file = Label(\"@crates//crates:BUILD.half-2.7.1.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__hashbrown-0.17.1\",\n sha256 = \"ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/hashbrown/0.17.1/download\"],\n strip_prefix = \"hashbrown-0.17.1\",\n build_file = Label(\"@crates//crates:BUILD.hashbrown-0.17.1.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__hermit-abi-0.5.3\",\n sha256 = \"e17592d60ebacc7d5e169f4663c5f84f9161cc90328abcfe8456f41e4dfcb284\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/hermit-abi/0.5.3/download\"],\n strip_prefix = \"hermit-abi-0.5.3\",\n build_file = Label(\"@crates//crates:BUILD.hermit-abi-0.5.3.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__hex-conservative-1.3.0\",\n sha256 = \"271e0d19bcb473b6675739a2b536076b24a082316cb5199ad918edce10c599e8\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/hex-conservative/1.3.0/download\"],\n strip_prefix = \"hex-conservative-1.3.0\",\n build_file = Label(\"@crates//crates:BUILD.hex-conservative-1.3.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__hybrid-array-0.4.15\",\n sha256 = \"27f864f10dfb56725ce5ce5472bc52252c8f93a4ab86327122cebf62c5f59a17\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/hybrid-array/0.4.15/download\"],\n strip_prefix = \"hybrid-array-0.4.15\",\n build_file = Label(\"@crates//crates:BUILD.hybrid-array-0.4.15.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__icu_collections-2.4.0\",\n sha256 = \"fe090a42a0d3140fed8c63263ed1fecc02422cb2f4bfe55cd8de2de1b8e105dd\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/icu_collections/2.4.0/download\"],\n strip_prefix = \"icu_collections-2.4.0\",\n build_file = Label(\"@crates//crates:BUILD.icu_collections-2.4.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__icu_locale_core-2.4.0\",\n sha256 = \"25d29b57c17c6528d0dc4c2141cfa2d08200465acb537a3909c8b9b8a4a984c0\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/icu_locale_core/2.4.0/download\"],\n strip_prefix = \"icu_locale_core-2.4.0\",\n build_file = Label(\"@crates//crates:BUILD.icu_locale_core-2.4.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__icu_normalizer-2.4.0\",\n sha256 = \"404a3b8c486f205c87fe7f23ab6894d84a4ad76d6e4671ae1981ba7def87c599\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/icu_normalizer/2.4.0/download\"],\n strip_prefix = \"icu_normalizer-2.4.0\",\n build_file = Label(\"@crates//crates:BUILD.icu_normalizer-2.4.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__icu_normalizer_data-2.4.0\",\n sha256 = \"20f0088bfb7441f7a37fa0c9e20cb1e9cba1cac6b9ce8cd2a6dc44294f8e8cbc\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/icu_normalizer_data/2.4.0/download\"],\n strip_prefix = \"icu_normalizer_data-2.4.0\",\n build_file = Label(\"@crates//crates:BUILD.icu_normalizer_data-2.4.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__icu_properties-2.4.0\",\n sha256 = \"2ea83d991c56158f7cf898bf86436c1dfe7c07ee82fe88951f2695c9f37a379f\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/icu_properties/2.4.0/download\"],\n strip_prefix = \"icu_properties-2.4.0\",\n build_file = Label(\"@crates//crates:BUILD.icu_properties-2.4.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__icu_properties_data-2.4.0\",\n sha256 = \"b98f29af82d02b163fe50161388350e743bb3107cc8e8c2f7314cb505faddfcf\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/icu_properties_data/2.4.0/download\"],\n strip_prefix = \"icu_properties_data-2.4.0\",\n build_file = Label(\"@crates//crates:BUILD.icu_properties_data-2.4.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__icu_provider-2.4.0\",\n sha256 = \"413099315636c588ee8f011190b329b971a09a8fae9d157e01dcae8379468514\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/icu_provider/2.4.0/download\"],\n strip_prefix = \"icu_provider-2.4.0\",\n build_file = Label(\"@crates//crates:BUILD.icu_provider-2.4.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__idna-1.1.0\",\n sha256 = \"3b0875f23caa03898994f6ddc501886a45c7d3d62d04d2d90788d47be1b1e4de\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/idna/1.1.0/download\"],\n strip_prefix = \"idna-1.1.0\",\n build_file = Label(\"@crates//crates:BUILD.idna-1.1.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__idna_adapter-1.2.2\",\n sha256 = \"cb68373c0d6620ef8105e855e7745e18b0d00d3bdb07fb532e434244cdb9a714\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/idna_adapter/1.2.2/download\"],\n strip_prefix = \"idna_adapter-1.2.2\",\n build_file = Label(\"@crates//crates:BUILD.idna_adapter-1.2.2.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__indexmap-2.14.2\",\n sha256 = \"cc4e190f5d26ca7051642629da2c52fc03bde85a03197c99408dcd291734c855\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/indexmap/2.14.2/download\"],\n strip_prefix = \"indexmap-2.14.2\",\n build_file = Label(\"@crates//crates:BUILD.indexmap-2.14.2.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__inout-0.2.5\",\n sha256 = \"3b5cf4372d022092674a83b8febf5865f7a573cc0c5baec5e49c879b6a20978f\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/inout/0.2.5/download\"],\n strip_prefix = \"inout-0.2.5\",\n build_file = Label(\"@crates//crates:BUILD.inout-0.2.5.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__itertools-0.10.5\",\n sha256 = \"b0fd2260e829bddf4cb6ea802289de2f86d6a7a690192fbe91b3f46e0f2c8473\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/itertools/0.10.5/download\"],\n strip_prefix = \"itertools-0.10.5\",\n build_file = Label(\"@crates//crates:BUILD.itertools-0.10.5.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__itoa-1.0.18\",\n sha256 = \"8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/itoa/1.0.18/download\"],\n strip_prefix = \"itoa-1.0.18\",\n build_file = Label(\"@crates//crates:BUILD.itoa-1.0.18.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__jobserver-0.1.35\",\n sha256 = \"1c00acbd29eabad4a2392fa0e921c874934dbbf4194312ad20f04a0ed67a3cb3\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/jobserver/0.1.35/download\"],\n strip_prefix = \"jobserver-0.1.35\",\n build_file = Label(\"@crates//crates:BUILD.jobserver-0.1.35.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__json5-0.4.1\",\n sha256 = \"96b0db21af676c1ce64250b5f40f3ce2cf27e4e47cb91ed91eb6fe9350b430c1\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/json5/0.4.1/download\"],\n strip_prefix = \"json5-0.4.1\",\n build_file = Label(\"@crates//crates:BUILD.json5-0.4.1.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__libc-0.2.191\",\n sha256 = \"65cd87c9a6d60536580b316ad985726104730a5151c99845f2490428ef91240a\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/libc/0.2.191/download\"],\n strip_prefix = \"libc-0.2.191\",\n build_file = Label(\"@crates//crates:BUILD.libc-0.2.191.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__libgit2-sys-0.18.8-1.9.7\",\n sha256 = \"7f7c568b25d7489bc3fb2988ed69ab111d2944d2f5fec3d5c987fe545ea97b50\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/libgit2-sys/0.18.8+1.9.7/download\"],\n strip_prefix = \"libgit2-sys-0.18.8+1.9.7\",\n build_file = Label(\"@crates//crates:BUILD.libgit2-sys-0.18.8+1.9.7.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__libm-0.2.16\",\n sha256 = \"b6d2cec3eae94f9f509c767b45932f1ada8350c4bdb85af2fcab4a3c14807981\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/libm/0.2.16/download\"],\n strip_prefix = \"libm-0.2.16\",\n build_file = Label(\"@crates//crates:BUILD.libm-0.2.16.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__libz-sys-1.1.31\",\n sha256 = \"ff20308ecabd635a2dc1dd5834a86c462cca20efba1d5d3ddab1f8aea3455cb2\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/libz-sys/1.1.31/download\"],\n strip_prefix = \"libz-sys-1.1.31\",\n build_file = Label(\"@crates//crates:BUILD.libz-sys-1.1.31.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__linux-raw-sys-0.12.1\",\n sha256 = \"32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/linux-raw-sys/0.12.1/download\"],\n strip_prefix = \"linux-raw-sys-0.12.1\",\n build_file = Label(\"@crates//crates:BUILD.linux-raw-sys-0.12.1.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__litemap-0.8.3\",\n sha256 = \"47d9d19d1d6efa0109d2f65ff4c85cddd50bd572e5a00127ab10987290bcefae\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/litemap/0.8.3/download\"],\n strip_prefix = \"litemap-0.8.3\",\n build_file = Label(\"@crates//crates:BUILD.litemap-0.8.3.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__log-0.4.35\",\n sha256 = \"5d15f86d12da44cd8d4ec3c73984537eb7f4cadcb9776a575a0a8a05ca11005c\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/log/0.4.35/download\"],\n strip_prefix = \"log-0.4.35\",\n build_file = Label(\"@crates//crates:BUILD.log-0.4.35.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__memchr-2.8.3\",\n sha256 = \"cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/memchr/2.8.3/download\"],\n strip_prefix = \"memchr-2.8.3\",\n build_file = Label(\"@crates//crates:BUILD.memchr-2.8.3.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__num_cpus-1.17.0\",\n sha256 = \"91df4bbde75afed763b708b7eee1e8e7651e02d97f6d5dd763e89367e957b23b\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/num_cpus/1.17.0/download\"],\n strip_prefix = \"num_cpus-1.17.0\",\n build_file = Label(\"@crates//crates:BUILD.num_cpus-1.17.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__percent-encoding-2.3.2\",\n sha256 = \"9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/percent-encoding/2.3.2/download\"],\n strip_prefix = \"percent-encoding-2.3.2\",\n build_file = Label(\"@crates//crates:BUILD.percent-encoding-2.3.2.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__pest-2.9.5\",\n sha256 = \"a8db75153506001cb36ed924f08cadc862eb3f8c4d0d534139f29074769d7660\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/pest/2.9.5/download\"],\n strip_prefix = \"pest-2.9.5\",\n build_file = Label(\"@crates//crates:BUILD.pest-2.9.5.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__pest_derive-2.9.5\",\n sha256 = \"20aa17e11fb35664b67d5214a0afac57a360d231b6ec53d6eba0700b27d933b4\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/pest_derive/2.9.5/download\"],\n strip_prefix = \"pest_derive-2.9.5\",\n build_file = Label(\"@crates//crates:BUILD.pest_derive-2.9.5.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__pest_generator-2.9.5\",\n sha256 = \"626ec5afccf44ccbfeb2b232316510bb55b4bf34d891afcb0fb07d2b17d7fe9d\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/pest_generator/2.9.5/download\"],\n strip_prefix = \"pest_generator-2.9.5\",\n build_file = Label(\"@crates//crates:BUILD.pest_generator-2.9.5.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__pest_meta-2.9.5\",\n sha256 = \"b3f45b6caa65c1b08186832745159c2529994146340a7bf44168095469720f5d\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/pest_meta/2.9.5/download\"],\n strip_prefix = \"pest_meta-2.9.5\",\n build_file = Label(\"@crates//crates:BUILD.pest_meta-2.9.5.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__pest_stack_guard-1.0.0\",\n sha256 = \"97e6cd2217057fa86b6eaa512917e58089d875b957a31e35e7ab729977e0a5f2\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/pest_stack_guard/1.0.0/download\"],\n strip_prefix = \"pest_stack_guard-1.0.0\",\n build_file = Label(\"@crates//crates:BUILD.pest_stack_guard-1.0.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__petgraph-0.6.5\",\n sha256 = \"b4c5cc86750666a3ed20bdaf5ca2a0344f9c67674cae0515bec2da16fbaa47db\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/petgraph/0.6.5/download\"],\n strip_prefix = \"petgraph-0.6.5\",\n build_file = Label(\"@crates//crates:BUILD.petgraph-0.6.5.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__pin-project-lite-0.2.17\",\n sha256 = \"a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/pin-project-lite/0.2.17/download\"],\n strip_prefix = \"pin-project-lite-0.2.17\",\n build_file = Label(\"@crates//crates:BUILD.pin-project-lite-0.2.17.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__pkg-config-0.3.34\",\n sha256 = \"f6b464fbc74e149a392436b17d523f769e057cb6877f6a5c4618bc6f11800548\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/pkg-config/0.3.34/download\"],\n strip_prefix = \"pkg-config-0.3.34\",\n build_file = Label(\"@crates//crates:BUILD.pkg-config-0.3.34.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__potential_utf-0.1.6\",\n sha256 = \"d83eb9bc6d8e5cf568e7a1101d60ee05e81ed50ea106026f3d18deeb046d7661\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/potential_utf/0.1.6/download\"],\n strip_prefix = \"potential_utf-0.1.6\",\n build_file = Label(\"@crates//crates:BUILD.potential_utf-0.1.6.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__proc-macro-crate-3.5.0\",\n sha256 = \"e67ba7e9b2b56446f1d419b1d807906278ffa1a658a8a5d8a39dcb1f5a78614f\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/proc-macro-crate/3.5.0/download\"],\n strip_prefix = \"proc-macro-crate-3.5.0\",\n build_file = Label(\"@crates//crates:BUILD.proc-macro-crate-3.5.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__proc-macro2-1.0.107\",\n sha256 = \"985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/proc-macro2/1.0.107/download\"],\n strip_prefix = \"proc-macro2-1.0.107\",\n build_file = Label(\"@crates//crates:BUILD.proc-macro2-1.0.107.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__psm-0.1.24\",\n sha256 = \"200b9ff220857e53e184257720a14553b2f4aa02577d2ed9842d45d4b9654810\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/psm/0.1.24/download\"],\n strip_prefix = \"psm-0.1.24\",\n build_file = Label(\"@crates//crates:BUILD.psm-0.1.24.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__quote-1.0.47\",\n sha256 = \"1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/quote/1.0.47/download\"],\n strip_prefix = \"quote-1.0.47\",\n build_file = Label(\"@crates//crates:BUILD.quote-1.0.47.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__r-efi-6.0.0\",\n sha256 = \"f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/r-efi/6.0.0/download\"],\n strip_prefix = \"r-efi-6.0.0\",\n build_file = Label(\"@crates//crates:BUILD.r-efi-6.0.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__rand_core-0.10.1\",\n sha256 = \"63b8176103e19a2643978565ca18b50549f6101881c443590420e4dc998a3c69\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/rand_core/0.10.1/download\"],\n strip_prefix = \"rand_core-0.10.1\",\n build_file = Label(\"@crates//crates:BUILD.rand_core-0.10.1.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__regex-1.13.1\",\n sha256 = \"f020237b6c8eed93db2e2cb53c00c60a8e1bc73da7d073199a1180401450218d\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/regex/1.13.1/download\"],\n strip_prefix = \"regex-1.13.1\",\n build_file = Label(\"@crates//crates:BUILD.regex-1.13.1.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__regex-automata-0.4.18\",\n sha256 = \"ad8553b9b26413251cbf30e620595c7a41b3887f03da04579c0e6b0d6a06b4b2\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/regex-automata/0.4.18/download\"],\n strip_prefix = \"regex-automata-0.4.18\",\n build_file = Label(\"@crates//crates:BUILD.regex-automata-0.4.18.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__regex-lite-0.1.9\",\n sha256 = \"cab834c73d247e67f4fae452806d17d3c7501756d98c8808d7c9c7aa7d18f973\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/regex-lite/0.1.9/download\"],\n strip_prefix = \"regex-lite-0.1.9\",\n build_file = Label(\"@crates//crates:BUILD.regex-lite-0.1.9.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__regex-syntax-0.8.11\",\n sha256 = \"d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/regex-syntax/0.8.11/download\"],\n strip_prefix = \"regex-syntax-0.8.11\",\n build_file = Label(\"@crates//crates:BUILD.regex-syntax-0.8.11.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__relative-path-1.9.3\",\n sha256 = \"ba39f3699c378cd8970968dcbff9c43159ea4cfbd88d43c00b22f2ef10a435d2\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/relative-path/1.9.3/download\"],\n strip_prefix = \"relative-path-1.9.3\",\n build_file = Label(\"@crates//crates:BUILD.relative-path-1.9.3.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__rstest-0.25.0\",\n sha256 = \"6fc39292f8613e913f7df8fa892b8944ceb47c247b78e1b1ae2f09e019be789d\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/rstest/0.25.0/download\"],\n strip_prefix = \"rstest-0.25.0\",\n build_file = Label(\"@crates//crates:BUILD.rstest-0.25.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__rstest_macros-0.25.0\",\n sha256 = \"1f168d99749d307be9de54d23fd226628d99768225ef08f6ffb52e0182a27746\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/rstest_macros/0.25.0/download\"],\n strip_prefix = \"rstest_macros-0.25.0\",\n build_file = Label(\"@crates//crates:BUILD.rstest_macros-0.25.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__rustc_version-0.4.1\",\n sha256 = \"cfcb3a22ef46e85b45de6ee7e79d063319ebb6594faafcf1c225ea92ab6e9b92\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/rustc_version/0.4.1/download\"],\n strip_prefix = \"rustc_version-0.4.1\",\n build_file = Label(\"@crates//crates:BUILD.rustc_version-0.4.1.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__rustix-1.1.6\",\n sha256 = \"e5e76742e5294153d4dde1207dbec5bdd81eef6fabdc0d2118babadabfd858aa\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/rustix/1.1.6/download\"],\n strip_prefix = \"rustix-1.1.6\",\n build_file = Label(\"@crates//crates:BUILD.rustix-1.1.6.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__safe_arch-1.2.0\",\n sha256 = \"42c6efa15875e6ecb39ca61fb0b0c1a40b84fac5a5ffe71eef7d1000c8eb3f5f\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/safe_arch/1.2.0/download\"],\n strip_prefix = \"safe_arch-1.2.0\",\n build_file = Label(\"@crates//crates:BUILD.safe_arch-1.2.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__secp256k1-0.33.1\",\n sha256 = \"d7f404a8dab7a7a5a631e741d8699aa9c8e1d689fc26ccf897c7187565490b69\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/secp256k1/0.33.1/download\"],\n strip_prefix = \"secp256k1-0.33.1\",\n build_file = Label(\"@crates//crates:BUILD.secp256k1-0.33.1.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__secp256k1-sys-0.14.1\",\n sha256 = \"f6b2992d4a3cd244539a7d5d0966aadbe5ca7fb868a5d7e38c29499b9e709bbd\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/secp256k1-sys/0.14.1/download\"],\n strip_prefix = \"secp256k1-sys-0.14.1\",\n build_file = Label(\"@crates//crates:BUILD.secp256k1-sys-0.14.1.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__semver-1.0.28\",\n sha256 = \"8a7852d02fc848982e0c167ef163aaff9cd91dc640ba85e263cb1ce46fae51cd\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/semver/1.0.28/download\"],\n strip_prefix = \"semver-1.0.28\",\n build_file = Label(\"@crates//crates:BUILD.semver-1.0.28.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__serde-1.0.229\",\n sha256 = \"4148590afebada386688f18773da617792bf2ef03ffc1e4cbd2b1d45b023e0ba\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/serde/1.0.229/download\"],\n strip_prefix = \"serde-1.0.229\",\n build_file = Label(\"@crates//crates:BUILD.serde-1.0.229.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__serde_core-1.0.229\",\n sha256 = \"67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/serde_core/1.0.229/download\"],\n strip_prefix = \"serde_core-1.0.229\",\n build_file = Label(\"@crates//crates:BUILD.serde_core-1.0.229.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__serde_derive-1.0.229\",\n sha256 = \"e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/serde_derive/1.0.229/download\"],\n strip_prefix = \"serde_derive-1.0.229\",\n build_file = Label(\"@crates//crates:BUILD.serde_derive-1.0.229.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__serde_json-1.0.154\",\n sha256 = \"e7e9cc8b1b85264074fbcc02a88680c4096b1e47df8f739dceb03bf482f04bd6\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/serde_json/1.0.154/download\"],\n strip_prefix = \"serde_json-1.0.154\",\n build_file = Label(\"@crates//crates:BUILD.serde_json-1.0.154.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__serde_spanned-0.6.9\",\n sha256 = \"bf41e0cfaf7226dca15e8197172c295a782857fcb97fad1808a166870dee75a3\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/serde_spanned/0.6.9/download\"],\n strip_prefix = \"serde_spanned-0.6.9\",\n build_file = Label(\"@crates//crates:BUILD.serde_spanned-0.6.9.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__sha2-0.11.1\",\n sha256 = \"47d7069beb7d6ac7b9acd1039986e73443f24234f41074da099d6f994ac9ad19\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/sha2/0.11.1/download\"],\n strip_prefix = \"sha2-0.11.1\",\n build_file = Label(\"@crates//crates:BUILD.sha2-0.11.1.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__shlex-2.0.1\",\n sha256 = \"f8fadd59c855ef2080decdef8ff161eb6661b86933c9d82e5ba29dc602a55aba\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/shlex/2.0.1/download\"],\n strip_prefix = \"shlex-2.0.1\",\n build_file = Label(\"@crates//crates:BUILD.shlex-2.0.1.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__signature-3.0.0\",\n sha256 = \"28d567dcbaf0049cb8ac2608a76cd95ff9e4412e1899d389ee400918ca7537f5\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/signature/3.0.0/download\"],\n strip_prefix = \"signature-3.0.0\",\n build_file = Label(\"@crates//crates:BUILD.signature-3.0.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__slab-0.4.12\",\n sha256 = \"0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/slab/0.4.12/download\"],\n strip_prefix = \"slab-0.4.12\",\n build_file = Label(\"@crates//crates:BUILD.slab-0.4.12.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__smallvec-1.16.4\",\n sha256 = \"d0d5d4b1981b8bbbb7aed204cae5726d683d5d6ac7e74ec54122ea28f315e7c8\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/smallvec/1.16.4/download\"],\n strip_prefix = \"smallvec-1.16.4\",\n build_file = Label(\"@crates//crates:BUILD.smallvec-1.16.4.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__stable_deref_trait-1.2.1\",\n sha256 = \"6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/stable_deref_trait/1.2.1/download\"],\n strip_prefix = \"stable_deref_trait-1.2.1\",\n build_file = Label(\"@crates//crates:BUILD.stable_deref_trait-1.2.1.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__stacker-0.1.25\",\n sha256 = \"707f49d46706bacf8a2b00d51dace3f9de527c13eec3778f570c411f89e69967\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/stacker/0.1.25/download\"],\n strip_prefix = \"stacker-0.1.25\",\n build_file = Label(\"@crates//crates:BUILD.stacker-0.1.25.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__subtle-2.6.1\",\n sha256 = \"13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/subtle/2.6.1/download\"],\n strip_prefix = \"subtle-2.6.1\",\n build_file = Label(\"@crates//crates:BUILD.subtle-2.6.1.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__syn-2.0.119\",\n sha256 = \"872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/syn/2.0.119/download\"],\n strip_prefix = \"syn-2.0.119\",\n build_file = Label(\"@crates//crates:BUILD.syn-2.0.119.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__syn-3.0.9\",\n sha256 = \"d78c8dee4c7bf0e14673097256fed6142ce9d3b85a408189d07482442145823b\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/syn/3.0.9/download\"],\n strip_prefix = \"syn-3.0.9\",\n build_file = Label(\"@crates//crates:BUILD.syn-3.0.9.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__synstructure-0.14.0\",\n sha256 = \"901704edd0dfe137f1987838ee4f259e4e063c31371bdb423f7ae38ec6f77f02\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/synstructure/0.14.0/download\"],\n strip_prefix = \"synstructure-0.14.0\",\n build_file = Label(\"@crates//crates:BUILD.synstructure-0.14.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__terminal_size-0.4.4\",\n sha256 = \"230a1b821ccbd75b185820a1f1ff7b14d21da1e442e22c0863ea5f08771a8874\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/terminal_size/0.4.4/download\"],\n strip_prefix = \"terminal_size-0.4.4\",\n build_file = Label(\"@crates//crates:BUILD.terminal_size-0.4.4.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__thiserror-2.0.21\",\n sha256 = \"09e52cb86a36cede5cb101bf8908837b3e4c6e5e59fe7fd85c23fb56200d189e\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/thiserror/2.0.21/download\"],\n strip_prefix = \"thiserror-2.0.21\",\n build_file = Label(\"@crates//crates:BUILD.thiserror-2.0.21.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__thiserror-impl-2.0.21\",\n sha256 = \"fe5197923287db20a58125f0bc85c062f7f2c892de97b18c356f9efb14b28524\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/thiserror-impl/2.0.21/download\"],\n strip_prefix = \"thiserror-impl-2.0.21\",\n build_file = Label(\"@crates//crates:BUILD.thiserror-impl-2.0.21.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__threadpool-1.8.1\",\n sha256 = \"d050e60b33d41c19108b32cea32164033a9013fe3b46cbd4457559bfbf77afaa\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/threadpool/1.8.1/download\"],\n strip_prefix = \"threadpool-1.8.1\",\n build_file = Label(\"@crates//crates:BUILD.threadpool-1.8.1.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__tinystr-0.8.5\",\n sha256 = \"abc840c238154d58f9e86b2792261edfde565a17696e1cda1a449de27979801a\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/tinystr/0.8.5/download\"],\n strip_prefix = \"tinystr-0.8.5\",\n build_file = Label(\"@crates//crates:BUILD.tinystr-0.8.5.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__toml-0.8.23\",\n sha256 = \"dc1beb996b9d83529a9e75c17a1686767d148d70663143c7854d8b4a09ced362\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/toml/0.8.23/download\"],\n strip_prefix = \"toml-0.8.23\",\n build_file = Label(\"@crates//crates:BUILD.toml-0.8.23.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__toml_datetime-0.6.11\",\n sha256 = \"22cddaf88f4fbc13c51aebbf5f8eceb5c7c5a9da2ac40a13519eb5b0a0e8f11c\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/toml_datetime/0.6.11/download\"],\n strip_prefix = \"toml_datetime-0.6.11\",\n build_file = Label(\"@crates//crates:BUILD.toml_datetime-0.6.11.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__toml_datetime-1.1.2-spec-1.1.0\",\n sha256 = \"2b86d767906c6c42421dcba507eb9d203e779497710a47782a224bb871653053\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/toml_datetime/1.1.2+spec-1.1.0/download\"],\n strip_prefix = \"toml_datetime-1.1.2+spec-1.1.0\",\n build_file = Label(\"@crates//crates:BUILD.toml_datetime-1.1.2+spec-1.1.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__toml_edit-0.22.27\",\n sha256 = \"41fe8c660ae4257887cf66394862d21dbca4a6ddd26f04a3560410406a2f819a\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/toml_edit/0.22.27/download\"],\n strip_prefix = \"toml_edit-0.22.27\",\n build_file = Label(\"@crates//crates:BUILD.toml_edit-0.22.27.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__toml_edit-0.25.17-spec-1.1.0\",\n sha256 = \"e3641d5bbb5349a79e1020a242d251efbc546ad8048d133958323ce9c40a9c9c\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/toml_edit/0.25.17+spec-1.1.0/download\"],\n strip_prefix = \"toml_edit-0.25.17+spec-1.1.0\",\n build_file = Label(\"@crates//crates:BUILD.toml_edit-0.25.17+spec-1.1.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__toml_parser-1.1.5-spec-1.1.0\",\n sha256 = \"baa693a8032d7e1cada7d0041e96126df243179ff061456783ac7f12bda4744c\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/toml_parser/1.1.5+spec-1.1.0/download\"],\n strip_prefix = \"toml_parser-1.1.5+spec-1.1.0\",\n build_file = Label(\"@crates//crates:BUILD.toml_parser-1.1.5+spec-1.1.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__toml_write-0.1.2\",\n sha256 = \"5d99f8c9a7727884afe522e9bd5edbfc91a3312b36a77b5fb8926e4c31a41801\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/toml_write/0.1.2/download\"],\n strip_prefix = \"toml_write-0.1.2\",\n build_file = Label(\"@crates//crates:BUILD.toml_write-0.1.2.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__typenum-1.20.1\",\n sha256 = \"b6f5e870be6c3b371b77fe0ee0bafb859fa4964b4404c27de1d380043c4dda20\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/typenum/1.20.1/download\"],\n strip_prefix = \"typenum-1.20.1\",\n build_file = Label(\"@crates//crates:BUILD.typenum-1.20.1.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__ucd-trie-0.1.7\",\n sha256 = \"2896d95c02a80c6d6a5d6e953d479f5ddf2dfdb6a244441010e373ac0fb88971\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/ucd-trie/0.1.7/download\"],\n strip_prefix = \"ucd-trie-0.1.7\",\n build_file = Label(\"@crates//crates:BUILD.ucd-trie-0.1.7.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__unicode-ident-1.0.27\",\n sha256 = \"a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/unicode-ident/1.0.27/download\"],\n strip_prefix = \"unicode-ident-1.0.27\",\n build_file = Label(\"@crates//crates:BUILD.unicode-ident-1.0.27.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__url-2.5.8\",\n sha256 = \"ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/url/2.5.8/download\"],\n strip_prefix = \"url-2.5.8\",\n build_file = Label(\"@crates//crates:BUILD.url-2.5.8.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__utf8_iter-1.1.0\",\n sha256 = \"af3bd9d3e571c26fcce9d033b87ea5ab061b8d2ffe9b7a5675d810d68f03edf0\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/utf8_iter/1.1.0/download\"],\n strip_prefix = \"utf8_iter-1.1.0\",\n build_file = Label(\"@crates//crates:BUILD.utf8_iter-1.1.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__utf_types-1.0.0\",\n sha256 = \"3a3b425286980a367278453f3b6d28cdcb134b574e5a35824a6ff5eebad50bb6\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/utf_types/1.0.0/download\"],\n strip_prefix = \"utf_types-1.0.0\",\n build_file = Label(\"@crates//crates:BUILD.utf_types-1.0.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__vcpkg-0.2.15\",\n sha256 = \"accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/vcpkg/0.2.15/download\"],\n strip_prefix = \"vcpkg-0.2.15\",\n build_file = Label(\"@crates//crates:BUILD.vcpkg-0.2.15.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__wide-1.7.1\",\n sha256 = \"d920ac99c3c8edce110cb8d07dbb324d6d026011dce85b1e9355b70f0adacc4f\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/wide/1.7.1/download\"],\n strip_prefix = \"wide-1.7.1\",\n build_file = Label(\"@crates//crates:BUILD.wide-1.7.1.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__windows-link-0.2.1\",\n sha256 = \"f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/windows-link/0.2.1/download\"],\n strip_prefix = \"windows-link-0.2.1\",\n build_file = Label(\"@crates//crates:BUILD.windows-link-0.2.1.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__windows-sys-0.61.2\",\n sha256 = \"ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/windows-sys/0.61.2/download\"],\n strip_prefix = \"windows-sys-0.61.2\",\n build_file = Label(\"@crates//crates:BUILD.windows-sys-0.61.2.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__winnow-0.7.15\",\n sha256 = \"df79d97927682d2fd8adb29682d1140b343be4ac0f08fd68b7765d9c059d3945\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/winnow/0.7.15/download\"],\n strip_prefix = \"winnow-0.7.15\",\n build_file = Label(\"@crates//crates:BUILD.winnow-0.7.15.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__winnow-1.0.4\",\n sha256 = \"23b97319f7b8343df12cc98938e5c3eb436064524c8d2b4e30a1d3a36eecdf81\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/winnow/1.0.4/download\"],\n strip_prefix = \"winnow-1.0.4\",\n build_file = Label(\"@crates//crates:BUILD.winnow-1.0.4.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__writeable-0.6.4\",\n sha256 = \"3ad82d2a33cdc9674dc7465672f271e096168fcdbe0f799d9e6db8c5892679dc\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/writeable/0.6.4/download\"],\n strip_prefix = \"writeable-0.6.4\",\n build_file = Label(\"@crates//crates:BUILD.writeable-0.6.4.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__xxhash-rust-0.8.19\",\n sha256 = \"550a2b930b62486a393c52d5c3b84bff264b28aa437ed64694d31e93b1757af7\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/xxhash-rust/0.8.19/download\"],\n strip_prefix = \"xxhash-rust-0.8.19\",\n build_file = Label(\"@crates//crates:BUILD.xxhash-rust-0.8.19.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__yoke-0.8.4\",\n sha256 = \"417ef3fcf6c300b7dbd25c85531a746931c02ad536f3cf4786ed1e88223340b3\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/yoke/0.8.4/download\"],\n strip_prefix = \"yoke-0.8.4\",\n build_file = Label(\"@crates//crates:BUILD.yoke-0.8.4.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__yoke-derive-0.8.4\",\n sha256 = \"ec8ebde2db3681e8c9980cc27822030e68752690ddfa9473e739aeb4dbde6d71\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/yoke-derive/0.8.4/download\"],\n strip_prefix = \"yoke-derive-0.8.4\",\n build_file = Label(\"@crates//crates:BUILD.yoke-derive-0.8.4.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__zerocopy-0.8.63\",\n sha256 = \"e5fe1f8f1b06191a00962174c61aa5005e0bb391a6d80d07e24d115c01a92ed8\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/zerocopy/0.8.63/download\"],\n strip_prefix = \"zerocopy-0.8.63\",\n build_file = Label(\"@crates//crates:BUILD.zerocopy-0.8.63.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__zerocopy-derive-0.8.63\",\n sha256 = \"863ad3ac83293fb4d740aedbfdc9240dd8d1a50c1099acd76ce80ce7c7230c7f\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/zerocopy-derive/0.8.63/download\"],\n strip_prefix = \"zerocopy-derive-0.8.63\",\n build_file = Label(\"@crates//crates:BUILD.zerocopy-derive-0.8.63.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__zerofrom-0.1.8\",\n sha256 = \"0ec05a11813ea801ff6d75110ad09cd0824ddba17dfe17128ea0d5f68e6c5272\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/zerofrom/0.1.8/download\"],\n strip_prefix = \"zerofrom-0.1.8\",\n build_file = Label(\"@crates//crates:BUILD.zerofrom-0.1.8.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__zerofrom-derive-0.1.8\",\n sha256 = \"f75b4683f6c7f45248d4d64056a24298c6281e0993356d7d1b4a1a962ef10d4a\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/zerofrom-derive/0.1.8/download\"],\n strip_prefix = \"zerofrom-derive-0.1.8\",\n build_file = Label(\"@crates//crates:BUILD.zerofrom-derive-0.1.8.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__zeroize-1.9.1\",\n sha256 = \"e13084392c5e4bc371903e2935a5eaeed24905a7511356b883835e18a78f6879\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/zeroize/1.9.1/download\"],\n strip_prefix = \"zeroize-1.9.1\",\n build_file = Label(\"@crates//crates:BUILD.zeroize-1.9.1.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__zeroize_derive-1.5.0\",\n sha256 = \"3c50655cbb0fe3fc43170059e702f1ce5e19b84cec58dc87b037a09935c2f328\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/zeroize_derive/1.5.0/download\"],\n strip_prefix = \"zeroize_derive-1.5.0\",\n build_file = Label(\"@crates//crates:BUILD.zeroize_derive-1.5.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__zerotrie-0.2.5\",\n sha256 = \"4ea269c3bd32f0a32c321907a2ae912ba6f4649bb0fc764a15627e99a7095a3f\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/zerotrie/0.2.5/download\"],\n strip_prefix = \"zerotrie-0.2.5\",\n build_file = Label(\"@crates//crates:BUILD.zerotrie-0.2.5.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__zerovec-0.11.9\",\n sha256 = \"f58a2799cfe9a1670c7ea8edbd52ef8edb93cb37a7f83bf31ba9e35d9dae6a40\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/zerovec/0.11.9/download\"],\n strip_prefix = \"zerovec-0.11.9\",\n build_file = Label(\"@crates//crates:BUILD.zerovec-0.11.9.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__zerovec-derive-0.11.7\",\n sha256 = \"c3743ddbf47738d929cd1ae2e199d40d0162979dfe31aef8ae646d2bf00bf97a\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/zerovec-derive/0.11.7/download\"],\n strip_prefix = \"zerovec-derive-0.11.7\",\n build_file = Label(\"@crates//crates:BUILD.zerovec-derive-0.11.7.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__zmij-1.0.23\",\n sha256 = \"29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/zmij/1.0.23/download\"],\n strip_prefix = \"zmij-1.0.23\",\n build_file = Label(\"@crates//crates:BUILD.zmij-1.0.23.bazel\"),\n )\n\n return [\n struct(repo = \"crates\", is_dev_dep = False),\n struct(repo=\"crates__aes-0.9.3\", is_dev_dep = False),\n struct(repo=\"crates__ambassador-0.5.1\", is_dev_dep = False),\n struct(repo=\"crates__base58ck-0.5.0\", is_dev_dep = False),\n struct(repo=\"crates__bitcoin-consensus-encoding-1.3.0\", is_dev_dep = False),\n struct(repo=\"crates__bitcoin-internals-0.8.2\", is_dev_dep = False),\n struct(repo=\"crates__bitcoin-primitives-0.104.0\", is_dev_dep = False),\n struct(repo=\"crates__bitcoin-units-0.7.0\", is_dev_dep = False),\n struct(repo=\"crates__bitcoin_hashes-1.2.0\", is_dev_dep = False),\n struct(repo=\"crates__blst-0.3.17\", is_dev_dep = False),\n struct(repo=\"crates__built-0.7.7\", is_dev_dep = False),\n struct(repo=\"crates__cfg-if-1.0.5\", is_dev_dep = False),\n struct(repo=\"crates__ciborium-0.2.2\", is_dev_dep = False),\n struct(repo=\"crates__delegate-0.13.5\", is_dev_dep = False),\n struct(repo=\"crates__digest-0.11.3\", is_dev_dep = False),\n struct(repo=\"crates__ed25519-dalek-3.0.0\", is_dev_dep = False),\n struct(repo=\"crates__ff-0.14.0\", is_dev_dep = False),\n struct(repo=\"crates__getset-0.1.7\", is_dev_dep = False),\n struct(repo=\"crates__group-0.14.0\", is_dev_dep = False),\n struct(repo=\"crates__hex-conservative-1.3.0\", is_dev_dep = False),\n struct(repo=\"crates__json5-0.4.1\", is_dev_dep = False),\n struct(repo=\"crates__libm-0.2.16\", is_dev_dep = False),\n struct(repo=\"crates__proc-macro2-1.0.107\", is_dev_dep = False),\n struct(repo=\"crates__quote-1.0.47\", is_dev_dep = False),\n struct(repo=\"crates__rand_core-0.10.1\", is_dev_dep = False),\n struct(repo=\"crates__secp256k1-0.33.1\", is_dev_dep = False),\n struct(repo=\"crates__serde-1.0.229\", is_dev_dep = False),\n struct(repo=\"crates__serde_json-1.0.154\", is_dev_dep = False),\n struct(repo=\"crates__sha2-0.11.1\", is_dev_dep = False),\n struct(repo=\"crates__subtle-2.6.1\", is_dev_dep = False),\n struct(repo=\"crates__syn-2.0.119\", is_dev_dep = False),\n struct(repo=\"crates__thiserror-2.0.21\", is_dev_dep = False),\n struct(repo=\"crates__wide-1.7.1\", is_dev_dep = False),\n struct(repo=\"crates__xxhash-rust-0.8.19\", is_dev_dep = False),\n struct(repo=\"crates__zeroize-1.9.1\", is_dev_dep = False),\n struct(repo = \"crates__divan-0.1.21\", is_dev_dep = True),\n struct(repo = \"crates__getrandom-0.4.3\", is_dev_dep = True),\n struct(repo = \"crates__rstest-0.25.0\", is_dev_dep = True),\n ]\n", + "crates.bzl": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'dash_base_sdk'\n###############################################################################\n\"\"\"\n# `crates_repository` API\n\n- [aliases](#aliases)\n- [crate_edition](#crate_edition)\n- [crate_deps](#crate_deps)\n- [all_crate_deps](#all_crate_deps)\n- [crate_repositories](#crate_repositories)\n\n\"\"\"\n\nload(\"@bazel_tools//tools/build_defs/repo:git.bzl\", \"git_repository\")\nload(\"@bazel_tools//tools/build_defs/repo:http.bzl\", \"http_archive\")\nload(\"@bazel_tools//tools/build_defs/repo:utils.bzl\", \"maybe\")\nload(\"@bazel_skylib//lib:selects.bzl\", \"selects\")\nload(\"@rules_rust//crate_universe:defs.bzl\", \"crates_vendor_remote_repository\", \"local_crate_mirror\")\n\n###############################################################################\n# MACROS API\n###############################################################################\n\n# An identifier that represent common dependencies (unconditional).\n_COMMON_CONDITION = \"\"\n\ndef _flatten_dependency_maps(all_dependency_maps):\n \"\"\"Flatten a list of dependency maps into one dictionary.\n\n Dependency maps have the following structure:\n\n ```python\n DEPENDENCIES_MAP = {\n # The first key in the map is a Bazel package\n # name of the workspace this file is defined in.\n \"workspace_member_package\": {\n\n # Not all dependencies are supported for all platforms.\n # the condition key is the condition required to be true\n # on the host platform.\n \"condition\": {\n\n # An alias to a crate target. # The label of the crate target the\n # Aliases are only crate names. # package name refers to.\n \"package_name\": \"@full//:label\",\n }\n }\n }\n ```\n\n Args:\n all_dependency_maps (list): A list of dicts as described above\n\n Returns:\n dict: A dictionary as described above\n \"\"\"\n dependencies = {}\n\n for workspace_deps_map in all_dependency_maps:\n for pkg_name, conditional_deps_map in workspace_deps_map.items():\n if pkg_name not in dependencies:\n non_frozen_map = dict()\n for key, values in conditional_deps_map.items():\n non_frozen_map.update({key: dict(values.items())})\n dependencies.setdefault(pkg_name, non_frozen_map)\n continue\n\n for condition, deps_map in conditional_deps_map.items():\n # If the condition has not been recorded, do so and continue\n if condition not in dependencies[pkg_name]:\n dependencies[pkg_name].setdefault(condition, dict(deps_map.items()))\n continue\n\n # Alert on any miss-matched dependencies\n inconsistent_entries = []\n for crate_name, crate_label in deps_map.items():\n existing = dependencies[pkg_name][condition].get(crate_name)\n if existing and existing != crate_label:\n inconsistent_entries.append((crate_name, existing, crate_label))\n dependencies[pkg_name][condition].update({crate_name: crate_label})\n\n return dependencies\n\ndef crate_deps(deps, package_name = None):\n \"\"\"Finds the fully qualified label of the requested crates for the package where this macro is called.\n\n Args:\n deps (list): The desired list of crate targets.\n package_name (str, optional): The package name of the set of dependencies to look up.\n Defaults to `native.package_name()`.\n\n Returns:\n list: A list of labels to generated rust targets (str)\n \"\"\"\n\n if not deps:\n return []\n\n if package_name == None:\n package_name = native.package_name()\n\n # Join both sets of dependencies\n dependencies = _flatten_dependency_maps([\n _NORMAL_DEPENDENCIES,\n _NORMAL_DEV_DEPENDENCIES,\n _PROC_MACRO_DEPENDENCIES,\n _PROC_MACRO_DEV_DEPENDENCIES,\n _BUILD_DEPENDENCIES,\n _BUILD_PROC_MACRO_DEPENDENCIES,\n ]).pop(package_name, {})\n\n # Combine all conditional packages so we can easily index over a flat list\n # TODO: Perhaps this should actually return select statements and maintain\n # the conditionals of the dependencies\n flat_deps = {}\n for deps_set in dependencies.values():\n for crate_name, crate_label in deps_set.items():\n flat_deps.update({crate_name: crate_label})\n\n missing_crates = []\n crate_targets = []\n for crate_target in deps:\n if crate_target not in flat_deps:\n missing_crates.append(crate_target)\n else:\n crate_targets.append(flat_deps[crate_target])\n\n if missing_crates:\n fail(\"Could not find crates `{}` among dependencies of `{}`. Available dependencies were `{}`\".format(\n missing_crates,\n package_name,\n dependencies,\n ))\n\n return crate_targets\n\ndef crate_edition(package_name = None):\n \"\"\"Finds the Rust edition for the package where this macro is called.\n\n Args:\n package_name (str, optional): The package name whose edition should be\n looked up. Defaults to `native.package_name()` when unset.\n\n Returns:\n str: The Rust edition declared by the package's Cargo.toml file.\n \"\"\"\n if package_name == None:\n package_name = native.package_name()\n\n if package_name not in _CRATE_EDITIONS:\n fail(\"Tried to get crate_edition for package \" + package_name + \" but that package had no Cargo.toml file\")\n\n return _CRATE_EDITIONS[package_name]\n\ndef all_crate_deps(\n normal = False, \n normal_dev = False, \n proc_macro = False, \n proc_macro_dev = False,\n build = False,\n build_proc_macro = False,\n package_name = None):\n \"\"\"Finds the fully qualified label of all requested direct crate dependencies \\\n for the package where this macro is called.\n\n If no parameters are set, all normal dependencies are returned. Setting any one flag will\n otherwise impact the contents of the returned list.\n\n Args:\n normal (bool, optional): If True, normal dependencies are included in the\n output list.\n normal_dev (bool, optional): If True, normal dev dependencies will be\n included in the output list.\n proc_macro (bool, optional): If True, proc_macro dependencies are included\n in the output list.\n proc_macro_dev (bool, optional): If True, dev proc_macro dependencies are\n included in the output list.\n build (bool, optional): If True, build dependencies are included\n in the output list.\n build_proc_macro (bool, optional): If True, build proc_macro dependencies are\n included in the output list.\n package_name (str, optional): The package name of the set of dependencies to look up.\n Defaults to `native.package_name()` when unset.\n\n Returns:\n list: A list of labels to generated rust targets (str)\n \"\"\"\n\n if package_name == None:\n package_name = native.package_name()\n\n # Determine the relevant maps to use\n all_dependency_maps = []\n if normal:\n all_dependency_maps.append(_NORMAL_DEPENDENCIES)\n if normal_dev:\n all_dependency_maps.append(_NORMAL_DEV_DEPENDENCIES)\n if proc_macro:\n all_dependency_maps.append(_PROC_MACRO_DEPENDENCIES)\n if proc_macro_dev:\n all_dependency_maps.append(_PROC_MACRO_DEV_DEPENDENCIES)\n if build:\n all_dependency_maps.append(_BUILD_DEPENDENCIES)\n if build_proc_macro:\n all_dependency_maps.append(_BUILD_PROC_MACRO_DEPENDENCIES)\n\n # Default to always using normal dependencies\n if not all_dependency_maps:\n all_dependency_maps.append(_NORMAL_DEPENDENCIES)\n\n dependencies = _flatten_dependency_maps(all_dependency_maps).pop(package_name, None)\n\n if not dependencies:\n if dependencies == None:\n fail(\"Tried to get all_crate_deps for package \" + package_name + \" but that package had no Cargo.toml file\")\n else:\n return []\n\n crate_deps = list(dependencies.pop(_COMMON_CONDITION, {}).values())\n for condition, deps in dependencies.items():\n crate_deps += selects.with_or({\n tuple(_CONDITIONS[condition]): deps.values(),\n \"//conditions:default\": [],\n })\n\n return crate_deps\n\ndef aliases(\n normal = False,\n normal_dev = False,\n proc_macro = False,\n proc_macro_dev = False,\n build = False,\n build_proc_macro = False,\n package_name = None):\n \"\"\"Produces a map of Crate alias names to their original label\n\n If no dependency kinds are specified, `normal` and `proc_macro` are used by default.\n Setting any one flag will otherwise determine the contents of the returned dict.\n\n Args:\n normal (bool, optional): If True, normal dependencies are included in the\n output list.\n normal_dev (bool, optional): If True, normal dev dependencies will be\n included in the output list..\n proc_macro (bool, optional): If True, proc_macro dependencies are included\n in the output list.\n proc_macro_dev (bool, optional): If True, dev proc_macro dependencies are\n included in the output list.\n build (bool, optional): If True, build dependencies are included\n in the output list.\n build_proc_macro (bool, optional): If True, build proc_macro dependencies are\n included in the output list.\n package_name (str, optional): The package name of the set of dependencies to look up.\n Defaults to `native.package_name()` when unset.\n\n Returns:\n dict: The aliases of all associated packages\n \"\"\"\n if package_name == None:\n package_name = native.package_name()\n\n # Determine the relevant maps to use\n all_aliases_maps = []\n if normal:\n all_aliases_maps.append(_NORMAL_ALIASES)\n if normal_dev:\n all_aliases_maps.append(_NORMAL_DEV_ALIASES)\n if proc_macro:\n all_aliases_maps.append(_PROC_MACRO_ALIASES)\n if proc_macro_dev:\n all_aliases_maps.append(_PROC_MACRO_DEV_ALIASES)\n if build:\n all_aliases_maps.append(_BUILD_ALIASES)\n if build_proc_macro:\n all_aliases_maps.append(_BUILD_PROC_MACRO_ALIASES)\n\n # Default to always using normal aliases\n if not all_aliases_maps:\n all_aliases_maps.append(_NORMAL_ALIASES)\n all_aliases_maps.append(_PROC_MACRO_ALIASES)\n\n aliases = _flatten_dependency_maps(all_aliases_maps).pop(package_name, None)\n\n if not aliases:\n return dict()\n\n common_items = aliases.pop(_COMMON_CONDITION, {}).items()\n\n # If there are only common items in the dictionary, immediately return them\n if not len(aliases.keys()) == 1:\n return dict(common_items)\n\n # Build a single select statement where each conditional has accounted for the\n # common set of aliases.\n crate_aliases = {\"//conditions:default\": dict(common_items)}\n for condition, deps in aliases.items():\n condition_triples = _CONDITIONS[condition]\n for triple in condition_triples:\n if triple in crate_aliases:\n crate_aliases[triple].update(deps)\n else:\n crate_aliases.update({triple: dict(deps.items() + common_items)})\n\n return select(crate_aliases)\n\n###############################################################################\n# WORKSPACE MEMBER DEPS, ALIASES, AND EDITIONS\n###############################################################################\n\n_CRATE_EDITIONS = {\n \"meta/dev\": \"2021\",\n \"meta/bazel\": \"2021\",\n \"pkgs/num\": \"2021\",\n \"pkgs/p2p_core\": \"2021\",\n \"pkgs/params\": \"2021\",\n \"pkgs/pkc\": \"2021\",\n \"pkgs/pow\": \"2021\",\n \"pkgs/primitives\": \"2021\",\n \"pkgs/script\": \"2021\",\n \"pkgs/types\": \"2021\",\n \"pkgs/types/marker\": \"2021\",\n}\n\n_NORMAL_DEPENDENCIES = {\n \"meta/dev\": {\n _COMMON_CONDITION: {\n \"bitcoin-consensus-encoding\": Label(\"@crates//bitcoin-consensus-encoding-1.3.0\"),\n \"cfg-if\": Label(\"@crates//cfg-if-1.0.5\"),\n \"ciborium\": Label(\"@crates//ciborium-0.2.2\"),\n \"hex-conservative\": Label(\"@crates//hex-conservative-1.3.0\"),\n \"json5\": Label(\"@crates//json5-0.4.1\"),\n \"serde\": Label(\"@crates//serde-1.0.229\"),\n \"serde_json\": Label(\"@crates//serde_json-1.0.154\"),\n },\n },\n \"meta/bazel\": {\n },\n \"pkgs/num\": {\n _COMMON_CONDITION: {\n \"bitcoin-consensus-encoding\": Label(\"@crates//bitcoin-consensus-encoding-1.3.0\"),\n \"bitcoin-internals\": Label(\"@crates//bitcoin-internals-0.8.2\"),\n \"hex-conservative\": Label(\"@crates//hex-conservative-1.3.0\"),\n \"serde\": Label(\"@crates//serde-1.0.229\"),\n },\n },\n \"pkgs/p2p_core\": {\n _COMMON_CONDITION: {\n \"bitcoin-consensus-encoding\": Label(\"@crates//bitcoin-consensus-encoding-1.3.0\"),\n \"bitcoin-units\": Label(\"@crates//bitcoin-units-0.7.0\"),\n \"cfg-if\": Label(\"@crates//cfg-if-1.0.5\"),\n \"serde\": Label(\"@crates//serde-1.0.229\"),\n \"thiserror\": Label(\"@crates//thiserror-2.0.21\"),\n },\n },\n \"pkgs/params\": {\n _COMMON_CONDITION: {\n \"bitcoin-units\": Label(\"@crates//bitcoin-units-0.7.0\"),\n \"bitcoin_hashes\": Label(\"@crates//bitcoin_hashes-1.2.0\"),\n \"hex-conservative\": Label(\"@crates//hex-conservative-1.3.0\"),\n },\n },\n \"pkgs/pkc\": {\n _COMMON_CONDITION: {\n \"aes\": Label(\"@crates//aes-0.9.3\"),\n \"base58ck\": Label(\"@crates//base58ck-0.5.0\"),\n \"bitcoin_hashes\": Label(\"@crates//bitcoin_hashes-1.2.0\"),\n \"blst\": Label(\"@crates//blst-0.3.17\"),\n \"cfg-if\": Label(\"@crates//cfg-if-1.0.5\"),\n \"ed25519-dalek\": Label(\"@crates//ed25519-dalek-3.0.0\"),\n \"ff\": Label(\"@crates//ff-0.14.0\"),\n \"group\": Label(\"@crates//group-0.14.0\"),\n \"hex-conservative\": Label(\"@crates//hex-conservative-1.3.0\"),\n \"rand_core\": Label(\"@crates//rand_core-0.10.1\"),\n \"secp256k1\": Label(\"@crates//secp256k1-0.33.1\"),\n \"serde\": Label(\"@crates//serde-1.0.229\"),\n \"sha2\": Label(\"@crates//sha2-0.11.1\"),\n \"subtle\": Label(\"@crates//subtle-2.6.1\"),\n \"thiserror\": Label(\"@crates//thiserror-2.0.21\"),\n \"zeroize\": Label(\"@crates//zeroize-1.9.1\"),\n },\n },\n \"pkgs/pow\": {\n _COMMON_CONDITION: {\n \"digest\": Label(\"@crates//digest-0.11.3\"),\n \"wide\": Label(\"@crates//wide-1.7.1\"),\n },\n },\n \"pkgs/primitives\": {\n _COMMON_CONDITION: {\n \"bitcoin-consensus-encoding\": Label(\"@crates//bitcoin-consensus-encoding-1.3.0\"),\n \"bitcoin-primitives\": Label(\"@crates//bitcoin-primitives-0.104.0\"),\n \"bitcoin-units\": Label(\"@crates//bitcoin-units-0.7.0\"),\n \"bitcoin_hashes\": Label(\"@crates//bitcoin_hashes-1.2.0\"),\n \"cfg-if\": Label(\"@crates//cfg-if-1.0.5\"),\n \"hex-conservative\": Label(\"@crates//hex-conservative-1.3.0\"),\n \"libm\": Label(\"@crates//libm-0.2.16\"),\n \"serde\": Label(\"@crates//serde-1.0.229\"),\n \"thiserror\": Label(\"@crates//thiserror-2.0.21\"),\n },\n },\n \"pkgs/script\": {\n _COMMON_CONDITION: {\n \"base58ck\": Label(\"@crates//base58ck-0.5.0\"),\n \"bitcoin-consensus-encoding\": Label(\"@crates//bitcoin-consensus-encoding-1.3.0\"),\n \"serde\": Label(\"@crates//serde-1.0.229\"),\n },\n },\n \"pkgs/types\": {\n _COMMON_CONDITION: {\n \"base58ck\": Label(\"@crates//base58ck-0.5.0\"),\n \"bitcoin-consensus-encoding\": Label(\"@crates//bitcoin-consensus-encoding-1.3.0\"),\n \"bitcoin-primitives\": Label(\"@crates//bitcoin-primitives-0.104.0\"),\n \"bitcoin_hashes\": Label(\"@crates//bitcoin_hashes-1.2.0\"),\n \"cfg-if\": Label(\"@crates//cfg-if-1.0.5\"),\n \"hex-conservative\": Label(\"@crates//hex-conservative-1.3.0\"),\n \"serde\": Label(\"@crates//serde-1.0.229\"),\n \"subtle\": Label(\"@crates//subtle-2.6.1\"),\n \"thiserror\": Label(\"@crates//thiserror-2.0.21\"),\n \"zeroize\": Label(\"@crates//zeroize-1.9.1\"),\n },\n },\n \"pkgs/types/marker\": {\n _COMMON_CONDITION: {\n \"quote\": Label(\"@crates//quote-1.0.47\"),\n \"syn\": Label(\"@crates//syn-2.0.119\"),\n \"xxhash-rust\": Label(\"@crates//xxhash-rust-0.8.19\"),\n },\n },\n}\n\n\n_NORMAL_ALIASES = {\n \"meta/dev\": {\n _COMMON_CONDITION: {\n },\n },\n \"meta/bazel\": {\n },\n \"pkgs/num\": {\n _COMMON_CONDITION: {\n },\n },\n \"pkgs/p2p_core\": {\n _COMMON_CONDITION: {\n },\n },\n \"pkgs/params\": {\n _COMMON_CONDITION: {\n },\n },\n \"pkgs/pkc\": {\n _COMMON_CONDITION: {\n },\n },\n \"pkgs/pow\": {\n _COMMON_CONDITION: {\n },\n },\n \"pkgs/primitives\": {\n _COMMON_CONDITION: {\n },\n },\n \"pkgs/script\": {\n _COMMON_CONDITION: {\n },\n },\n \"pkgs/types\": {\n _COMMON_CONDITION: {\n },\n },\n \"pkgs/types/marker\": {\n _COMMON_CONDITION: {\n },\n },\n}\n\n\n_NORMAL_DEV_DEPENDENCIES = {\n \"meta/dev\": {\n },\n \"meta/bazel\": {\n },\n \"pkgs/num\": {\n _COMMON_CONDITION: {\n \"divan\": Label(\"@crates//divan-0.1.21\"),\n \"rstest\": Label(\"@crates//rstest-0.25.0\"),\n },\n },\n \"pkgs/p2p_core\": {\n _COMMON_CONDITION: {\n \"hex-conservative\": Label(\"@crates//hex-conservative-1.3.0\"),\n \"rstest\": Label(\"@crates//rstest-0.25.0\"),\n },\n },\n \"pkgs/params\": {\n _COMMON_CONDITION: {\n \"rstest\": Label(\"@crates//rstest-0.25.0\"),\n \"serde\": Label(\"@crates//serde-1.0.229\"),\n },\n },\n \"pkgs/pkc\": {\n _COMMON_CONDITION: {\n \"bitcoin-consensus-encoding\": Label(\"@crates//bitcoin-consensus-encoding-1.3.0\"),\n \"divan\": Label(\"@crates//divan-0.1.21\"),\n \"getrandom\": Label(\"@crates//getrandom-0.4.3\"),\n \"rstest\": Label(\"@crates//rstest-0.25.0\"),\n },\n },\n \"pkgs/pow\": {\n _COMMON_CONDITION: {\n \"divan\": Label(\"@crates//divan-0.1.21\"),\n \"hex-conservative\": Label(\"@crates//hex-conservative-1.3.0\"),\n \"rstest\": Label(\"@crates//rstest-0.25.0\"),\n },\n },\n \"pkgs/primitives\": {\n _COMMON_CONDITION: {\n \"rstest\": Label(\"@crates//rstest-0.25.0\"),\n },\n },\n \"pkgs/script\": {\n _COMMON_CONDITION: {\n \"hex-conservative\": Label(\"@crates//hex-conservative-1.3.0\"),\n \"rstest\": Label(\"@crates//rstest-0.25.0\"),\n },\n },\n \"pkgs/types\": {\n _COMMON_CONDITION: {\n \"ciborium\": Label(\"@crates//ciborium-0.2.2\"),\n \"rstest\": Label(\"@crates//rstest-0.25.0\"),\n },\n },\n \"pkgs/types/marker\": {\n },\n}\n\n\n_NORMAL_DEV_ALIASES = {\n \"meta/dev\": {\n },\n \"meta/bazel\": {\n },\n \"pkgs/num\": {\n _COMMON_CONDITION: {\n },\n },\n \"pkgs/p2p_core\": {\n _COMMON_CONDITION: {\n },\n },\n \"pkgs/params\": {\n _COMMON_CONDITION: {\n },\n },\n \"pkgs/pkc\": {\n _COMMON_CONDITION: {\n },\n },\n \"pkgs/pow\": {\n _COMMON_CONDITION: {\n },\n },\n \"pkgs/primitives\": {\n _COMMON_CONDITION: {\n },\n },\n \"pkgs/script\": {\n _COMMON_CONDITION: {\n },\n },\n \"pkgs/types\": {\n _COMMON_CONDITION: {\n },\n },\n \"pkgs/types/marker\": {\n },\n}\n\n\n_PROC_MACRO_DEPENDENCIES = {\n \"meta/dev\": {\n },\n \"meta/bazel\": {\n },\n \"pkgs/num\": {\n _COMMON_CONDITION: {\n \"ambassador\": Label(\"@crates//ambassador-0.5.1\"),\n \"delegate\": Label(\"@crates//delegate-0.13.5\"),\n },\n },\n \"pkgs/p2p_core\": {\n _COMMON_CONDITION: {\n \"getset\": Label(\"@crates//getset-0.1.7\"),\n },\n },\n \"pkgs/params\": {\n },\n \"pkgs/pkc\": {\n },\n \"pkgs/pow\": {\n },\n \"pkgs/primitives\": {\n _COMMON_CONDITION: {\n \"getset\": Label(\"@crates//getset-0.1.7\"),\n },\n },\n \"pkgs/script\": {\n },\n \"pkgs/types\": {\n },\n \"pkgs/types/marker\": {\n },\n}\n\n\n_PROC_MACRO_ALIASES = {\n \"meta/dev\": {\n },\n \"meta/bazel\": {\n },\n \"pkgs/num\": {\n },\n \"pkgs/p2p_core\": {\n },\n \"pkgs/params\": {\n },\n \"pkgs/pkc\": {\n },\n \"pkgs/pow\": {\n },\n \"pkgs/primitives\": {\n },\n \"pkgs/script\": {\n },\n \"pkgs/types\": {\n },\n \"pkgs/types/marker\": {\n },\n}\n\n\n_PROC_MACRO_DEV_DEPENDENCIES = {\n \"meta/dev\": {\n },\n \"meta/bazel\": {\n },\n \"pkgs/num\": {\n },\n \"pkgs/p2p_core\": {\n },\n \"pkgs/params\": {\n },\n \"pkgs/pkc\": {\n },\n \"pkgs/pow\": {\n },\n \"pkgs/primitives\": {\n },\n \"pkgs/script\": {\n },\n \"pkgs/types\": {\n },\n \"pkgs/types/marker\": {\n },\n}\n\n\n_PROC_MACRO_DEV_ALIASES = {\n \"meta/dev\": {\n },\n \"meta/bazel\": {\n },\n \"pkgs/num\": {\n _COMMON_CONDITION: {\n },\n },\n \"pkgs/p2p_core\": {\n _COMMON_CONDITION: {\n },\n },\n \"pkgs/params\": {\n _COMMON_CONDITION: {\n },\n },\n \"pkgs/pkc\": {\n _COMMON_CONDITION: {\n },\n },\n \"pkgs/pow\": {\n _COMMON_CONDITION: {\n },\n },\n \"pkgs/primitives\": {\n _COMMON_CONDITION: {\n },\n },\n \"pkgs/script\": {\n _COMMON_CONDITION: {\n },\n },\n \"pkgs/types\": {\n _COMMON_CONDITION: {\n },\n },\n \"pkgs/types/marker\": {\n },\n}\n\n\n_BUILD_DEPENDENCIES = {\n \"meta/dev\": {\n _COMMON_CONDITION: {\n \"built\": Label(\"@crates//built-0.7.7\"),\n \"proc-macro2\": Label(\"@crates//proc-macro2-1.0.107\"),\n \"syn\": Label(\"@crates//syn-2.0.119\"),\n \"xxhash-rust\": Label(\"@crates//xxhash-rust-0.8.19\"),\n },\n },\n \"meta/bazel\": {\n },\n \"pkgs/num\": {\n },\n \"pkgs/p2p_core\": {\n },\n \"pkgs/params\": {\n },\n \"pkgs/pkc\": {\n },\n \"pkgs/pow\": {\n },\n \"pkgs/primitives\": {\n },\n \"pkgs/script\": {\n },\n \"pkgs/types\": {\n },\n \"pkgs/types/marker\": {\n },\n}\n\n\n_BUILD_ALIASES = {\n \"meta/dev\": {\n _COMMON_CONDITION: {\n },\n },\n \"meta/bazel\": {\n },\n \"pkgs/num\": {\n },\n \"pkgs/p2p_core\": {\n },\n \"pkgs/params\": {\n },\n \"pkgs/pkc\": {\n },\n \"pkgs/pow\": {\n },\n \"pkgs/primitives\": {\n },\n \"pkgs/script\": {\n },\n \"pkgs/types\": {\n },\n \"pkgs/types/marker\": {\n },\n}\n\n\n_BUILD_PROC_MACRO_DEPENDENCIES = {\n \"meta/dev\": {\n },\n \"meta/bazel\": {\n },\n \"pkgs/num\": {\n },\n \"pkgs/p2p_core\": {\n },\n \"pkgs/params\": {\n },\n \"pkgs/pkc\": {\n },\n \"pkgs/pow\": {\n },\n \"pkgs/primitives\": {\n },\n \"pkgs/script\": {\n },\n \"pkgs/types\": {\n },\n \"pkgs/types/marker\": {\n },\n}\n\n\n_BUILD_PROC_MACRO_ALIASES = {\n \"meta/dev\": {\n },\n \"meta/bazel\": {\n },\n \"pkgs/num\": {\n },\n \"pkgs/p2p_core\": {\n },\n \"pkgs/params\": {\n },\n \"pkgs/pkc\": {\n },\n \"pkgs/pow\": {\n },\n \"pkgs/primitives\": {\n },\n \"pkgs/script\": {\n },\n \"pkgs/types\": {\n },\n \"pkgs/types/marker\": {\n },\n}\n\n\n_CONDITIONS = {\n \"aarch64-apple-darwin\": [\"@rules_rust//rust/platform:aarch64-apple-darwin\"],\n \"aarch64-pc-windows-msvc\": [],\n \"aarch64-unknown-linux-gnu\": [\"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\"],\n \"arm64ec-pc-windows-msvc\": [],\n \"cfg(all(any(target_os = \\\"linux\\\", target_os = \\\"android\\\"), any(rustix_use_libc, miri, not(all(target_os = \\\"linux\\\", any(target_endian = \\\"little\\\", any(target_arch = \\\"s390x\\\", target_arch = \\\"powerpc\\\")), any(target_arch = \\\"arm\\\", all(target_arch = \\\"aarch64\\\", target_pointer_width = \\\"64\\\"), target_arch = \\\"riscv64\\\", all(rustix_use_experimental_asm, target_arch = \\\"powerpc\\\"), all(rustix_use_experimental_asm, target_arch = \\\"powerpc64\\\"), all(rustix_use_experimental_asm, target_arch = \\\"s390x\\\"), all(rustix_use_experimental_asm, target_arch = \\\"mips\\\"), all(rustix_use_experimental_asm, target_arch = \\\"mips32r6\\\"), all(rustix_use_experimental_asm, target_arch = \\\"mips64\\\"), all(rustix_use_experimental_asm, target_arch = \\\"mips64r6\\\"), target_arch = \\\"x86\\\", all(target_arch = \\\"x86_64\\\", target_pointer_width = \\\"64\\\")))))))\": [],\n \"cfg(all(any(target_os = \\\"linux\\\", target_os = \\\"android\\\"), not(any(all(target_os = \\\"linux\\\", target_env = \\\"\\\"), getrandom_backend = \\\"custom\\\", getrandom_backend = \\\"linux_raw\\\", getrandom_backend = \\\"rdrand\\\", getrandom_backend = \\\"rndr\\\"))))\": [\"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\",\"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\"],\n \"cfg(all(not(curve25519_dalek_backend = \\\"fiat\\\"), not(curve25519_dalek_backend = \\\"serial\\\"), target_arch = \\\"x86_64\\\"))\": [\"@rules_rust//rust/platform:x86_64-apple-darwin\",\"@rules_rust//rust/platform:x86_64-pc-windows-msvc\",\"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\"],\n \"cfg(all(not(rustix_use_libc), not(miri), target_os = \\\"linux\\\", any(target_endian = \\\"little\\\", any(target_arch = \\\"s390x\\\", target_arch = \\\"powerpc\\\")), any(target_arch = \\\"arm\\\", all(target_arch = \\\"aarch64\\\", target_pointer_width = \\\"64\\\"), target_arch = \\\"riscv64\\\", all(rustix_use_experimental_asm, target_arch = \\\"powerpc\\\"), all(rustix_use_experimental_asm, target_arch = \\\"powerpc64\\\"), all(rustix_use_experimental_asm, target_arch = \\\"s390x\\\"), all(rustix_use_experimental_asm, target_arch = \\\"mips\\\"), all(rustix_use_experimental_asm, target_arch = \\\"mips32r6\\\"), all(rustix_use_experimental_asm, target_arch = \\\"mips64\\\"), all(rustix_use_experimental_asm, target_arch = \\\"mips64r6\\\"), target_arch = \\\"x86\\\", all(target_arch = \\\"x86_64\\\", target_pointer_width = \\\"64\\\"))))\": [\"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\",\"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\"],\n \"cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = \\\"linux\\\", any(target_endian = \\\"little\\\", any(target_arch = \\\"s390x\\\", target_arch = \\\"powerpc\\\")), any(target_arch = \\\"arm\\\", all(target_arch = \\\"aarch64\\\", target_pointer_width = \\\"64\\\"), target_arch = \\\"riscv64\\\", all(rustix_use_experimental_asm, target_arch = \\\"powerpc\\\"), all(rustix_use_experimental_asm, target_arch = \\\"powerpc64\\\"), all(rustix_use_experimental_asm, target_arch = \\\"s390x\\\"), all(rustix_use_experimental_asm, target_arch = \\\"mips\\\"), all(rustix_use_experimental_asm, target_arch = \\\"mips32r6\\\"), all(rustix_use_experimental_asm, target_arch = \\\"mips64\\\"), all(rustix_use_experimental_asm, target_arch = \\\"mips64r6\\\"), target_arch = \\\"x86\\\", all(target_arch = \\\"x86_64\\\", target_pointer_width = \\\"64\\\")))))))\": [\"@rules_rust//rust/platform:aarch64-apple-darwin\",\"@rules_rust//rust/platform:x86_64-apple-darwin\"],\n \"cfg(all(target_arch = \\\"aarch64\\\", target_os = \\\"android\\\"))\": [],\n \"cfg(all(target_arch = \\\"aarch64\\\", target_os = \\\"linux\\\"))\": [\"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\"],\n \"cfg(all(target_arch = \\\"aarch64\\\", target_vendor = \\\"apple\\\"))\": [\"@rules_rust//rust/platform:aarch64-apple-darwin\"],\n \"cfg(all(target_arch = \\\"loongarch64\\\", target_os = \\\"linux\\\"))\": [],\n \"cfg(all(target_os = \\\"uefi\\\", getrandom_backend = \\\"efi_rng\\\"))\": [],\n \"cfg(all(windows, not(target_arch = \\\"arm64ec\\\")))\": [\"@rules_rust//rust/platform:x86_64-pc-windows-msvc\"],\n \"cfg(any())\": [],\n \"cfg(any(target_arch = \\\"aarch64\\\", target_arch = \\\"x86_64\\\", target_arch = \\\"x86\\\"))\": [\"@rules_rust//rust/platform:aarch64-apple-darwin\",\"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\",\"@rules_rust//rust/platform:x86_64-apple-darwin\",\"@rules_rust//rust/platform:x86_64-pc-windows-msvc\",\"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\"],\n \"cfg(any(target_os = \\\"dragonfly\\\", target_os = \\\"freebsd\\\", target_os = \\\"hurd\\\", target_os = \\\"illumos\\\", target_os = \\\"cygwin\\\", all(target_os = \\\"horizon\\\", target_arch = \\\"arm\\\")))\": [],\n \"cfg(any(target_os = \\\"haiku\\\", target_os = \\\"redox\\\", target_os = \\\"nto\\\", target_os = \\\"aix\\\"))\": [],\n \"cfg(any(target_os = \\\"ios\\\", target_os = \\\"visionos\\\", target_os = \\\"watchos\\\", target_os = \\\"tvos\\\"))\": [],\n \"cfg(any(target_os = \\\"macos\\\", target_os = \\\"openbsd\\\", target_os = \\\"vita\\\", target_os = \\\"emscripten\\\"))\": [\"@rules_rust//rust/platform:aarch64-apple-darwin\",\"@rules_rust//rust/platform:x86_64-apple-darwin\"],\n \"cfg(curve25519_dalek_backend = \\\"fiat\\\")\": [],\n \"cfg(not(any(target_arch = \\\"wasm32\\\", target_os = \\\"none\\\", target_os = \\\"unknown\\\", target_os = \\\"uefi\\\")))\": [\"@rules_rust//rust/platform:aarch64-apple-darwin\",\"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\",\"@rules_rust//rust/platform:x86_64-apple-darwin\",\"@rules_rust//rust/platform:x86_64-pc-windows-msvc\",\"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\"],\n \"cfg(not(windows))\": [\"@rules_rust//rust/platform:aarch64-apple-darwin\",\"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\",\"@rules_rust//rust/platform:x86_64-apple-darwin\",\"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\"],\n \"cfg(target_arch = \\\"spirv\\\")\": [],\n \"cfg(target_arch = \\\"x86\\\")\": [],\n \"cfg(target_arch = \\\"x86_64\\\")\": [\"@rules_rust//rust/platform:x86_64-apple-darwin\",\"@rules_rust//rust/platform:x86_64-pc-windows-msvc\",\"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\"],\n \"cfg(target_env = \\\"msvc\\\")\": [\"@rules_rust//rust/platform:x86_64-pc-windows-msvc\"],\n \"cfg(target_os = \\\"hermit\\\")\": [],\n \"cfg(target_os = \\\"netbsd\\\")\": [],\n \"cfg(target_os = \\\"solaris\\\")\": [],\n \"cfg(target_os = \\\"vxworks\\\")\": [],\n \"cfg(target_os = \\\"wasi\\\")\": [],\n \"cfg(unix)\": [\"@rules_rust//rust/platform:aarch64-apple-darwin\",\"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\",\"@rules_rust//rust/platform:x86_64-apple-darwin\",\"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\"],\n \"cfg(windows)\": [\"@rules_rust//rust/platform:x86_64-pc-windows-msvc\"],\n \"x86_64-apple-darwin\": [\"@rules_rust//rust/platform:x86_64-apple-darwin\"],\n \"x86_64-pc-windows-msvc\": [\"@rules_rust//rust/platform:x86_64-pc-windows-msvc\"],\n \"x86_64-unknown-linux-gnu\": [\"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\"],\n}\n\n###############################################################################\n\ndef crate_repositories():\n \"\"\"A macro for defining repositories for all generated crates.\n\n Returns:\n A list of repos visible to the module through the module extension.\n \"\"\"\n maybe(\n crates_vendor_remote_repository,\n name = \"crates\",\n # Lean interface: just point at `crates.bzl`; the repo rule\n # derives the sibling `BUILD.bazel` and `defs.bzl`.\n crates_module = Label(\"@crates//crates:crates.bzl\"),\n )\n maybe(\n http_archive,\n name = \"crates__aes-0.9.3\",\n sha256 = \"35f0f96ce78e38c3dc6d8948aa8163d06385be74000f3c7a95bf1eef35d3ea32\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/aes/0.9.3/download\"],\n strip_prefix = \"aes-0.9.3\",\n build_file = Label(\"@crates//crates:BUILD.aes-0.9.3.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__aho-corasick-1.1.5\",\n sha256 = \"c982642fa9e8606056828ee9a8505737230110bb1099153c79efe865c59d12ba\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/aho-corasick/1.1.5/download\"],\n strip_prefix = \"aho-corasick-1.1.5\",\n build_file = Label(\"@crates//crates:BUILD.aho-corasick-1.1.5.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__ambassador-0.5.1\",\n sha256 = \"cd3d4da7fddbc6567cbd7b5c30364f91313701b1857ab5b925eb3acf06162eed\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/ambassador/0.5.1/download\"],\n strip_prefix = \"ambassador-0.5.1\",\n build_file = Label(\"@crates//crates:BUILD.ambassador-0.5.1.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__anstyle-1.0.14\",\n sha256 = \"940b3a0ca603d1eade50a4846a2afffd5ef57a9feac2c0e2ec2e14f9ead76000\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/anstyle/1.0.14/download\"],\n strip_prefix = \"anstyle-1.0.14\",\n build_file = Label(\"@crates//crates:BUILD.anstyle-1.0.14.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__arrayvec-0.7.8\",\n sha256 = \"d3fb67a6e08acf24fdeccbac2cb6ac4305825bd1f117462e0e6f2f193345ad56\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/arrayvec/0.7.8/download\"],\n strip_prefix = \"arrayvec-0.7.8\",\n build_file = Label(\"@crates//crates:BUILD.arrayvec-0.7.8.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__base58ck-0.5.0\",\n sha256 = \"df540278d807651653f9b6f21e18903d790d7769eadfbc0dc4df0a141260318f\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/base58ck/0.5.0/download\"],\n strip_prefix = \"base58ck-0.5.0\",\n build_file = Label(\"@crates//crates:BUILD.base58ck-0.5.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__bitcoin-consensus-encoding-1.3.0\",\n sha256 = \"9daa31138eb443d5751b207f3f64154e2bb09cd59960562ccc7a7112be38147f\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/bitcoin-consensus-encoding/1.3.0/download\"],\n strip_prefix = \"bitcoin-consensus-encoding-1.3.0\",\n build_file = Label(\"@crates//crates:BUILD.bitcoin-consensus-encoding-1.3.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__bitcoin-internals-0.6.0\",\n sha256 = \"d573f4cf32996a8dce612e4348cece65a241f1882ed594047c9ba348e8869fa5\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/bitcoin-internals/0.6.0/download\"],\n strip_prefix = \"bitcoin-internals-0.6.0\",\n build_file = Label(\"@crates//crates:BUILD.bitcoin-internals-0.6.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__bitcoin-internals-0.7.0\",\n sha256 = \"e8bea3a9f0cfece4564e37cb49a38cc245ca5184719e50d7d0dda3268722c4e2\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/bitcoin-internals/0.7.0/download\"],\n strip_prefix = \"bitcoin-internals-0.7.0\",\n build_file = Label(\"@crates//crates:BUILD.bitcoin-internals-0.7.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__bitcoin-internals-0.8.2\",\n sha256 = \"e3491249864b8cc929bf63e726045702ff1c1a39c990aef2d41bff0b42fee661\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/bitcoin-internals/0.8.2/download\"],\n strip_prefix = \"bitcoin-internals-0.8.2\",\n build_file = Label(\"@crates//crates:BUILD.bitcoin-internals-0.8.2.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__bitcoin-primitives-0.104.0\",\n sha256 = \"7837d569088c0dc0ce0ec5e0288e92011723c8e192f8c2d3ff09840974fa2cbe\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/bitcoin-primitives/0.104.0/download\"],\n strip_prefix = \"bitcoin-primitives-0.104.0\",\n build_file = Label(\"@crates//crates:BUILD.bitcoin-primitives-0.104.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__bitcoin-units-0.7.0\",\n sha256 = \"1e95f325c563b308c78fe6de36f46b359c1d326271082f0c0140fa4e1a854d26\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/bitcoin-units/0.7.0/download\"],\n strip_prefix = \"bitcoin-units-0.7.0\",\n build_file = Label(\"@crates//crates:BUILD.bitcoin-units-0.7.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__bitcoin_hashes-1.2.0\",\n sha256 = \"5304e53726dbe5f93141535e102ed97b5bf4714fbecefdda8f9fb98d7fdaff0e\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/bitcoin_hashes/1.2.0/download\"],\n strip_prefix = \"bitcoin_hashes-1.2.0\",\n build_file = Label(\"@crates//crates:BUILD.bitcoin_hashes-1.2.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__bitflags-2.13.2\",\n sha256 = \"3ded4057c258ba199e2d26386d3af3780957ecaee6c4ef4041c6b4b8b97c0b06\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/bitflags/2.13.2/download\"],\n strip_prefix = \"bitflags-2.13.2\",\n build_file = Label(\"@crates//crates:BUILD.bitflags-2.13.2.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__block-buffer-0.12.1\",\n sha256 = \"d2f6c7dbe95a6ed67ad9f18e57daf93a2f034c524b99fd2b76d18fdfeb6660aa\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/block-buffer/0.12.1/download\"],\n strip_prefix = \"block-buffer-0.12.1\",\n build_file = Label(\"@crates//crates:BUILD.block-buffer-0.12.1.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__blst-0.3.17\",\n sha256 = \"c20659f9bbee16cbbd2f7393e40ab6309f5a98f76a2eb57a995ec508b72387fe\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/blst/0.3.17/download\"],\n strip_prefix = \"blst-0.3.17\",\n build_file = Label(\"@crates//crates:BUILD.blst-0.3.17.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__built-0.7.7\",\n sha256 = \"56ed6191a7e78c36abdb16ab65341eefd73d64d303fffccdbb00d51e4205967b\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/built/0.7.7/download\"],\n strip_prefix = \"built-0.7.7\",\n build_file = Label(\"@crates//crates:BUILD.built-0.7.7.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__bytemuck-1.25.2\",\n sha256 = \"95832e849adfb21180ccb6826a99da14e5d266ae5c2e668e1602cf234f153797\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/bytemuck/1.25.2/download\"],\n strip_prefix = \"bytemuck-1.25.2\",\n build_file = Label(\"@crates//crates:BUILD.bytemuck-1.25.2.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__cargo-lock-10.1.0\",\n sha256 = \"c06acb4f71407ba205a07cb453211e0e6a67b21904e47f6ba1f9589e38f2e454\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/cargo-lock/10.1.0/download\"],\n strip_prefix = \"cargo-lock-10.1.0\",\n build_file = Label(\"@crates//crates:BUILD.cargo-lock-10.1.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__cc-1.10.0\",\n sha256 = \"86e055fa6e3e40ad6187ba25b6855eeb635d5271f8e0f0e1e9a5826b8d75bea0\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/cc/1.10.0/download\"],\n strip_prefix = \"cc-1.10.0\",\n build_file = Label(\"@crates//crates:BUILD.cc-1.10.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__cfg-if-1.0.5\",\n sha256 = \"4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/cfg-if/1.0.5/download\"],\n strip_prefix = \"cfg-if-1.0.5\",\n build_file = Label(\"@crates//crates:BUILD.cfg-if-1.0.5.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__ciborium-0.2.2\",\n sha256 = \"42e69ffd6f0917f5c029256a24d0161db17cea3997d185db0d35926308770f0e\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/ciborium/0.2.2/download\"],\n strip_prefix = \"ciborium-0.2.2\",\n build_file = Label(\"@crates//crates:BUILD.ciborium-0.2.2.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__ciborium-io-0.2.2\",\n sha256 = \"05afea1e0a06c9be33d539b876f1ce3692f4afea2cb41f740e7743225ed1c757\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/ciborium-io/0.2.2/download\"],\n strip_prefix = \"ciborium-io-0.2.2\",\n build_file = Label(\"@crates//crates:BUILD.ciborium-io-0.2.2.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__ciborium-ll-0.2.2\",\n sha256 = \"57663b653d948a338bfb3eeba9bb2fd5fcfaecb9e199e87e1eda4d9e8b240fd9\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/ciborium-ll/0.2.2/download\"],\n strip_prefix = \"ciborium-ll-0.2.2\",\n build_file = Label(\"@crates//crates:BUILD.ciborium-ll-0.2.2.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__cipher-0.5.2\",\n sha256 = \"e8cf2a2c93cd704877c0858356ed03480ff301ee950b43f1cbe4573b088bfa6c\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/cipher/0.5.2/download\"],\n strip_prefix = \"cipher-0.5.2\",\n build_file = Label(\"@crates//crates:BUILD.cipher-0.5.2.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__clap-4.6.7\",\n sha256 = \"aa8876b300ab35ba921adea3dfd70157a46249b33f95c9084ae5709785478946\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/clap/4.6.7/download\"],\n strip_prefix = \"clap-4.6.7\",\n build_file = Label(\"@crates//crates:BUILD.clap-4.6.7.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__clap_builder-4.6.7\",\n sha256 = \"ec0797fb7aeb1406c84efac526901f7ec3ead2124f946b494e72879d4b54704d\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/clap_builder/4.6.7/download\"],\n strip_prefix = \"clap_builder-4.6.7\",\n build_file = Label(\"@crates//crates:BUILD.clap_builder-4.6.7.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__clap_lex-1.1.1\",\n sha256 = \"1c133bc6a41be0d194c306b5506d15e6feeea7b1d6604bd3f8310dfb2ca96486\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/clap_lex/1.1.1/download\"],\n strip_prefix = \"clap_lex-1.1.1\",\n build_file = Label(\"@crates//crates:BUILD.clap_lex-1.1.1.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__condtype-1.3.0\",\n sha256 = \"baf0a07a401f374238ab8e2f11a104d2851bf9ce711ec69804834de8af45c7af\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/condtype/1.3.0/download\"],\n strip_prefix = \"condtype-1.3.0\",\n build_file = Label(\"@crates//crates:BUILD.condtype-1.3.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__cpubits-0.1.1\",\n sha256 = \"15b85f9c39137c3a891689859392b1bd49812121d0d61c9caf00d46ed5ce06ae\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/cpubits/0.1.1/download\"],\n strip_prefix = \"cpubits-0.1.1\",\n build_file = Label(\"@crates//crates:BUILD.cpubits-0.1.1.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__cpufeatures-0.3.1\",\n sha256 = \"5ca28b0ae3115b884660db4118d803791fd6756b6e88f39c0f3f7859060d7566\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/cpufeatures/0.3.1/download\"],\n strip_prefix = \"cpufeatures-0.3.1\",\n build_file = Label(\"@crates//crates:BUILD.cpufeatures-0.3.1.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__crunchy-0.2.4\",\n sha256 = \"460fbee9c2c2f33933d720630a6a0bac33ba7053db5344fac858d4b8952d77d5\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/crunchy/0.2.4/download\"],\n strip_prefix = \"crunchy-0.2.4\",\n build_file = Label(\"@crates//crates:BUILD.crunchy-0.2.4.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__crypto-common-0.2.2\",\n sha256 = \"ce6e4c961d6cd6c9a86db418387425e8bdeaf05b3c8bc1411e6dca4c252f1453\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/crypto-common/0.2.2/download\"],\n strip_prefix = \"crypto-common-0.2.2\",\n build_file = Label(\"@crates//crates:BUILD.crypto-common-0.2.2.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__curve25519-dalek-5.0.0\",\n sha256 = \"b5eed333089e2e1c1ac8c6c0398e5e2497b4c9926ca6d0365ed1e099afa5bc23\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/curve25519-dalek/5.0.0/download\"],\n strip_prefix = \"curve25519-dalek-5.0.0\",\n build_file = Label(\"@crates//crates:BUILD.curve25519-dalek-5.0.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__curve25519-dalek-derive-0.1.1\",\n sha256 = \"f46882e17999c6cc590af592290432be3bce0428cb0d5f8b6715e4dc7b383eb3\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/curve25519-dalek-derive/0.1.1/download\"],\n strip_prefix = \"curve25519-dalek-derive-0.1.1\",\n build_file = Label(\"@crates//crates:BUILD.curve25519-dalek-derive-0.1.1.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__delegate-0.13.5\",\n sha256 = \"780eb241654bf097afb00fc5f054a09b687dad862e485fdcf8399bb056565370\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/delegate/0.13.5/download\"],\n strip_prefix = \"delegate-0.13.5\",\n build_file = Label(\"@crates//crates:BUILD.delegate-0.13.5.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__digest-0.11.3\",\n sha256 = \"f1dd6dbb5841937940781866fa1281a1ff7bd3bf827091440879f9994983d5c2\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/digest/0.11.3/download\"],\n strip_prefix = \"digest-0.11.3\",\n build_file = Label(\"@crates//crates:BUILD.digest-0.11.3.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__displaydoc-0.2.7\",\n sha256 = \"c6232dd377dcc64799954cbd3a9bb882e9cdc1308ccd87b1c098f1fb2eaf82a8\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/displaydoc/0.2.7/download\"],\n strip_prefix = \"displaydoc-0.2.7\",\n build_file = Label(\"@crates//crates:BUILD.displaydoc-0.2.7.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__divan-0.1.21\",\n sha256 = \"a405457ec78b8fe08b0e32b4a3570ab5dff6dd16eb9e76a5ee0a9d9cbd898933\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/divan/0.1.21/download\"],\n strip_prefix = \"divan-0.1.21\",\n build_file = Label(\"@crates//crates:BUILD.divan-0.1.21.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__divan-macros-0.1.21\",\n sha256 = \"9556bc800956545d6420a640173e5ba7dfa82f38d3ea5a167eb555bc69ac3323\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/divan-macros/0.1.21/download\"],\n strip_prefix = \"divan-macros-0.1.21\",\n build_file = Label(\"@crates//crates:BUILD.divan-macros-0.1.21.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__ed25519-3.0.0\",\n sha256 = \"29fcf32e6c73d1079f83ab4d782de2d81620346a5f38c6237a86a22f8368980a\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/ed25519/3.0.0/download\"],\n strip_prefix = \"ed25519-3.0.0\",\n build_file = Label(\"@crates//crates:BUILD.ed25519-3.0.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__ed25519-dalek-3.0.0\",\n sha256 = \"6ebaa1a2bf1290ab3bfe5a7b771d050ebffab2711c19a81691c683a5144a25de\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/ed25519-dalek/3.0.0/download\"],\n strip_prefix = \"ed25519-dalek-3.0.0\",\n build_file = Label(\"@crates//crates:BUILD.ed25519-dalek-3.0.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__either-1.19.0\",\n sha256 = \"0e9c71c2167ca323c882b99918929403426e2373ea17242ff5653e0d5e1058be\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/either/1.19.0/download\"],\n strip_prefix = \"either-1.19.0\",\n build_file = Label(\"@crates//crates:BUILD.either-1.19.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__equivalent-1.0.3\",\n sha256 = \"00d174d5400e5e8fd687ad1049e2f578285fa914201b1af7e8b112a4546bd826\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/equivalent/1.0.3/download\"],\n strip_prefix = \"equivalent-1.0.3\",\n build_file = Label(\"@crates//crates:BUILD.equivalent-1.0.3.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__errno-0.3.14\",\n sha256 = \"39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/errno/0.3.14/download\"],\n strip_prefix = \"errno-0.3.14\",\n build_file = Label(\"@crates//crates:BUILD.errno-0.3.14.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__ff-0.14.0\",\n sha256 = \"a1f686ab92a9fb0eaf188f6c6c87b89490baa6fdb0db4544ba4dc47f7942489f\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/ff/0.14.0/download\"],\n strip_prefix = \"ff-0.14.0\",\n build_file = Label(\"@crates//crates:BUILD.ff-0.14.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__fiat-crypto-0.3.0\",\n sha256 = \"64cd1e32ddd350061ae6edb1b082d7c54915b5c672c389143b9a63403a109f24\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/fiat-crypto/0.3.0/download\"],\n strip_prefix = \"fiat-crypto-0.3.0\",\n build_file = Label(\"@crates//crates:BUILD.fiat-crypto-0.3.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__find-msvc-tools-0.1.15\",\n sha256 = \"1c66915cc5391097de7a2b0b972e8505aa33c0df401fd3a6811dbdb32881ba48\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/find-msvc-tools/0.1.15/download\"],\n strip_prefix = \"find-msvc-tools-0.1.15\",\n build_file = Label(\"@crates//crates:BUILD.find-msvc-tools-0.1.15.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__fixedbitset-0.4.2\",\n sha256 = \"0ce7134b9999ecaf8bcd65542e436736ef32ddca1b3e06094cb6ec5755203b80\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/fixedbitset/0.4.2/download\"],\n strip_prefix = \"fixedbitset-0.4.2\",\n build_file = Label(\"@crates//crates:BUILD.fixedbitset-0.4.2.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__form_urlencoded-1.2.2\",\n sha256 = \"cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/form_urlencoded/1.2.2/download\"],\n strip_prefix = \"form_urlencoded-1.2.2\",\n build_file = Label(\"@crates//crates:BUILD.form_urlencoded-1.2.2.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__futures-core-0.3.34\",\n sha256 = \"92d699e522242e69e3003b94ecc1f960f3a5e015aa7c5d7486e65ad01dd94f5e\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/futures-core/0.3.34/download\"],\n strip_prefix = \"futures-core-0.3.34\",\n build_file = Label(\"@crates//crates:BUILD.futures-core-0.3.34.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__futures-macro-0.3.34\",\n sha256 = \"9fb9654ba8355388abeb8dcb4fc62f511300867002afc858860463bdd9fe0c44\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/futures-macro/0.3.34/download\"],\n strip_prefix = \"futures-macro-0.3.34\",\n build_file = Label(\"@crates//crates:BUILD.futures-macro-0.3.34.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__futures-task-0.3.34\",\n sha256 = \"cd417de3d1d015fc3bfd2b1ea46dfc7bab72ef86f1cc7cc9c78e728b34a6d1fd\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/futures-task/0.3.34/download\"],\n strip_prefix = \"futures-task-0.3.34\",\n build_file = Label(\"@crates//crates:BUILD.futures-task-0.3.34.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__futures-timer-3.0.4\",\n sha256 = \"af43fadb8a98512d547e37b4e92e0ced13e205c061b87b4623eff01d918d6968\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/futures-timer/3.0.4/download\"],\n strip_prefix = \"futures-timer-3.0.4\",\n build_file = Label(\"@crates//crates:BUILD.futures-timer-3.0.4.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__futures-util-0.3.34\",\n sha256 = \"0d50a92467f8ba5dd6e3ee5d4bd04d73ab2e4e1c44474a0674821dfce14b79bc\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/futures-util/0.3.34/download\"],\n strip_prefix = \"futures-util-0.3.34\",\n build_file = Label(\"@crates//crates:BUILD.futures-util-0.3.34.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__getrandom-0.4.3\",\n sha256 = \"300e883d756b2e4ec94e02791f39b04b522276138852cfc41d9fb7e904106099\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/getrandom/0.4.3/download\"],\n strip_prefix = \"getrandom-0.4.3\",\n build_file = Label(\"@crates//crates:BUILD.getrandom-0.4.3.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__getset-0.1.7\",\n sha256 = \"6cf442baaabe4213ce7d1239afc26c039180b6456da2cededa316ae2c8a77a77\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/getset/0.1.7/download\"],\n strip_prefix = \"getset-0.1.7\",\n build_file = Label(\"@crates//crates:BUILD.getset-0.1.7.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__git2-0.20.4\",\n sha256 = \"7b88256088d75a56f8ecfa070513a775dd9107f6530ef14919dac831af9cfe2b\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/git2/0.20.4/download\"],\n strip_prefix = \"git2-0.20.4\",\n build_file = Label(\"@crates//crates:BUILD.git2-0.20.4.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__glob-0.3.4\",\n sha256 = \"e4eba85ea1d0a966a983acd07deee566e67395d2d96b6fb39e62b5a833f1eb0b\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/glob/0.3.4/download\"],\n strip_prefix = \"glob-0.3.4\",\n build_file = Label(\"@crates//crates:BUILD.glob-0.3.4.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__group-0.14.0\",\n sha256 = \"7fd1a1c7a5206c5b7a3f5a0d7ccd3ff85d0c8f5133d62a02680255b0004af5f4\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/group/0.14.0/download\"],\n strip_prefix = \"group-0.14.0\",\n build_file = Label(\"@crates//crates:BUILD.group-0.14.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__half-2.7.1\",\n sha256 = \"6ea2d84b969582b4b1864a92dc5d27cd2b77b622a8d79306834f1be5ba20d84b\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/half/2.7.1/download\"],\n strip_prefix = \"half-2.7.1\",\n build_file = Label(\"@crates//crates:BUILD.half-2.7.1.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__hashbrown-0.17.1\",\n sha256 = \"ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/hashbrown/0.17.1/download\"],\n strip_prefix = \"hashbrown-0.17.1\",\n build_file = Label(\"@crates//crates:BUILD.hashbrown-0.17.1.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__hermit-abi-0.5.3\",\n sha256 = \"e17592d60ebacc7d5e169f4663c5f84f9161cc90328abcfe8456f41e4dfcb284\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/hermit-abi/0.5.3/download\"],\n strip_prefix = \"hermit-abi-0.5.3\",\n build_file = Label(\"@crates//crates:BUILD.hermit-abi-0.5.3.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__hex-conservative-1.3.0\",\n sha256 = \"271e0d19bcb473b6675739a2b536076b24a082316cb5199ad918edce10c599e8\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/hex-conservative/1.3.0/download\"],\n strip_prefix = \"hex-conservative-1.3.0\",\n build_file = Label(\"@crates//crates:BUILD.hex-conservative-1.3.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__hybrid-array-0.4.15\",\n sha256 = \"27f864f10dfb56725ce5ce5472bc52252c8f93a4ab86327122cebf62c5f59a17\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/hybrid-array/0.4.15/download\"],\n strip_prefix = \"hybrid-array-0.4.15\",\n build_file = Label(\"@crates//crates:BUILD.hybrid-array-0.4.15.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__icu_collections-2.4.0\",\n sha256 = \"fe090a42a0d3140fed8c63263ed1fecc02422cb2f4bfe55cd8de2de1b8e105dd\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/icu_collections/2.4.0/download\"],\n strip_prefix = \"icu_collections-2.4.0\",\n build_file = Label(\"@crates//crates:BUILD.icu_collections-2.4.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__icu_locale_core-2.4.0\",\n sha256 = \"25d29b57c17c6528d0dc4c2141cfa2d08200465acb537a3909c8b9b8a4a984c0\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/icu_locale_core/2.4.0/download\"],\n strip_prefix = \"icu_locale_core-2.4.0\",\n build_file = Label(\"@crates//crates:BUILD.icu_locale_core-2.4.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__icu_normalizer-2.4.0\",\n sha256 = \"404a3b8c486f205c87fe7f23ab6894d84a4ad76d6e4671ae1981ba7def87c599\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/icu_normalizer/2.4.0/download\"],\n strip_prefix = \"icu_normalizer-2.4.0\",\n build_file = Label(\"@crates//crates:BUILD.icu_normalizer-2.4.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__icu_normalizer_data-2.4.0\",\n sha256 = \"20f0088bfb7441f7a37fa0c9e20cb1e9cba1cac6b9ce8cd2a6dc44294f8e8cbc\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/icu_normalizer_data/2.4.0/download\"],\n strip_prefix = \"icu_normalizer_data-2.4.0\",\n build_file = Label(\"@crates//crates:BUILD.icu_normalizer_data-2.4.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__icu_properties-2.4.0\",\n sha256 = \"2ea83d991c56158f7cf898bf86436c1dfe7c07ee82fe88951f2695c9f37a379f\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/icu_properties/2.4.0/download\"],\n strip_prefix = \"icu_properties-2.4.0\",\n build_file = Label(\"@crates//crates:BUILD.icu_properties-2.4.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__icu_properties_data-2.4.0\",\n sha256 = \"b98f29af82d02b163fe50161388350e743bb3107cc8e8c2f7314cb505faddfcf\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/icu_properties_data/2.4.0/download\"],\n strip_prefix = \"icu_properties_data-2.4.0\",\n build_file = Label(\"@crates//crates:BUILD.icu_properties_data-2.4.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__icu_provider-2.4.0\",\n sha256 = \"413099315636c588ee8f011190b329b971a09a8fae9d157e01dcae8379468514\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/icu_provider/2.4.0/download\"],\n strip_prefix = \"icu_provider-2.4.0\",\n build_file = Label(\"@crates//crates:BUILD.icu_provider-2.4.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__idna-1.1.0\",\n sha256 = \"3b0875f23caa03898994f6ddc501886a45c7d3d62d04d2d90788d47be1b1e4de\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/idna/1.1.0/download\"],\n strip_prefix = \"idna-1.1.0\",\n build_file = Label(\"@crates//crates:BUILD.idna-1.1.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__idna_adapter-1.2.2\",\n sha256 = \"cb68373c0d6620ef8105e855e7745e18b0d00d3bdb07fb532e434244cdb9a714\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/idna_adapter/1.2.2/download\"],\n strip_prefix = \"idna_adapter-1.2.2\",\n build_file = Label(\"@crates//crates:BUILD.idna_adapter-1.2.2.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__indexmap-2.14.2\",\n sha256 = \"cc4e190f5d26ca7051642629da2c52fc03bde85a03197c99408dcd291734c855\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/indexmap/2.14.2/download\"],\n strip_prefix = \"indexmap-2.14.2\",\n build_file = Label(\"@crates//crates:BUILD.indexmap-2.14.2.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__inout-0.2.5\",\n sha256 = \"3b5cf4372d022092674a83b8febf5865f7a573cc0c5baec5e49c879b6a20978f\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/inout/0.2.5/download\"],\n strip_prefix = \"inout-0.2.5\",\n build_file = Label(\"@crates//crates:BUILD.inout-0.2.5.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__itertools-0.10.5\",\n sha256 = \"b0fd2260e829bddf4cb6ea802289de2f86d6a7a690192fbe91b3f46e0f2c8473\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/itertools/0.10.5/download\"],\n strip_prefix = \"itertools-0.10.5\",\n build_file = Label(\"@crates//crates:BUILD.itertools-0.10.5.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__itoa-1.0.18\",\n sha256 = \"8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/itoa/1.0.18/download\"],\n strip_prefix = \"itoa-1.0.18\",\n build_file = Label(\"@crates//crates:BUILD.itoa-1.0.18.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__jobserver-0.1.35\",\n sha256 = \"1c00acbd29eabad4a2392fa0e921c874934dbbf4194312ad20f04a0ed67a3cb3\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/jobserver/0.1.35/download\"],\n strip_prefix = \"jobserver-0.1.35\",\n build_file = Label(\"@crates//crates:BUILD.jobserver-0.1.35.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__json5-0.4.1\",\n sha256 = \"96b0db21af676c1ce64250b5f40f3ce2cf27e4e47cb91ed91eb6fe9350b430c1\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/json5/0.4.1/download\"],\n strip_prefix = \"json5-0.4.1\",\n build_file = Label(\"@crates//crates:BUILD.json5-0.4.1.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__libc-0.2.191\",\n sha256 = \"65cd87c9a6d60536580b316ad985726104730a5151c99845f2490428ef91240a\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/libc/0.2.191/download\"],\n strip_prefix = \"libc-0.2.191\",\n build_file = Label(\"@crates//crates:BUILD.libc-0.2.191.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__libgit2-sys-0.18.8-1.9.7\",\n sha256 = \"7f7c568b25d7489bc3fb2988ed69ab111d2944d2f5fec3d5c987fe545ea97b50\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/libgit2-sys/0.18.8+1.9.7/download\"],\n strip_prefix = \"libgit2-sys-0.18.8+1.9.7\",\n build_file = Label(\"@crates//crates:BUILD.libgit2-sys-0.18.8+1.9.7.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__libm-0.2.16\",\n sha256 = \"b6d2cec3eae94f9f509c767b45932f1ada8350c4bdb85af2fcab4a3c14807981\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/libm/0.2.16/download\"],\n strip_prefix = \"libm-0.2.16\",\n build_file = Label(\"@crates//crates:BUILD.libm-0.2.16.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__libz-sys-1.1.31\",\n sha256 = \"ff20308ecabd635a2dc1dd5834a86c462cca20efba1d5d3ddab1f8aea3455cb2\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/libz-sys/1.1.31/download\"],\n strip_prefix = \"libz-sys-1.1.31\",\n build_file = Label(\"@crates//crates:BUILD.libz-sys-1.1.31.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__linux-raw-sys-0.12.1\",\n sha256 = \"32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/linux-raw-sys/0.12.1/download\"],\n strip_prefix = \"linux-raw-sys-0.12.1\",\n build_file = Label(\"@crates//crates:BUILD.linux-raw-sys-0.12.1.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__litemap-0.8.3\",\n sha256 = \"47d9d19d1d6efa0109d2f65ff4c85cddd50bd572e5a00127ab10987290bcefae\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/litemap/0.8.3/download\"],\n strip_prefix = \"litemap-0.8.3\",\n build_file = Label(\"@crates//crates:BUILD.litemap-0.8.3.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__log-0.4.35\",\n sha256 = \"5d15f86d12da44cd8d4ec3c73984537eb7f4cadcb9776a575a0a8a05ca11005c\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/log/0.4.35/download\"],\n strip_prefix = \"log-0.4.35\",\n build_file = Label(\"@crates//crates:BUILD.log-0.4.35.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__memchr-2.8.3\",\n sha256 = \"cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/memchr/2.8.3/download\"],\n strip_prefix = \"memchr-2.8.3\",\n build_file = Label(\"@crates//crates:BUILD.memchr-2.8.3.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__num_cpus-1.17.0\",\n sha256 = \"91df4bbde75afed763b708b7eee1e8e7651e02d97f6d5dd763e89367e957b23b\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/num_cpus/1.17.0/download\"],\n strip_prefix = \"num_cpus-1.17.0\",\n build_file = Label(\"@crates//crates:BUILD.num_cpus-1.17.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__percent-encoding-2.3.2\",\n sha256 = \"9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/percent-encoding/2.3.2/download\"],\n strip_prefix = \"percent-encoding-2.3.2\",\n build_file = Label(\"@crates//crates:BUILD.percent-encoding-2.3.2.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__pest-2.9.5\",\n sha256 = \"a8db75153506001cb36ed924f08cadc862eb3f8c4d0d534139f29074769d7660\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/pest/2.9.5/download\"],\n strip_prefix = \"pest-2.9.5\",\n build_file = Label(\"@crates//crates:BUILD.pest-2.9.5.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__pest_derive-2.9.5\",\n sha256 = \"20aa17e11fb35664b67d5214a0afac57a360d231b6ec53d6eba0700b27d933b4\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/pest_derive/2.9.5/download\"],\n strip_prefix = \"pest_derive-2.9.5\",\n build_file = Label(\"@crates//crates:BUILD.pest_derive-2.9.5.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__pest_generator-2.9.5\",\n sha256 = \"626ec5afccf44ccbfeb2b232316510bb55b4bf34d891afcb0fb07d2b17d7fe9d\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/pest_generator/2.9.5/download\"],\n strip_prefix = \"pest_generator-2.9.5\",\n build_file = Label(\"@crates//crates:BUILD.pest_generator-2.9.5.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__pest_meta-2.9.5\",\n sha256 = \"b3f45b6caa65c1b08186832745159c2529994146340a7bf44168095469720f5d\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/pest_meta/2.9.5/download\"],\n strip_prefix = \"pest_meta-2.9.5\",\n build_file = Label(\"@crates//crates:BUILD.pest_meta-2.9.5.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__pest_stack_guard-1.0.0\",\n sha256 = \"97e6cd2217057fa86b6eaa512917e58089d875b957a31e35e7ab729977e0a5f2\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/pest_stack_guard/1.0.0/download\"],\n strip_prefix = \"pest_stack_guard-1.0.0\",\n build_file = Label(\"@crates//crates:BUILD.pest_stack_guard-1.0.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__petgraph-0.6.5\",\n sha256 = \"b4c5cc86750666a3ed20bdaf5ca2a0344f9c67674cae0515bec2da16fbaa47db\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/petgraph/0.6.5/download\"],\n strip_prefix = \"petgraph-0.6.5\",\n build_file = Label(\"@crates//crates:BUILD.petgraph-0.6.5.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__pin-project-lite-0.2.17\",\n sha256 = \"a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/pin-project-lite/0.2.17/download\"],\n strip_prefix = \"pin-project-lite-0.2.17\",\n build_file = Label(\"@crates//crates:BUILD.pin-project-lite-0.2.17.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__pkg-config-0.3.34\",\n sha256 = \"f6b464fbc74e149a392436b17d523f769e057cb6877f6a5c4618bc6f11800548\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/pkg-config/0.3.34/download\"],\n strip_prefix = \"pkg-config-0.3.34\",\n build_file = Label(\"@crates//crates:BUILD.pkg-config-0.3.34.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__potential_utf-0.1.6\",\n sha256 = \"d83eb9bc6d8e5cf568e7a1101d60ee05e81ed50ea106026f3d18deeb046d7661\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/potential_utf/0.1.6/download\"],\n strip_prefix = \"potential_utf-0.1.6\",\n build_file = Label(\"@crates//crates:BUILD.potential_utf-0.1.6.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__proc-macro-crate-3.5.0\",\n sha256 = \"e67ba7e9b2b56446f1d419b1d807906278ffa1a658a8a5d8a39dcb1f5a78614f\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/proc-macro-crate/3.5.0/download\"],\n strip_prefix = \"proc-macro-crate-3.5.0\",\n build_file = Label(\"@crates//crates:BUILD.proc-macro-crate-3.5.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__proc-macro2-1.0.107\",\n sha256 = \"985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/proc-macro2/1.0.107/download\"],\n strip_prefix = \"proc-macro2-1.0.107\",\n build_file = Label(\"@crates//crates:BUILD.proc-macro2-1.0.107.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__psm-0.1.24\",\n sha256 = \"200b9ff220857e53e184257720a14553b2f4aa02577d2ed9842d45d4b9654810\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/psm/0.1.24/download\"],\n strip_prefix = \"psm-0.1.24\",\n build_file = Label(\"@crates//crates:BUILD.psm-0.1.24.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__quote-1.0.47\",\n sha256 = \"1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/quote/1.0.47/download\"],\n strip_prefix = \"quote-1.0.47\",\n build_file = Label(\"@crates//crates:BUILD.quote-1.0.47.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__r-efi-6.0.0\",\n sha256 = \"f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/r-efi/6.0.0/download\"],\n strip_prefix = \"r-efi-6.0.0\",\n build_file = Label(\"@crates//crates:BUILD.r-efi-6.0.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__rand_core-0.10.1\",\n sha256 = \"63b8176103e19a2643978565ca18b50549f6101881c443590420e4dc998a3c69\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/rand_core/0.10.1/download\"],\n strip_prefix = \"rand_core-0.10.1\",\n build_file = Label(\"@crates//crates:BUILD.rand_core-0.10.1.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__regex-1.13.1\",\n sha256 = \"f020237b6c8eed93db2e2cb53c00c60a8e1bc73da7d073199a1180401450218d\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/regex/1.13.1/download\"],\n strip_prefix = \"regex-1.13.1\",\n build_file = Label(\"@crates//crates:BUILD.regex-1.13.1.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__regex-automata-0.4.18\",\n sha256 = \"ad8553b9b26413251cbf30e620595c7a41b3887f03da04579c0e6b0d6a06b4b2\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/regex-automata/0.4.18/download\"],\n strip_prefix = \"regex-automata-0.4.18\",\n build_file = Label(\"@crates//crates:BUILD.regex-automata-0.4.18.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__regex-lite-0.1.9\",\n sha256 = \"cab834c73d247e67f4fae452806d17d3c7501756d98c8808d7c9c7aa7d18f973\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/regex-lite/0.1.9/download\"],\n strip_prefix = \"regex-lite-0.1.9\",\n build_file = Label(\"@crates//crates:BUILD.regex-lite-0.1.9.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__regex-syntax-0.8.11\",\n sha256 = \"d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/regex-syntax/0.8.11/download\"],\n strip_prefix = \"regex-syntax-0.8.11\",\n build_file = Label(\"@crates//crates:BUILD.regex-syntax-0.8.11.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__relative-path-1.9.3\",\n sha256 = \"ba39f3699c378cd8970968dcbff9c43159ea4cfbd88d43c00b22f2ef10a435d2\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/relative-path/1.9.3/download\"],\n strip_prefix = \"relative-path-1.9.3\",\n build_file = Label(\"@crates//crates:BUILD.relative-path-1.9.3.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__rstest-0.25.0\",\n sha256 = \"6fc39292f8613e913f7df8fa892b8944ceb47c247b78e1b1ae2f09e019be789d\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/rstest/0.25.0/download\"],\n strip_prefix = \"rstest-0.25.0\",\n build_file = Label(\"@crates//crates:BUILD.rstest-0.25.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__rstest_macros-0.25.0\",\n sha256 = \"1f168d99749d307be9de54d23fd226628d99768225ef08f6ffb52e0182a27746\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/rstest_macros/0.25.0/download\"],\n strip_prefix = \"rstest_macros-0.25.0\",\n build_file = Label(\"@crates//crates:BUILD.rstest_macros-0.25.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__rustc_version-0.4.1\",\n sha256 = \"cfcb3a22ef46e85b45de6ee7e79d063319ebb6594faafcf1c225ea92ab6e9b92\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/rustc_version/0.4.1/download\"],\n strip_prefix = \"rustc_version-0.4.1\",\n build_file = Label(\"@crates//crates:BUILD.rustc_version-0.4.1.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__rustix-1.1.6\",\n sha256 = \"e5e76742e5294153d4dde1207dbec5bdd81eef6fabdc0d2118babadabfd858aa\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/rustix/1.1.6/download\"],\n strip_prefix = \"rustix-1.1.6\",\n build_file = Label(\"@crates//crates:BUILD.rustix-1.1.6.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__safe_arch-1.2.0\",\n sha256 = \"42c6efa15875e6ecb39ca61fb0b0c1a40b84fac5a5ffe71eef7d1000c8eb3f5f\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/safe_arch/1.2.0/download\"],\n strip_prefix = \"safe_arch-1.2.0\",\n build_file = Label(\"@crates//crates:BUILD.safe_arch-1.2.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__secp256k1-0.33.1\",\n sha256 = \"d7f404a8dab7a7a5a631e741d8699aa9c8e1d689fc26ccf897c7187565490b69\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/secp256k1/0.33.1/download\"],\n strip_prefix = \"secp256k1-0.33.1\",\n build_file = Label(\"@crates//crates:BUILD.secp256k1-0.33.1.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__secp256k1-sys-0.14.1\",\n sha256 = \"f6b2992d4a3cd244539a7d5d0966aadbe5ca7fb868a5d7e38c29499b9e709bbd\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/secp256k1-sys/0.14.1/download\"],\n strip_prefix = \"secp256k1-sys-0.14.1\",\n build_file = Label(\"@crates//crates:BUILD.secp256k1-sys-0.14.1.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__semver-1.0.28\",\n sha256 = \"8a7852d02fc848982e0c167ef163aaff9cd91dc640ba85e263cb1ce46fae51cd\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/semver/1.0.28/download\"],\n strip_prefix = \"semver-1.0.28\",\n build_file = Label(\"@crates//crates:BUILD.semver-1.0.28.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__serde-1.0.229\",\n sha256 = \"4148590afebada386688f18773da617792bf2ef03ffc1e4cbd2b1d45b023e0ba\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/serde/1.0.229/download\"],\n strip_prefix = \"serde-1.0.229\",\n build_file = Label(\"@crates//crates:BUILD.serde-1.0.229.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__serde_core-1.0.229\",\n sha256 = \"67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/serde_core/1.0.229/download\"],\n strip_prefix = \"serde_core-1.0.229\",\n build_file = Label(\"@crates//crates:BUILD.serde_core-1.0.229.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__serde_derive-1.0.229\",\n sha256 = \"e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/serde_derive/1.0.229/download\"],\n strip_prefix = \"serde_derive-1.0.229\",\n build_file = Label(\"@crates//crates:BUILD.serde_derive-1.0.229.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__serde_json-1.0.154\",\n sha256 = \"e7e9cc8b1b85264074fbcc02a88680c4096b1e47df8f739dceb03bf482f04bd6\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/serde_json/1.0.154/download\"],\n strip_prefix = \"serde_json-1.0.154\",\n build_file = Label(\"@crates//crates:BUILD.serde_json-1.0.154.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__serde_spanned-0.6.9\",\n sha256 = \"bf41e0cfaf7226dca15e8197172c295a782857fcb97fad1808a166870dee75a3\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/serde_spanned/0.6.9/download\"],\n strip_prefix = \"serde_spanned-0.6.9\",\n build_file = Label(\"@crates//crates:BUILD.serde_spanned-0.6.9.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__sha2-0.11.1\",\n sha256 = \"47d7069beb7d6ac7b9acd1039986e73443f24234f41074da099d6f994ac9ad19\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/sha2/0.11.1/download\"],\n strip_prefix = \"sha2-0.11.1\",\n build_file = Label(\"@crates//crates:BUILD.sha2-0.11.1.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__shlex-2.0.1\",\n sha256 = \"f8fadd59c855ef2080decdef8ff161eb6661b86933c9d82e5ba29dc602a55aba\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/shlex/2.0.1/download\"],\n strip_prefix = \"shlex-2.0.1\",\n build_file = Label(\"@crates//crates:BUILD.shlex-2.0.1.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__signature-3.0.0\",\n sha256 = \"28d567dcbaf0049cb8ac2608a76cd95ff9e4412e1899d389ee400918ca7537f5\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/signature/3.0.0/download\"],\n strip_prefix = \"signature-3.0.0\",\n build_file = Label(\"@crates//crates:BUILD.signature-3.0.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__slab-0.4.12\",\n sha256 = \"0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/slab/0.4.12/download\"],\n strip_prefix = \"slab-0.4.12\",\n build_file = Label(\"@crates//crates:BUILD.slab-0.4.12.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__smallvec-1.16.4\",\n sha256 = \"d0d5d4b1981b8bbbb7aed204cae5726d683d5d6ac7e74ec54122ea28f315e7c8\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/smallvec/1.16.4/download\"],\n strip_prefix = \"smallvec-1.16.4\",\n build_file = Label(\"@crates//crates:BUILD.smallvec-1.16.4.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__stable_deref_trait-1.2.1\",\n sha256 = \"6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/stable_deref_trait/1.2.1/download\"],\n strip_prefix = \"stable_deref_trait-1.2.1\",\n build_file = Label(\"@crates//crates:BUILD.stable_deref_trait-1.2.1.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__stacker-0.1.25\",\n sha256 = \"707f49d46706bacf8a2b00d51dace3f9de527c13eec3778f570c411f89e69967\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/stacker/0.1.25/download\"],\n strip_prefix = \"stacker-0.1.25\",\n build_file = Label(\"@crates//crates:BUILD.stacker-0.1.25.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__subtle-2.6.1\",\n sha256 = \"13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/subtle/2.6.1/download\"],\n strip_prefix = \"subtle-2.6.1\",\n build_file = Label(\"@crates//crates:BUILD.subtle-2.6.1.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__syn-2.0.119\",\n sha256 = \"872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/syn/2.0.119/download\"],\n strip_prefix = \"syn-2.0.119\",\n build_file = Label(\"@crates//crates:BUILD.syn-2.0.119.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__syn-3.0.9\",\n sha256 = \"d78c8dee4c7bf0e14673097256fed6142ce9d3b85a408189d07482442145823b\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/syn/3.0.9/download\"],\n strip_prefix = \"syn-3.0.9\",\n build_file = Label(\"@crates//crates:BUILD.syn-3.0.9.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__synstructure-0.14.0\",\n sha256 = \"901704edd0dfe137f1987838ee4f259e4e063c31371bdb423f7ae38ec6f77f02\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/synstructure/0.14.0/download\"],\n strip_prefix = \"synstructure-0.14.0\",\n build_file = Label(\"@crates//crates:BUILD.synstructure-0.14.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__terminal_size-0.4.4\",\n sha256 = \"230a1b821ccbd75b185820a1f1ff7b14d21da1e442e22c0863ea5f08771a8874\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/terminal_size/0.4.4/download\"],\n strip_prefix = \"terminal_size-0.4.4\",\n build_file = Label(\"@crates//crates:BUILD.terminal_size-0.4.4.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__thiserror-2.0.21\",\n sha256 = \"09e52cb86a36cede5cb101bf8908837b3e4c6e5e59fe7fd85c23fb56200d189e\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/thiserror/2.0.21/download\"],\n strip_prefix = \"thiserror-2.0.21\",\n build_file = Label(\"@crates//crates:BUILD.thiserror-2.0.21.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__thiserror-impl-2.0.21\",\n sha256 = \"fe5197923287db20a58125f0bc85c062f7f2c892de97b18c356f9efb14b28524\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/thiserror-impl/2.0.21/download\"],\n strip_prefix = \"thiserror-impl-2.0.21\",\n build_file = Label(\"@crates//crates:BUILD.thiserror-impl-2.0.21.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__threadpool-1.8.1\",\n sha256 = \"d050e60b33d41c19108b32cea32164033a9013fe3b46cbd4457559bfbf77afaa\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/threadpool/1.8.1/download\"],\n strip_prefix = \"threadpool-1.8.1\",\n build_file = Label(\"@crates//crates:BUILD.threadpool-1.8.1.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__tinystr-0.8.5\",\n sha256 = \"abc840c238154d58f9e86b2792261edfde565a17696e1cda1a449de27979801a\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/tinystr/0.8.5/download\"],\n strip_prefix = \"tinystr-0.8.5\",\n build_file = Label(\"@crates//crates:BUILD.tinystr-0.8.5.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__toml-0.8.23\",\n sha256 = \"dc1beb996b9d83529a9e75c17a1686767d148d70663143c7854d8b4a09ced362\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/toml/0.8.23/download\"],\n strip_prefix = \"toml-0.8.23\",\n build_file = Label(\"@crates//crates:BUILD.toml-0.8.23.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__toml_datetime-0.6.11\",\n sha256 = \"22cddaf88f4fbc13c51aebbf5f8eceb5c7c5a9da2ac40a13519eb5b0a0e8f11c\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/toml_datetime/0.6.11/download\"],\n strip_prefix = \"toml_datetime-0.6.11\",\n build_file = Label(\"@crates//crates:BUILD.toml_datetime-0.6.11.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__toml_datetime-1.1.2-spec-1.1.0\",\n sha256 = \"2b86d767906c6c42421dcba507eb9d203e779497710a47782a224bb871653053\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/toml_datetime/1.1.2+spec-1.1.0/download\"],\n strip_prefix = \"toml_datetime-1.1.2+spec-1.1.0\",\n build_file = Label(\"@crates//crates:BUILD.toml_datetime-1.1.2+spec-1.1.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__toml_edit-0.22.27\",\n sha256 = \"41fe8c660ae4257887cf66394862d21dbca4a6ddd26f04a3560410406a2f819a\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/toml_edit/0.22.27/download\"],\n strip_prefix = \"toml_edit-0.22.27\",\n build_file = Label(\"@crates//crates:BUILD.toml_edit-0.22.27.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__toml_edit-0.25.17-spec-1.1.0\",\n sha256 = \"e3641d5bbb5349a79e1020a242d251efbc546ad8048d133958323ce9c40a9c9c\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/toml_edit/0.25.17+spec-1.1.0/download\"],\n strip_prefix = \"toml_edit-0.25.17+spec-1.1.0\",\n build_file = Label(\"@crates//crates:BUILD.toml_edit-0.25.17+spec-1.1.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__toml_parser-1.1.5-spec-1.1.0\",\n sha256 = \"baa693a8032d7e1cada7d0041e96126df243179ff061456783ac7f12bda4744c\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/toml_parser/1.1.5+spec-1.1.0/download\"],\n strip_prefix = \"toml_parser-1.1.5+spec-1.1.0\",\n build_file = Label(\"@crates//crates:BUILD.toml_parser-1.1.5+spec-1.1.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__toml_write-0.1.2\",\n sha256 = \"5d99f8c9a7727884afe522e9bd5edbfc91a3312b36a77b5fb8926e4c31a41801\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/toml_write/0.1.2/download\"],\n strip_prefix = \"toml_write-0.1.2\",\n build_file = Label(\"@crates//crates:BUILD.toml_write-0.1.2.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__typenum-1.20.1\",\n sha256 = \"b6f5e870be6c3b371b77fe0ee0bafb859fa4964b4404c27de1d380043c4dda20\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/typenum/1.20.1/download\"],\n strip_prefix = \"typenum-1.20.1\",\n build_file = Label(\"@crates//crates:BUILD.typenum-1.20.1.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__ucd-trie-0.1.7\",\n sha256 = \"2896d95c02a80c6d6a5d6e953d479f5ddf2dfdb6a244441010e373ac0fb88971\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/ucd-trie/0.1.7/download\"],\n strip_prefix = \"ucd-trie-0.1.7\",\n build_file = Label(\"@crates//crates:BUILD.ucd-trie-0.1.7.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__unicode-ident-1.0.27\",\n sha256 = \"a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/unicode-ident/1.0.27/download\"],\n strip_prefix = \"unicode-ident-1.0.27\",\n build_file = Label(\"@crates//crates:BUILD.unicode-ident-1.0.27.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__url-2.5.8\",\n sha256 = \"ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/url/2.5.8/download\"],\n strip_prefix = \"url-2.5.8\",\n build_file = Label(\"@crates//crates:BUILD.url-2.5.8.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__utf8_iter-1.1.0\",\n sha256 = \"af3bd9d3e571c26fcce9d033b87ea5ab061b8d2ffe9b7a5675d810d68f03edf0\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/utf8_iter/1.1.0/download\"],\n strip_prefix = \"utf8_iter-1.1.0\",\n build_file = Label(\"@crates//crates:BUILD.utf8_iter-1.1.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__utf_types-1.0.0\",\n sha256 = \"3a3b425286980a367278453f3b6d28cdcb134b574e5a35824a6ff5eebad50bb6\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/utf_types/1.0.0/download\"],\n strip_prefix = \"utf_types-1.0.0\",\n build_file = Label(\"@crates//crates:BUILD.utf_types-1.0.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__vcpkg-0.2.15\",\n sha256 = \"accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/vcpkg/0.2.15/download\"],\n strip_prefix = \"vcpkg-0.2.15\",\n build_file = Label(\"@crates//crates:BUILD.vcpkg-0.2.15.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__wide-1.7.1\",\n sha256 = \"d920ac99c3c8edce110cb8d07dbb324d6d026011dce85b1e9355b70f0adacc4f\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/wide/1.7.1/download\"],\n strip_prefix = \"wide-1.7.1\",\n build_file = Label(\"@crates//crates:BUILD.wide-1.7.1.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__windows-link-0.2.1\",\n sha256 = \"f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/windows-link/0.2.1/download\"],\n strip_prefix = \"windows-link-0.2.1\",\n build_file = Label(\"@crates//crates:BUILD.windows-link-0.2.1.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__windows-sys-0.61.2\",\n sha256 = \"ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/windows-sys/0.61.2/download\"],\n strip_prefix = \"windows-sys-0.61.2\",\n build_file = Label(\"@crates//crates:BUILD.windows-sys-0.61.2.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__winnow-0.7.15\",\n sha256 = \"df79d97927682d2fd8adb29682d1140b343be4ac0f08fd68b7765d9c059d3945\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/winnow/0.7.15/download\"],\n strip_prefix = \"winnow-0.7.15\",\n build_file = Label(\"@crates//crates:BUILD.winnow-0.7.15.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__winnow-1.0.4\",\n sha256 = \"23b97319f7b8343df12cc98938e5c3eb436064524c8d2b4e30a1d3a36eecdf81\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/winnow/1.0.4/download\"],\n strip_prefix = \"winnow-1.0.4\",\n build_file = Label(\"@crates//crates:BUILD.winnow-1.0.4.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__writeable-0.6.4\",\n sha256 = \"3ad82d2a33cdc9674dc7465672f271e096168fcdbe0f799d9e6db8c5892679dc\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/writeable/0.6.4/download\"],\n strip_prefix = \"writeable-0.6.4\",\n build_file = Label(\"@crates//crates:BUILD.writeable-0.6.4.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__xxhash-rust-0.8.19\",\n sha256 = \"550a2b930b62486a393c52d5c3b84bff264b28aa437ed64694d31e93b1757af7\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/xxhash-rust/0.8.19/download\"],\n strip_prefix = \"xxhash-rust-0.8.19\",\n build_file = Label(\"@crates//crates:BUILD.xxhash-rust-0.8.19.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__yoke-0.8.4\",\n sha256 = \"417ef3fcf6c300b7dbd25c85531a746931c02ad536f3cf4786ed1e88223340b3\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/yoke/0.8.4/download\"],\n strip_prefix = \"yoke-0.8.4\",\n build_file = Label(\"@crates//crates:BUILD.yoke-0.8.4.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__yoke-derive-0.8.4\",\n sha256 = \"ec8ebde2db3681e8c9980cc27822030e68752690ddfa9473e739aeb4dbde6d71\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/yoke-derive/0.8.4/download\"],\n strip_prefix = \"yoke-derive-0.8.4\",\n build_file = Label(\"@crates//crates:BUILD.yoke-derive-0.8.4.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__zerocopy-0.8.63\",\n sha256 = \"e5fe1f8f1b06191a00962174c61aa5005e0bb391a6d80d07e24d115c01a92ed8\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/zerocopy/0.8.63/download\"],\n strip_prefix = \"zerocopy-0.8.63\",\n build_file = Label(\"@crates//crates:BUILD.zerocopy-0.8.63.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__zerocopy-derive-0.8.63\",\n sha256 = \"863ad3ac83293fb4d740aedbfdc9240dd8d1a50c1099acd76ce80ce7c7230c7f\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/zerocopy-derive/0.8.63/download\"],\n strip_prefix = \"zerocopy-derive-0.8.63\",\n build_file = Label(\"@crates//crates:BUILD.zerocopy-derive-0.8.63.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__zerofrom-0.1.8\",\n sha256 = \"0ec05a11813ea801ff6d75110ad09cd0824ddba17dfe17128ea0d5f68e6c5272\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/zerofrom/0.1.8/download\"],\n strip_prefix = \"zerofrom-0.1.8\",\n build_file = Label(\"@crates//crates:BUILD.zerofrom-0.1.8.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__zerofrom-derive-0.1.8\",\n sha256 = \"f75b4683f6c7f45248d4d64056a24298c6281e0993356d7d1b4a1a962ef10d4a\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/zerofrom-derive/0.1.8/download\"],\n strip_prefix = \"zerofrom-derive-0.1.8\",\n build_file = Label(\"@crates//crates:BUILD.zerofrom-derive-0.1.8.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__zeroize-1.9.1\",\n sha256 = \"e13084392c5e4bc371903e2935a5eaeed24905a7511356b883835e18a78f6879\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/zeroize/1.9.1/download\"],\n strip_prefix = \"zeroize-1.9.1\",\n build_file = Label(\"@crates//crates:BUILD.zeroize-1.9.1.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__zeroize_derive-1.5.0\",\n sha256 = \"3c50655cbb0fe3fc43170059e702f1ce5e19b84cec58dc87b037a09935c2f328\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/zeroize_derive/1.5.0/download\"],\n strip_prefix = \"zeroize_derive-1.5.0\",\n build_file = Label(\"@crates//crates:BUILD.zeroize_derive-1.5.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__zerotrie-0.2.5\",\n sha256 = \"4ea269c3bd32f0a32c321907a2ae912ba6f4649bb0fc764a15627e99a7095a3f\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/zerotrie/0.2.5/download\"],\n strip_prefix = \"zerotrie-0.2.5\",\n build_file = Label(\"@crates//crates:BUILD.zerotrie-0.2.5.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__zerovec-0.11.9\",\n sha256 = \"f58a2799cfe9a1670c7ea8edbd52ef8edb93cb37a7f83bf31ba9e35d9dae6a40\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/zerovec/0.11.9/download\"],\n strip_prefix = \"zerovec-0.11.9\",\n build_file = Label(\"@crates//crates:BUILD.zerovec-0.11.9.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__zerovec-derive-0.11.7\",\n sha256 = \"c3743ddbf47738d929cd1ae2e199d40d0162979dfe31aef8ae646d2bf00bf97a\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/zerovec-derive/0.11.7/download\"],\n strip_prefix = \"zerovec-derive-0.11.7\",\n build_file = Label(\"@crates//crates:BUILD.zerovec-derive-0.11.7.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__zmij-1.0.23\",\n sha256 = \"29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/zmij/1.0.23/download\"],\n strip_prefix = \"zmij-1.0.23\",\n build_file = Label(\"@crates//crates:BUILD.zmij-1.0.23.bazel\"),\n )\n\n return [\n struct(repo = \"crates\", is_dev_dep = False),\n struct(repo=\"crates__aes-0.9.3\", is_dev_dep = False),\n struct(repo=\"crates__ambassador-0.5.1\", is_dev_dep = False),\n struct(repo=\"crates__base58ck-0.5.0\", is_dev_dep = False),\n struct(repo=\"crates__bitcoin-consensus-encoding-1.3.0\", is_dev_dep = False),\n struct(repo=\"crates__bitcoin-internals-0.8.2\", is_dev_dep = False),\n struct(repo=\"crates__bitcoin-primitives-0.104.0\", is_dev_dep = False),\n struct(repo=\"crates__bitcoin-units-0.7.0\", is_dev_dep = False),\n struct(repo=\"crates__bitcoin_hashes-1.2.0\", is_dev_dep = False),\n struct(repo=\"crates__blst-0.3.17\", is_dev_dep = False),\n struct(repo=\"crates__built-0.7.7\", is_dev_dep = False),\n struct(repo=\"crates__cfg-if-1.0.5\", is_dev_dep = False),\n struct(repo=\"crates__ciborium-0.2.2\", is_dev_dep = False),\n struct(repo=\"crates__delegate-0.13.5\", is_dev_dep = False),\n struct(repo=\"crates__digest-0.11.3\", is_dev_dep = False),\n struct(repo=\"crates__ed25519-dalek-3.0.0\", is_dev_dep = False),\n struct(repo=\"crates__ff-0.14.0\", is_dev_dep = False),\n struct(repo=\"crates__getset-0.1.7\", is_dev_dep = False),\n struct(repo=\"crates__group-0.14.0\", is_dev_dep = False),\n struct(repo=\"crates__hex-conservative-1.3.0\", is_dev_dep = False),\n struct(repo=\"crates__json5-0.4.1\", is_dev_dep = False),\n struct(repo=\"crates__libm-0.2.16\", is_dev_dep = False),\n struct(repo=\"crates__proc-macro2-1.0.107\", is_dev_dep = False),\n struct(repo=\"crates__quote-1.0.47\", is_dev_dep = False),\n struct(repo=\"crates__rand_core-0.10.1\", is_dev_dep = False),\n struct(repo=\"crates__secp256k1-0.33.1\", is_dev_dep = False),\n struct(repo=\"crates__serde-1.0.229\", is_dev_dep = False),\n struct(repo=\"crates__serde_json-1.0.154\", is_dev_dep = False),\n struct(repo=\"crates__sha2-0.11.1\", is_dev_dep = False),\n struct(repo=\"crates__subtle-2.6.1\", is_dev_dep = False),\n struct(repo=\"crates__syn-2.0.119\", is_dev_dep = False),\n struct(repo=\"crates__thiserror-2.0.21\", is_dev_dep = False),\n struct(repo=\"crates__wide-1.7.1\", is_dev_dep = False),\n struct(repo=\"crates__xxhash-rust-0.8.19\", is_dev_dep = False),\n struct(repo=\"crates__zeroize-1.9.1\", is_dev_dep = False),\n struct(repo = \"crates__divan-0.1.21\", is_dev_dep = True),\n struct(repo = \"crates__getrandom-0.4.3\", is_dev_dep = True),\n struct(repo = \"crates__rstest-0.25.0\", is_dev_dep = True),\n ]\n", "defs.bzl": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'dash_base_sdk'\n###############################################################################\n\"\"\"Deprecated: re-exports the crate_universe macros from `:crates.bzl`.\"\"\"\n\nload(\n \":crates.bzl\",\n _aliases = \"aliases\",\n _all_crate_deps = \"all_crate_deps\",\n _crate_deps = \"crate_deps\",\n _crate_edition = \"crate_edition\",\n _crate_repositories = \"crate_repositories\",\n)\n\naliases = _aliases\nall_crate_deps = _all_crate_deps\ncrate_deps = _crate_deps\ncrate_edition = _crate_edition\ncrate_repositories = _crate_repositories\n", "aes-0.9.3/BUILD.bazel": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'dash_base_sdk'\n###############################################################################\n\npackage(default_visibility = [\"//visibility:public\"])\n\nalias(\n name = \"aes-0.9.3\",\n actual = \"@crates__aes-0.9.3//:aes\",\n tags = [\"manual\"],\n)\n", "aes/BUILD.bazel": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'dash_base_sdk'\n###############################################################################\n\npackage(default_visibility = [\"//visibility:public\"])\n\nalias(\n name = \"aes\",\n actual = \"@crates__aes-0.9.3//:aes\",\n tags = [\"manual\"],\n)\n", diff --git a/pkgs/p2p_core/Cargo.toml b/pkgs/p2p_core/Cargo.toml index 10e4d8a9e..746043729 100644 --- a/pkgs/p2p_core/Cargo.toml +++ b/pkgs/p2p_core/Cargo.toml @@ -15,6 +15,7 @@ bench = false [features] default = [] std = [ + "bitcoin-units/std", "dash-params/std", "dash-pkc/std", "dash-primitives/std", @@ -23,6 +24,7 @@ std = [ ] serde = [ "dep:serde", + "bitcoin-units/serde", "dash-num/serde", "dash-pkc/serde", "dash-primitives/serde", @@ -38,6 +40,7 @@ portable = [ [dependencies] bitcoin-consensus-encoding = { workspace = true, features = ["alloc"] } +bitcoin-units = { workspace = true, features = ["alloc"] } cfg-if = "1" dash-num = { version = "0.3.0-beta", path = "../num", default-features = false, features = [ "codec", diff --git a/pkgs/p2p_core/contrib/cfilter.py b/pkgs/p2p_core/contrib/cfilter.py new file mode 100644 index 000000000..8f5654b1a --- /dev/null +++ b/pkgs/p2p_core/contrib/cfilter.py @@ -0,0 +1,74 @@ +#!/usr/bin/env python3 +# coding: latin-1 + +# +# Copyright (c) 2026-present, The Dash Core developers +# SPDX-License-Identifier: MIT +# See the accompanying file LICENSE or https://opensource.org/license/MIT +# + +"""Print the literals of the BIP157 programs.""" + +from __future__ import annotations + +import argparse +from pathlib import Path +from typing import TypeVar + +from util.rpc import Node, RpcError + +T = TypeVar("T") + +# The literals the programs take, by mainnet height. A block hash comes from +# getblockhash, a filter and a filter header from getblockfilter. +LITERALS = { + 999: ("HEADER",), + 1000: ("BLOCK_HASH", "FILTER", "HEADER"), + 1001: ("BLOCK_HASH", "FILTER"), + 1002: ("BLOCK_HASH", "FILTER"), + 2_000_000: ("BLOCK_HASH", "FILTER"), +} +def field(obj: object, key: str, kind: type[T]) -> T: + value = obj.get(key) if isinstance(obj, dict) else None + if not isinstance(value, kind) or (isinstance(value, bool) and kind is int): + raise RpcError(f"{key!r} is not a {kind.__name__} in {obj!r:.300}") + return value + + +def render(node: Node) -> str: + """Return the literals of the programs, read from *node*.""" + lines = [] + for height, kinds in LITERALS.items(): + block_hash = node.call("getblockhash", height) + if not isinstance(block_hash, str): + raise RpcError(f"getblockhash {height} did not return a hash") + result = node.call("getblockfilter", block_hash) + for kind in kinds: + if kind == "BLOCK_HASH": + source, value = f"from getblockhash {height}", block_hash + else: + key = kind.lower() + source = f"{key} from getblockfilter {block_hash}" + value = field(result, key, str) + lines.extend([ + f" // Mainnet height {height:,}, {source}.", + f' constexpr char {kind}_{height}[] = "{value}";', + ]) + return "\n".join(lines) + "\n" + + +def parse_args() -> argparse.Namespace: + parser = argparse.ArgumentParser(description=__doc__) + parser.add_argument( + "--node", nargs=2, required=True, metavar=("HOST:PORT", "COOKIE") + ) + return parser.parse_args() + + +def main() -> None: + args = parse_args() + print(render(Node(args.node[0], Path(args.node[1]).expanduser())), end="") + + +if __name__ == "__main__": + main() diff --git a/pkgs/p2p_core/corpus/cfilter.json5 b/pkgs/p2p_core/corpus/cfilter.json5 new file mode 100644 index 000000000..da5d0c7fc --- /dev/null +++ b/pkgs/p2p_core/corpus/cfilter.json5 @@ -0,0 +1,246 @@ +// +// BIP157 vectors. Generated with the reference implementation +// (dashpay/dash v24.0.0, 938fba5028). +// +// Each section comes with the program used to generate it. The literals of +// the programs were read from mainnet with +// `python3 pkgs/p2p_core/contrib/cfilter.py --node HOST:PORT COOKIE`, +// which prints them as the programs take them. +// +// To run a program, paste it at the end of the `blockfilter_tests` suite in +// `src/test/blockfilter_tests.cpp` at the specified revision, include +// `netmessagemaker.h` there, build it with `make -C src test/test_dash` and +// run `./src/test/test_dash --run_test=blockfilter_tests/`. The output +// should match the section. +// + +{ +/* +BOOST_AUTO_TEST_CASE(getcfilters_payloads) +{ + // Mainnet height 1,002, from getblockhash 1002. + constexpr char BLOCK_HASH_1002[] = "000001d4e0a41415fae8bd359f0df59968c3067992491c97374cadc2fc85250f"; + const CNetMsgMaker maker{PROTOCOL_VERSION}; + std::printf(" \"getcfilters\": {\n"); + const auto print = [&](const char* label, uint8_t type) { + const auto message{maker.Make(NetMsgType::GETCFILTERS, type, uint32_t{1001}, uint256S(BLOCK_HASH_1002))}; + DataStream fields{message.data}; + uint8_t filter_type; + uint32_t start_height; + uint256 stop_hash; + fields >> filter_type >> start_height >> stop_hash; + std::printf(" \"%s\": {\n \"raw\": \"%s\",\n \"details\": {\n" + " \"filter_type\": %u, \"start_height\": %u, \"stop_hash\": \"%s\"\n }\n },\n", + label, HexStr(message.data).c_str(), filter_type, start_height, stop_hash.GetHex().c_str()); + }; + print("basic", static_cast(BlockFilterType::BASIC_FILTER)); + print("unknown_type", 255); + std::printf(" },\n"); +} +*/ + "getcfilters": { + // Basic filter request with an asymmetric start height. + "basic": { + "raw": "00e90300000f2585fcc2ad4c37971c49927906c36899f50d9f35bde8fa1514a4e0d4010000", + "details": { + "filter_type": 0, "start_height": 1001, "stop_hash": "000001d4e0a41415fae8bd359f0df59968c3067992491c97374cadc2fc85250f" + } + }, + // Unknown type with the same start height and stop block. + "unknown_type": { + "raw": "ffe90300000f2585fcc2ad4c37971c49927906c36899f50d9f35bde8fa1514a4e0d4010000", + "details": { + "filter_type": 255, "start_height": 1001, "stop_hash": "000001d4e0a41415fae8bd359f0df59968c3067992491c97374cadc2fc85250f" + } + }, + }, +/* +BOOST_AUTO_TEST_CASE(cfilter_payloads) +{ + // Mainnet height 1,000, from getblockhash 1000. + constexpr char BLOCK_HASH_1000[] = "000003a25f2e73e06780808c6be48ef0c5d4592b53ff7d8f43dbefbb66f4c3ab"; + // Mainnet height 1,000, filter from getblockfilter 000003a25f2e73e06780808c6be48ef0c5d4592b53ff7d8f43dbefbb66f4c3ab. + constexpr char FILTER_1000[] = "017372f0"; + // Mainnet height 2,000,000, from getblockhash 2000000. + constexpr char BLOCK_HASH_2000000[] = "0000000000000009bd68b5e00976c3f7482d4cc12b6596614fbba5678ef13a59"; + // Mainnet height 2,000,000, filter from getblockfilter 0000000000000009bd68b5e00976c3f7482d4cc12b6596614fbba5678ef13a59. + constexpr char FILTER_2000000[] = "3880da865b8f17bcf8a5801b0e8d81fb23329f45e1b01cd40b8e760e6d455f8ad8d0dc82c1d476f7069ebc1e53cd86959c0402f8a0a0f99488e8c023dcb87d7b2fb7e51a765a45ea2d8ea4d431d9d120d402cb6102695e1804848d62dc02c977d7302054081d68f7f34cb8d58bb7dfbd9b4ff228a28d8e3b082cde7b17e6dfcdaa3501e22165c39f0b070e9a8f68ff23b80992f400"; + const CNetMsgMaker maker{PROTOCOL_VERSION}; + std::printf(" \"cfilter\": {\n"); + const auto print = [&](const char* label, const char* block_hash, const char* encoded) { + const BlockFilter filter{BlockFilterType::BASIC_FILTER, uint256S(block_hash), ParseHex(encoded), false}; + const auto message{maker.Make(NetMsgType::CFILTER, filter)}; + std::printf(" \"%s\": {\n \"raw\": \"%s\",\n \"details\": {\n" + " \"filter_type\": %u, \"block_hash\": \"%s\", \"filter\": \"%s\"\n }\n },\n", + label, HexStr(message.data).c_str(), static_cast(filter.GetFilterType()), + filter.GetBlockHash().GetHex().c_str(), HexStr(filter.GetEncodedFilter()).c_str()); + }; + print("block_1000", BLOCK_HASH_1000, FILTER_1000); + print("block_2000000", BLOCK_HASH_2000000, FILTER_2000000); + std::printf(" },\n"); +} +*/ + "cfilter": { + // One-coinbase filter at mainnet height 1000. + "block_1000": { + "raw": "00abc3f466bbefdb438f7dff532b59d4c5f08ee46b8c808067e0732e5fa203000004017372f0", + "details": { + "filter_type": 0, "block_hash": "000003a25f2e73e06780808c6be48ef0c5d4592b53ff7d8f43dbefbb66f4c3ab", "filter": "017372f0" + } + }, + // Several-transaction filter at mainnet height 2,000,000. + "block_2000000": { + "raw": "00593af18e67a5bb4f6196652bc14c2d48f7c37609e0b568bd0900000000000000953880da865b8f17bcf8a5801b0e8d81fb23329f45e1b01cd40b8e760e6d455f8ad8d0dc82c1d476f7069ebc1e53cd86959c0402f8a0a0f99488e8c023dcb87d7b2fb7e51a765a45ea2d8ea4d431d9d120d402cb6102695e1804848d62dc02c977d7302054081d68f7f34cb8d58bb7dfbd9b4ff228a28d8e3b082cde7b17e6dfcdaa3501e22165c39f0b070e9a8f68ff23b80992f400", + "details": { + "filter_type": 0, "block_hash": "0000000000000009bd68b5e00976c3f7482d4cc12b6596614fbba5678ef13a59", "filter": "3880da865b8f17bcf8a5801b0e8d81fb23329f45e1b01cd40b8e760e6d455f8ad8d0dc82c1d476f7069ebc1e53cd86959c0402f8a0a0f99488e8c023dcb87d7b2fb7e51a765a45ea2d8ea4d431d9d120d402cb6102695e1804848d62dc02c977d7302054081d68f7f34cb8d58bb7dfbd9b4ff228a28d8e3b082cde7b17e6dfcdaa3501e22165c39f0b070e9a8f68ff23b80992f400" + } + }, + }, +/* +BOOST_AUTO_TEST_CASE(getcfheaders_payloads) +{ + // Mainnet height 1,002, from getblockhash 1002. + constexpr char BLOCK_HASH_1002[] = "000001d4e0a41415fae8bd359f0df59968c3067992491c97374cadc2fc85250f"; + const CNetMsgMaker maker{PROTOCOL_VERSION}; + std::printf(" \"getcfheaders\": {\n"); + const auto print = [&](const char* label, uint8_t type) { + const auto message{maker.Make(NetMsgType::GETCFHEADERS, type, uint32_t{1001}, uint256S(BLOCK_HASH_1002))}; + DataStream fields{message.data}; + uint8_t filter_type; + uint32_t start_height; + uint256 stop_hash; + fields >> filter_type >> start_height >> stop_hash; + std::printf(" \"%s\": {\n \"raw\": \"%s\",\n \"details\": {\n" + " \"filter_type\": %u, \"start_height\": %u, \"stop_hash\": \"%s\"\n }\n },\n", + label, HexStr(message.data).c_str(), filter_type, start_height, stop_hash.GetHex().c_str()); + }; + print("basic", static_cast(BlockFilterType::BASIC_FILTER)); + std::printf(" },\n"); +} +*/ + "getcfheaders": { + // Basic filter-header request with an asymmetric start height. + "basic": { + "raw": "00e90300000f2585fcc2ad4c37971c49927906c36899f50d9f35bde8fa1514a4e0d4010000", + "details": { + "filter_type": 0, "start_height": 1001, "stop_hash": "000001d4e0a41415fae8bd359f0df59968c3067992491c97374cadc2fc85250f" + } + }, + }, +/* +BOOST_AUTO_TEST_CASE(cfheaders_payloads) +{ + // Mainnet height 999, header from getblockfilter 000002a1b5b34def27cb8b392482af0fc617440552aae948dda10830316c3df9. + constexpr char HEADER_999[] = "b8a6bad2b9f6ec39ee297c45dd90da07b346cb8fc9424cef6b46924480b08461"; + // Mainnet height 1,000, from getblockhash 1000. + constexpr char BLOCK_HASH_1000[] = "000003a25f2e73e06780808c6be48ef0c5d4592b53ff7d8f43dbefbb66f4c3ab"; + // Mainnet height 1,000, filter from getblockfilter 000003a25f2e73e06780808c6be48ef0c5d4592b53ff7d8f43dbefbb66f4c3ab. + constexpr char FILTER_1000[] = "017372f0"; + // Mainnet height 1,001, from getblockhash 1001. + constexpr char BLOCK_HASH_1001[] = "000002b0f1c394038a00312d33364360f2f31f5543e7a4d74664d7a5d6767256"; + // Mainnet height 1,001, filter from getblockfilter 000002b0f1c394038a00312d33364360f2f31f5543e7a4d74664d7a5d6767256. + constexpr char FILTER_1001[] = "013fc5a0"; + // Mainnet height 1,002, from getblockhash 1002. + constexpr char BLOCK_HASH_1002[] = "000001d4e0a41415fae8bd359f0df59968c3067992491c97374cadc2fc85250f"; + // Mainnet height 1,002, filter from getblockfilter 000001d4e0a41415fae8bd359f0df59968c3067992491c97374cadc2fc85250f. + constexpr char FILTER_1002[] = "015a6db0"; + const auto filter_hash = [](const char* block_hash, const char* encoded) { + return BlockFilter{BlockFilterType::BASIC_FILTER, uint256S(block_hash), ParseHex(encoded), false}.GetHash(); + }; + const std::vector filter_hashes{filter_hash(BLOCK_HASH_1000, FILTER_1000), + filter_hash(BLOCK_HASH_1001, FILTER_1001), + filter_hash(BLOCK_HASH_1002, FILTER_1002)}; + const auto message{CNetMsgMaker{PROTOCOL_VERSION}.Make(NetMsgType::CFHEADERS, + static_cast(BlockFilterType::BASIC_FILTER), + uint256S(BLOCK_HASH_1002), uint256S(HEADER_999), filter_hashes)}; + DataStream fields{message.data}; + uint8_t filter_type; + uint256 stop_hash, previous_header; + std::vector hashes; + fields >> filter_type >> stop_hash >> previous_header >> hashes; + std::printf(" \"cfheaders\": {\n \"three\": {\n \"raw\": \"%s\",\n \"details\": {\n" + " \"filter_type\": %u, \"stop_hash\": \"%s\", \"previous_filter_header\": \"%s\",\n" + " \"filter_hashes\": [", + HexStr(message.data).c_str(), filter_type, stop_hash.GetHex().c_str(), previous_header.GetHex().c_str()); + for (size_t i = 0; i < hashes.size(); ++i) { + std::printf("%s\"%s\"", i == 0 ? "" : ", ", hashes[i].GetHex().c_str()); + } + std::printf("]\n }\n },\n },\n"); +} +*/ + "cfheaders": { + // Three consecutive filter hashes for blocks 1000 through 1002 and the preceding header. + "three": { + "raw": "000f2585fcc2ad4c37971c49927906c36899f50d9f35bde8fa1514a4e0d40100006184b0804492466bef4c42c98fcb46b307da90dd457c29ee39ecf6b9d2baa6b803e0f5a8fce1f7fdb504f38c9766aaf43141c75f73504a2e9123811a3bcca7f77e84a74c605a8812b3b52f2588e669e7cd2da834c56d8edccde940b32ea899a25858c28faa265f41f3c7d47199ca2cc9273fd40b206e432ff87fe9a6f7f24db628", + "details": { + "filter_type": 0, "stop_hash": "000001d4e0a41415fae8bd359f0df59968c3067992491c97374cadc2fc85250f", "previous_filter_header": "b8a6bad2b9f6ec39ee297c45dd90da07b346cb8fc9424cef6b46924480b08461", + "filter_hashes": ["7ef7a7cc3b1a8123912e4a50735fc74131f4aa66978cf304b5fdf7e1fca8f5e0", "58a299a82eb340e9cddc8e6dc534a82dcde769e688252fb5b312885a604ca784", "28b64df2f7a6e97ff82f436e200bd43f27c92cca9971d4c7f3415f26aa8fc258"] + } + }, + }, +/* +BOOST_AUTO_TEST_CASE(getcfcheckpt_payloads) +{ + // Mainnet height 1,002, from getblockhash 1002. + constexpr char BLOCK_HASH_1002[] = "000001d4e0a41415fae8bd359f0df59968c3067992491c97374cadc2fc85250f"; + const CNetMsgMaker maker{PROTOCOL_VERSION}; + std::printf(" \"getcfcheckpt\": {\n"); + const auto print = [&](const char* label, uint8_t type) { + const auto message{maker.Make(NetMsgType::GETCFCHECKPT, type, uint256S(BLOCK_HASH_1002))}; + DataStream fields{message.data}; + uint8_t filter_type; + uint256 stop_hash; + fields >> filter_type >> stop_hash; + std::printf(" \"%s\": {\n \"raw\": \"%s\",\n \"details\": {\n" + " \"filter_type\": %u, \"stop_hash\": \"%s\"\n }\n },\n", + label, HexStr(message.data).c_str(), filter_type, stop_hash.GetHex().c_str()); + }; + print("basic", static_cast(BlockFilterType::BASIC_FILTER)); + std::printf(" },\n"); +} +*/ + "getcfcheckpt": { + // Basic checkpoint request ending at block 1002. + "basic": { + "raw": "000f2585fcc2ad4c37971c49927906c36899f50d9f35bde8fa1514a4e0d4010000", + "details": { + "filter_type": 0, "stop_hash": "000001d4e0a41415fae8bd359f0df59968c3067992491c97374cadc2fc85250f" + } + }, + }, +/* +BOOST_AUTO_TEST_CASE(cfcheckpt_payloads) +{ + // Mainnet height 1,000, header from getblockfilter 000003a25f2e73e06780808c6be48ef0c5d4592b53ff7d8f43dbefbb66f4c3ab. + constexpr char HEADER_1000[] = "c8587e94cb662c83821548dd9e0950e0848fb40e8971881d80e8bf6366c050a4"; + // Mainnet height 1,002, from getblockhash 1002. + constexpr char BLOCK_HASH_1002[] = "000001d4e0a41415fae8bd359f0df59968c3067992491c97374cadc2fc85250f"; + const auto message{CNetMsgMaker{PROTOCOL_VERSION}.Make(NetMsgType::CFCHECKPT, + static_cast(BlockFilterType::BASIC_FILTER), + uint256S(BLOCK_HASH_1002), + std::vector{uint256S(HEADER_1000)})}; + DataStream fields{message.data}; + uint8_t filter_type; + uint256 stop_hash; + std::vector headers; + fields >> filter_type >> stop_hash >> headers; + std::printf(" \"cfcheckpt\": {\n \"one\": {\n \"raw\": \"%s\",\n \"details\": {\n" + " \"filter_type\": %u, \"stop_hash\": \"%s\",\n \"filter_headers\": [", + HexStr(message.data).c_str(), filter_type, stop_hash.GetHex().c_str()); + for (size_t i = 0; i < headers.size(); ++i) { + std::printf("%s\"%s\"", i == 0 ? "" : ", ", headers[i].GetHex().c_str()); + } + std::printf("]\n }\n },\n },\n"); +} +*/ + "cfcheckpt": { + // One checkpoint header, for height 1000 before the stop block at 1002. + "one": { + "raw": "000f2585fcc2ad4c37971c49927906c36899f50d9f35bde8fa1514a4e0d401000001a450c06663bfe8801d8871890eb48f84e050099edd481582832c66cb947e58c8", + "details": { + "filter_type": 0, "stop_hash": "000001d4e0a41415fae8bd359f0df59968c3067992491c97374cadc2fc85250f", + "filter_headers": ["c8587e94cb662c83821548dd9e0950e0848fb40e8971881d80e8bf6366c050a4"] + } + }, + }, +} diff --git a/pkgs/p2p_core/src/msg/cfilter.rs b/pkgs/p2p_core/src/msg/cfilter.rs new file mode 100644 index 000000000..b97c68c6c --- /dev/null +++ b/pkgs/p2p_core/src/msg/cfilter.rs @@ -0,0 +1,250 @@ +// +// Copyright (c) 2026-present, The Dash Core developers +// SPDX-License-Identifier: MIT +// See the accompanying file LICENSE or https://opensource.org/license/MIT +// + +//! BIP157 compact block filter messages. + +use crate::codec::{codec_p2p, impl_p2p}; +use crate::prelude::*; + +use bitcoin_units::BlockHeight; +use dash_num::make_hash; +use dash_primitives::{hash_impl, BlockHash}; +use dash_types::codec::{BaseCodec, DecodeError, EncodeBuf}; +use dash_types::impl_new; +use dash_types::type_id::TypeId; +use getset::{CopyGetters, Getters}; + +// TODO(pasta): substitute `FilterHash` and `FilterHeader` with upstream types +// when their decoders can be used. + +make_hash! { + /// The hash of a block filter. + FilterHash, 32 +} + +make_hash! { + /// The header of a block filter. + FilterHeader, 32 +} + +impl_new! { +/// Requests the filters of a range of blocks. +#[derive(Clone, Copy, CopyGetters, Debug, Eq, Hash, PartialEq, TypeId)] +#[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] +pub struct GetCFilters { + /// The filter type, any byte. + #[getset(get_copy = "pub")] + filter_type: u8, + /// The height of the first block. + #[getset(get_copy = "pub")] + start_height: BlockHeight, + /// The hash of the last block. + #[getset(get_copy = "pub")] + stop_hash: BlockHash, +} +} + +impl_p2p!(GetCFilters); + +impl BaseCodec for GetCFilters { + fn decode(data: &mut &[u8]) -> Result { + Ok(Self { + filter_type: u8::decode(data)?, + start_height: BlockHeight::from_u32(u32::decode(data)?), + stop_hash: BlockHash::decode(data)?, + }) + } + + fn encode(&self, buf: &mut impl EncodeBuf) { + self.filter_type.encode(buf); + self.start_height.to_u32().encode(buf); + self.stop_hash.encode(buf); + } +} + +hash_impl!(GetCFilters); + +codec_p2p! { +/// The filter of one block. +#[derive(Clone, CopyGetters, Debug, Eq, Getters, Hash, PartialEq, TypeId)] +#[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] +pub struct CFilter { + /// The filter type, any byte. + #[getset(get_copy = "pub")] + filter_type: u8, + /// The hash of the block. + #[getset(get_copy = "pub")] + block_hash: BlockHash, + /// The filter. + #[cfg_attr(feature = "serde", serde(with = "dash_types::serialize::hex"))] + #[getset(get = "pub")] + filter: Vec, +} +} + +impl_new! { +/// Requests the filter hashes of a range of blocks. +#[derive(Clone, Copy, CopyGetters, Debug, Eq, Hash, PartialEq, TypeId)] +#[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] +pub struct GetCFHeaders { + /// The filter type, any byte. + #[getset(get_copy = "pub")] + filter_type: u8, + /// The height of the first block. + #[getset(get_copy = "pub")] + start_height: BlockHeight, + /// The hash of the last block. + #[getset(get_copy = "pub")] + stop_hash: BlockHash, +} +} + +impl_p2p!(GetCFHeaders); + +impl BaseCodec for GetCFHeaders { + fn decode(data: &mut &[u8]) -> Result { + Ok(Self { + filter_type: u8::decode(data)?, + start_height: BlockHeight::from_u32(u32::decode(data)?), + stop_hash: BlockHash::decode(data)?, + }) + } + + fn encode(&self, buf: &mut impl EncodeBuf) { + self.filter_type.encode(buf); + self.start_height.to_u32().encode(buf); + self.stop_hash.encode(buf); + } +} + +hash_impl!(GetCFHeaders); + +codec_p2p! { +/// The filter hashes of a range of blocks, with the filter header of the +/// block before it. +#[derive(Clone, CopyGetters, Debug, Eq, Getters, Hash, PartialEq, TypeId)] +#[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] +pub struct CFHeaders { + /// The filter type, any byte. + #[getset(get_copy = "pub")] + filter_type: u8, + /// The hash of the last block. + #[getset(get_copy = "pub")] + stop_hash: BlockHash, + /// The filter header of the block before the first. + #[getset(get_copy = "pub")] + previous_filter_header: FilterHeader, + /// The filter hashes, one per block. + #[getset(get = "pub")] + filter_hashes: Vec, +} +} + +codec_p2p! { +/// Requests the filter headers at every 1,000th block up to a block. +#[derive(Clone, Copy, CopyGetters, Debug, Eq, Hash, PartialEq, TypeId)] +#[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] +pub struct GetCFCheckpt { + /// The filter type, any byte. + #[getset(get_copy = "pub")] + filter_type: u8, + /// The hash of the last block. + #[getset(get_copy = "pub")] + stop_hash: BlockHash, +} +} + +codec_p2p! { +/// The filter headers at every 1,000th block up to a block. +#[derive(Clone, CopyGetters, Debug, Eq, Getters, Hash, PartialEq, TypeId)] +#[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))] +pub struct CFCheckpt { + /// The filter type, any byte. + #[getset(get_copy = "pub")] + filter_type: u8, + /// The hash of the last block. + #[getset(get_copy = "pub")] + stop_hash: BlockHash, + /// The filter headers, lowest height first. + #[getset(get = "pub")] + filter_headers: Vec, +} +} + +#[cfg(all(test, feature = "serde"))] +mod tests { + use super::*; + use crate::{CommandString, P2pMsg}; + + use dash_dev::{assert_serde_rt, check_wire, Corpus}; + use rstest::rstest; + + #[rstest] + fn corpus_getcfilters() { + let corpus = Corpus::open(env!("CARGO_MANIFEST_DIR"), "cfilter"); + let items = corpus.entries::("getcfilters", |raw, details, label| { + check_wire(raw, details, label); + let decoded = P2pMsg::decode_payload(&CommandString::GETCFILTERS, raw); + assert_eq!(decoded, Ok(P2pMsg::GetCFilters(*details)), "{label}: dispatch"); + }); + assert_serde_rt("getcfilters", &items); + } + + #[rstest] + fn corpus_cfilter() { + let corpus = Corpus::open(env!("CARGO_MANIFEST_DIR"), "cfilter"); + let items = corpus.entries::("cfilter", |raw, details, label| { + check_wire(raw, details, label); + let decoded = P2pMsg::decode_payload(&CommandString::CFILTER, raw); + assert_eq!(decoded, Ok(P2pMsg::CFilter(details.clone())), "{label}: dispatch"); + }); + assert_serde_rt("cfilter", &items); + } + + #[rstest] + fn corpus_getcfheaders() { + let corpus = Corpus::open(env!("CARGO_MANIFEST_DIR"), "cfilter"); + let items = corpus.entries::("getcfheaders", |raw, details, label| { + check_wire(raw, details, label); + let decoded = P2pMsg::decode_payload(&CommandString::GETCFHEADERS, raw); + assert_eq!(decoded, Ok(P2pMsg::GetCFHeaders(*details)), "{label}: dispatch"); + }); + assert_serde_rt("getcfheaders", &items); + } + + #[rstest] + fn corpus_cfheaders() { + let corpus = Corpus::open(env!("CARGO_MANIFEST_DIR"), "cfilter"); + let items = corpus.entries::("cfheaders", |raw, details, label| { + check_wire(raw, details, label); + let decoded = P2pMsg::decode_payload(&CommandString::CFHEADERS, raw); + assert_eq!(decoded, Ok(P2pMsg::CFHeaders(details.clone())), "{label}: dispatch"); + }); + assert_serde_rt("cfheaders", &items); + } + + #[rstest] + fn corpus_getcfcheckpt() { + let corpus = Corpus::open(env!("CARGO_MANIFEST_DIR"), "cfilter"); + let items = corpus.entries::("getcfcheckpt", |raw, details, label| { + check_wire(raw, details, label); + let decoded = P2pMsg::decode_payload(&CommandString::GETCFCHECKPT, raw); + assert_eq!(decoded, Ok(P2pMsg::GetCFCheckpt(*details)), "{label}: dispatch"); + }); + assert_serde_rt("getcfcheckpt", &items); + } + + #[rstest] + fn corpus_cfcheckpt() { + let corpus = Corpus::open(env!("CARGO_MANIFEST_DIR"), "cfilter"); + let items = corpus.entries::("cfcheckpt", |raw, details, label| { + check_wire(raw, details, label); + let decoded = P2pMsg::decode_payload(&CommandString::CFCHECKPT, raw); + assert_eq!(decoded, Ok(P2pMsg::CFCheckpt(details.clone())), "{label}: dispatch"); + }); + assert_serde_rt("cfcheckpt", &items); + } +} diff --git a/pkgs/p2p_core/src/msg/mod.rs b/pkgs/p2p_core/src/msg/mod.rs index 8b6edba35..33089cd5a 100644 --- a/pkgs/p2p_core/src/msg/mod.rs +++ b/pkgs/p2p_core/src/msg/mod.rs @@ -9,6 +9,7 @@ mod addr; mod blocks; mod bloom; +mod cfilter; mod coinjoin; mod gov; mod headers; @@ -32,6 +33,7 @@ use dash_types::type_id::Unencodable; pub use addr::{Addr, AddrV2Entry, AddrV2Msg, TimestampedAddr}; pub use blocks::{GetBlocks, SendCmpct}; pub use bloom::{BloomFlags, FilterAdd, FilterLoad, MerkleBlock, PartialMerkleTree}; +pub use cfilter::{CFCheckpt, CFHeaders, CFilter, FilterHash, FilterHeader, GetCFCheckpt, GetCFHeaders, GetCFilters}; pub use coinjoin::SendDsq; pub use gov::{GovSync, GovSyncStatusCount}; pub use headers::{GetHeaders, Headers}; @@ -97,6 +99,18 @@ define_p2p! { FilterAdd(FilterAdd) => FILTERADD "filteradd" @ 6, /// BIP37: filtered block. MerkleBlock(MerkleBlock) => MERKLEBLOCK "merkleblock" @ 16, + /// BIP157: request compact filters. + GetCFilters(GetCFilters) => GETCFILTERS "getcfilters" @ 22, + /// BIP157: compact block filter. + CFilter(CFilter) => CFILTER "cfilter" @ 23, + /// BIP157: request compact filter headers. + GetCFHeaders(GetCFHeaders) => GETCFHEADERS "getcfheaders" @ 24, + /// BIP157: compact filter headers. + CFHeaders(CFHeaders) => CFHEADERS "cfheaders" @ 25, + /// BIP157: request compact filter checkpoints. + GetCFCheckpt(GetCFCheckpt) => GETCFCHECKPT "getcfcheckpt" @ 26, + /// BIP157: compact filter checkpoints. + CFCheckpt(CFCheckpt) => CFCHECKPT "cfcheckpt" @ 27, } parsed_empty { @@ -125,18 +139,6 @@ define_p2p! { GetBlockTxn => GETBLOCKTXN "getblocktxn" @ 10, /// Transaction. Tx => TX "tx" @ 21, - /// Request compact filters. - GetCFilters => GETCFILTERS "getcfilters" @ 22, - /// Compact block filter. - CFilter => CFILTER "cfilter" @ 23, - /// Request compact filter headers. - GetCFHeaders => GETCFHEADERS "getcfheaders" @ 24, - /// Compact filter headers. - CFHeaders => CFHEADERS "cfheaders" @ 25, - /// Request compact filter checkpoints. - GetCFCheckpt => GETCFCHECKPT "getcfcheckpt" @ 26, - /// Compact filter checkpoints. - CFCheckpt => CFCHECKPT "cfcheckpt" @ 27, /// Spork broadcast/request. Spork => SPORK "spork" @ 128, /// CoinJoin: accept denomination.