]> git.bitcoin.ninja Git - rust-lightning/commitdiff
`rustfmt`: `fuzz/src/msg_targets/*`
authorElias Rohrer <dev@tnull.de>
Thu, 6 Jun 2024 11:09:43 +0000 (13:09 +0200)
committerElias Rohrer <dev@tnull.de>
Fri, 7 Jun 2024 18:37:10 +0000 (20:37 +0200)
50 files changed:
fuzz/src/msg_targets/gen_target.sh
fuzz/src/msg_targets/mod.rs
fuzz/src/msg_targets/msg_accept_channel.rs
fuzz/src/msg_targets/msg_accept_channel_v2.rs
fuzz/src/msg_targets/msg_announcement_signatures.rs
fuzz/src/msg_targets/msg_channel_announcement.rs
fuzz/src/msg_targets/msg_channel_details.rs
fuzz/src/msg_targets/msg_channel_ready.rs
fuzz/src/msg_targets/msg_channel_reestablish.rs
fuzz/src/msg_targets/msg_channel_update.rs
fuzz/src/msg_targets/msg_closing_signed.rs
fuzz/src/msg_targets/msg_commitment_signed.rs
fuzz/src/msg_targets/msg_decoded_onion_error_packet.rs
fuzz/src/msg_targets/msg_error_message.rs
fuzz/src/msg_targets/msg_funding_created.rs
fuzz/src/msg_targets/msg_funding_signed.rs
fuzz/src/msg_targets/msg_gossip_timestamp_filter.rs
fuzz/src/msg_targets/msg_init.rs
fuzz/src/msg_targets/msg_node_announcement.rs
fuzz/src/msg_targets/msg_open_channel.rs
fuzz/src/msg_targets/msg_open_channel_v2.rs
fuzz/src/msg_targets/msg_ping.rs
fuzz/src/msg_targets/msg_pong.rs
fuzz/src/msg_targets/msg_query_channel_range.rs
fuzz/src/msg_targets/msg_query_short_channel_ids.rs
fuzz/src/msg_targets/msg_reply_channel_range.rs
fuzz/src/msg_targets/msg_reply_short_channel_ids_end.rs
fuzz/src/msg_targets/msg_revoke_and_ack.rs
fuzz/src/msg_targets/msg_shutdown.rs
fuzz/src/msg_targets/msg_splice.rs
fuzz/src/msg_targets/msg_splice_ack.rs
fuzz/src/msg_targets/msg_splice_locked.rs
fuzz/src/msg_targets/msg_stfu.rs
fuzz/src/msg_targets/msg_tx_abort.rs
fuzz/src/msg_targets/msg_tx_ack_rbf.rs
fuzz/src/msg_targets/msg_tx_add_input.rs
fuzz/src/msg_targets/msg_tx_add_output.rs
fuzz/src/msg_targets/msg_tx_complete.rs
fuzz/src/msg_targets/msg_tx_init_rbf.rs
fuzz/src/msg_targets/msg_tx_remove_input.rs
fuzz/src/msg_targets/msg_tx_remove_output.rs
fuzz/src/msg_targets/msg_tx_signatures.rs
fuzz/src/msg_targets/msg_update_add_htlc.rs
fuzz/src/msg_targets/msg_update_fail_htlc.rs
fuzz/src/msg_targets/msg_update_fail_malformed_htlc.rs
fuzz/src/msg_targets/msg_update_fee.rs
fuzz/src/msg_targets/msg_update_fulfill_htlc.rs
fuzz/src/msg_targets/msg_warning_message.rs
fuzz/src/msg_targets/utils.rs
rustfmt_excluded_files

index 8bce10059f539de33506b358dc4937a564dc9b69..05997c07573f8c4fcc57a6f7f38e32c4f87eb10c 100755 (executable)
@@ -7,7 +7,10 @@ GEN_TEST() {
        echo "pub mod $tn;" >> mod.rs
 }
 
-echo "mod utils;" > mod.rs
+{
+       echo "#![cfg_attr(rustfmt, rustfmt_skip)]"
+       echo "mod utils;"
+} > mod.rs
 
 # Note when adding new targets here you should add a similar line in src/bin/gen_target.sh
 
index 837bee65dec110c4d7f78d5576923e1e5a466c43..15750a9a5b140a3402f5a8ee7b1c412be5c51428 100644 (file)
@@ -1,3 +1,4 @@
+#![cfg_attr(rustfmt, rustfmt_skip)]
 mod utils;
 pub mod msg_accept_channel;
 pub mod msg_announcement_signatures;
index d4e7acf1da76b34fe965f0c839a9650a85d0e101..216fe7c59bd156a3773e9573e441e4076200c9fc 100644 (file)
@@ -10,6 +10,8 @@
 // This file is auto-generated by gen_target.sh based on msg_target_template.txt
 // To modify it, modify msg_target_template.txt and run gen_target.sh instead.
 
+#![cfg_attr(rustfmt, rustfmt_skip)]
+
 use crate::msg_targets::utils::VecWriter;
 use crate::utils::test_logger;
 
index 36b646644ea45eddca8af367ca1cac2c172d1a07..c1d7fb55c9bf9abc390b8259c80cdcd27c6cadd0 100644 (file)
@@ -10,6 +10,8 @@
 // This file is auto-generated by gen_target.sh based on msg_target_template.txt
 // To modify it, modify msg_target_template.txt and run gen_target.sh instead.
 
+#![cfg_attr(rustfmt, rustfmt_skip)]
+
 use crate::msg_targets::utils::VecWriter;
 use crate::utils::test_logger;
 
index cf0ca2e2d85dc1284c80267da30aa582fe76f37b..6010e6001b62e89d5488fb624e8a31a4511bb296 100644 (file)
@@ -10,6 +10,8 @@
 // This file is auto-generated by gen_target.sh based on msg_target_template.txt
 // To modify it, modify msg_target_template.txt and run gen_target.sh instead.
 
+#![cfg_attr(rustfmt, rustfmt_skip)]
+
 use crate::msg_targets::utils::VecWriter;
 use crate::utils::test_logger;
 
index 0c67ca16edf657dcc982c4b08de2437fc96c521c..d4084c618937e8aa6b49415fe70bbe140c88b694 100644 (file)
@@ -10,6 +10,8 @@
 // This file is auto-generated by gen_target.sh based on msg_target_template.txt
 // To modify it, modify msg_target_template.txt and run gen_target.sh instead.
 
+#![cfg_attr(rustfmt, rustfmt_skip)]
+
 use crate::msg_targets::utils::VecWriter;
 use crate::utils::test_logger;
 
index 59554fab177df629a23005493aa6fa908bf612b1..eb9f8beee47eee822ffeed37b99101a12baa2a77 100644 (file)
@@ -10,6 +10,8 @@
 // This file is auto-generated by gen_target.sh based on msg_target_template.txt
 // To modify it, modify msg_target_template.txt and run gen_target.sh instead.
 
+#![cfg_attr(rustfmt, rustfmt_skip)]
+
 use crate::msg_targets::utils::VecWriter;
 use crate::utils::test_logger;
 
index 5b13486f56cce9039d577be32e69d3bf32a50b54..3180928905de3807fd073a733bc2441c4b490d76 100644 (file)
@@ -10,6 +10,8 @@
 // This file is auto-generated by gen_target.sh based on msg_target_template.txt
 // To modify it, modify msg_target_template.txt and run gen_target.sh instead.
 
+#![cfg_attr(rustfmt, rustfmt_skip)]
+
 use crate::msg_targets::utils::VecWriter;
 use crate::utils::test_logger;
 
index fdc2d1fa62b217049218ed0ff0fcf69b70a87fcf..f766892a2e2086916e6da7881a25a2e5b93749bf 100644 (file)
@@ -10,6 +10,8 @@
 // This file is auto-generated by gen_target.sh based on msg_target_template.txt
 // To modify it, modify msg_target_template.txt and run gen_target.sh instead.
 
+#![cfg_attr(rustfmt, rustfmt_skip)]
+
 use crate::msg_targets::utils::VecWriter;
 use crate::utils::test_logger;
 
index 27dadaed562f15412102907f5eee12fd73ba6c99..358305b9dae2eff6629ded0a345b6f102e5fa8ee 100644 (file)
@@ -10,6 +10,8 @@
 // This file is auto-generated by gen_target.sh based on msg_target_template.txt
 // To modify it, modify msg_target_template.txt and run gen_target.sh instead.
 
+#![cfg_attr(rustfmt, rustfmt_skip)]
+
 use crate::msg_targets::utils::VecWriter;
 use crate::utils::test_logger;
 
index 0497b1fcc65c81b958b55c81be50636bda418dda..74e04d6675abc8fa79ca4fd677bb490b32145cd5 100644 (file)
@@ -10,6 +10,8 @@
 // This file is auto-generated by gen_target.sh based on msg_target_template.txt
 // To modify it, modify msg_target_template.txt and run gen_target.sh instead.
 
+#![cfg_attr(rustfmt, rustfmt_skip)]
+
 use crate::msg_targets::utils::VecWriter;
 use crate::utils::test_logger;
 
index 8726efc586bed577c10ac0fb803ab4840fd85cd2..7ece314353d3e4cc3746af8bc8466ee2824d4f09 100644 (file)
@@ -10,6 +10,8 @@
 // This file is auto-generated by gen_target.sh based on msg_target_template.txt
 // To modify it, modify msg_target_template.txt and run gen_target.sh instead.
 
+#![cfg_attr(rustfmt, rustfmt_skip)]
+
 use crate::msg_targets::utils::VecWriter;
 use crate::utils::test_logger;
 
index 3f5243d4e26b7f967489b681479d8628626c697c..9d245e2f2d211b329d8da24585d4fa5a9b10b717 100644 (file)
@@ -10,6 +10,8 @@
 // This file is auto-generated by gen_target.sh based on msg_target_template.txt
 // To modify it, modify msg_target_template.txt and run gen_target.sh instead.
 
+#![cfg_attr(rustfmt, rustfmt_skip)]
+
 use crate::msg_targets::utils::VecWriter;
 use crate::utils::test_logger;
 
index 6d9d8e27e316794dad5f5c6c63f38acad883ba12..ae16e1686dcd2122e4a8958aad7c7bd3ae127e86 100644 (file)
@@ -10,6 +10,8 @@
 // This file is auto-generated by gen_target.sh based on msg_target_template.txt
 // To modify it, modify msg_target_template.txt and run gen_target.sh instead.
 
+#![cfg_attr(rustfmt, rustfmt_skip)]
+
 use crate::msg_targets::utils::VecWriter;
 use crate::utils::test_logger;
 
index c03975da7b91767bc83ab55ca3fb41247a832954..a6c5ba148c24d401f38a95d043b86c63aea5bd0f 100644 (file)
@@ -10,6 +10,8 @@
 // This file is auto-generated by gen_target.sh based on msg_target_template.txt
 // To modify it, modify msg_target_template.txt and run gen_target.sh instead.
 
+#![cfg_attr(rustfmt, rustfmt_skip)]
+
 use crate::msg_targets::utils::VecWriter;
 use crate::utils::test_logger;
 
index 8788d34bc8f95ebd44a60014c92264e713afe449..34f0fddaad300d38bb10b906a09b69f2c89068a5 100644 (file)
@@ -10,6 +10,8 @@
 // This file is auto-generated by gen_target.sh based on msg_target_template.txt
 // To modify it, modify msg_target_template.txt and run gen_target.sh instead.
 
+#![cfg_attr(rustfmt, rustfmt_skip)]
+
 use crate::msg_targets::utils::VecWriter;
 use crate::utils::test_logger;
 
index 884449b06d5b5b82b453b28f4583f76a93ecdffb..8e0fb7c53808a2880e85451505338fce4bb5a708 100644 (file)
@@ -10,6 +10,8 @@
 // This file is auto-generated by gen_target.sh based on msg_target_template.txt
 // To modify it, modify msg_target_template.txt and run gen_target.sh instead.
 
+#![cfg_attr(rustfmt, rustfmt_skip)]
+
 use crate::msg_targets::utils::VecWriter;
 use crate::utils::test_logger;
 
index 1f21f4b3d5d4d77cd1d60dd42762eb99a53b2316..5f11441ddf5cda69fdf6ccdc83155ae7bd060bdf 100644 (file)
@@ -10,6 +10,8 @@
 // This file is auto-generated by gen_target.sh based on msg_target_template.txt
 // To modify it, modify msg_target_template.txt and run gen_target.sh instead.
 
+#![cfg_attr(rustfmt, rustfmt_skip)]
+
 use crate::msg_targets::utils::VecWriter;
 use crate::utils::test_logger;
 
index ab2ba755092f1f9675fa3ea948ece123e5c8abed..ce9bb30d3ddfb8da106b2c35bed9c7569a89ed09 100644 (file)
@@ -10,6 +10,8 @@
 // This file is auto-generated by gen_target.sh based on msg_target_template.txt
 // To modify it, modify msg_target_template.txt and run gen_target.sh instead.
 
+#![cfg_attr(rustfmt, rustfmt_skip)]
+
 use crate::msg_targets::utils::VecWriter;
 use crate::utils::test_logger;
 
index cacb5d767d6169b0aaddff1700d2f22e8305b5d1..9c924e501db6e2669b329263d728cb286d7bb4f3 100644 (file)
@@ -10,6 +10,8 @@
 // This file is auto-generated by gen_target.sh based on msg_target_template.txt
 // To modify it, modify msg_target_template.txt and run gen_target.sh instead.
 
+#![cfg_attr(rustfmt, rustfmt_skip)]
+
 use crate::msg_targets::utils::VecWriter;
 use crate::utils::test_logger;
 
index 4f6457a3ebbd5772bc955b866e2b6a9b9b2e730a..a43d58ee9e65f1560e7ddcc6ad758624c5cd8f55 100644 (file)
@@ -10,6 +10,8 @@
 // This file is auto-generated by gen_target.sh based on msg_target_template.txt
 // To modify it, modify msg_target_template.txt and run gen_target.sh instead.
 
+#![cfg_attr(rustfmt, rustfmt_skip)]
+
 use crate::msg_targets::utils::VecWriter;
 use crate::utils::test_logger;
 
index 2509fef7e892c52ff6cc1d7e0b085ea52ce60e5d..2ff54816474447207cf341f07b80286dc6f0521b 100644 (file)
@@ -10,6 +10,8 @@
 // This file is auto-generated by gen_target.sh based on msg_target_template.txt
 // To modify it, modify msg_target_template.txt and run gen_target.sh instead.
 
+#![cfg_attr(rustfmt, rustfmt_skip)]
+
 use crate::msg_targets::utils::VecWriter;
 use crate::utils::test_logger;
 
index 1c90eefdb32a9f1949ff80cfaa33a1cdd54904a8..52b9ee084866662f10da99d7a346b2eeb7004e85 100644 (file)
@@ -10,6 +10,8 @@
 // This file is auto-generated by gen_target.sh based on msg_target_template.txt
 // To modify it, modify msg_target_template.txt and run gen_target.sh instead.
 
+#![cfg_attr(rustfmt, rustfmt_skip)]
+
 use crate::msg_targets::utils::VecWriter;
 use crate::utils::test_logger;
 
index fe2fb40514384c0d1d12a1badc61404e037dac95..6b59636780b1679478995318b1480f68109973bb 100644 (file)
@@ -10,6 +10,8 @@
 // This file is auto-generated by gen_target.sh based on msg_target_template.txt
 // To modify it, modify msg_target_template.txt and run gen_target.sh instead.
 
+#![cfg_attr(rustfmt, rustfmt_skip)]
+
 use crate::msg_targets::utils::VecWriter;
 use crate::utils::test_logger;
 
index bd8fa59d157f3bb2d1c937dca45b9151c63ec525..c15915fd1a8229b41877c235ecdf380bc60c394c 100644 (file)
@@ -10,6 +10,8 @@
 // This file is auto-generated by gen_target.sh based on msg_target_template.txt
 // To modify it, modify msg_target_template.txt and run gen_target.sh instead.
 
+#![cfg_attr(rustfmt, rustfmt_skip)]
+
 use crate::msg_targets::utils::VecWriter;
 use crate::utils::test_logger;
 
index 43a3e0f3ddce834f518a8e06919b470db77db719..3cb94af6c2345cdcbc0b19252cdd083da016eed9 100644 (file)
@@ -10,6 +10,8 @@
 // This file is auto-generated by gen_target.sh based on msg_target_template.txt
 // To modify it, modify msg_target_template.txt and run gen_target.sh instead.
 
+#![cfg_attr(rustfmt, rustfmt_skip)]
+
 use crate::msg_targets::utils::VecWriter;
 use crate::utils::test_logger;
 
index dc765c76b19d5017983a0ae3ab8670a3fe61f5be..a53459997f94d7d195b01c234b8cdc404a02f1cb 100644 (file)
@@ -10,6 +10,8 @@
 // This file is auto-generated by gen_target.sh based on msg_target_template.txt
 // To modify it, modify msg_target_template.txt and run gen_target.sh instead.
 
+#![cfg_attr(rustfmt, rustfmt_skip)]
+
 use crate::msg_targets::utils::VecWriter;
 use crate::utils::test_logger;
 
index 9190c98e8822815947b7815f9123476b5e8d3f26..26f2d7524cdf4100630ca946ed71bfb3f19b3429 100644 (file)
@@ -10,6 +10,8 @@
 // This file is auto-generated by gen_target.sh based on msg_target_template.txt
 // To modify it, modify msg_target_template.txt and run gen_target.sh instead.
 
+#![cfg_attr(rustfmt, rustfmt_skip)]
+
 use crate::msg_targets::utils::VecWriter;
 use crate::utils::test_logger;
 
index 26133f7d1dbf4202b0c6f554456aa0b97c19edd4..77c4cfdaae3aea36bdda0e8f098b3707a4bdf597 100644 (file)
@@ -10,6 +10,8 @@
 // This file is auto-generated by gen_target.sh based on msg_target_template.txt
 // To modify it, modify msg_target_template.txt and run gen_target.sh instead.
 
+#![cfg_attr(rustfmt, rustfmt_skip)]
+
 use crate::msg_targets::utils::VecWriter;
 use crate::utils::test_logger;
 
index e6a18d2561ca87108727333ba99ef40de6010d44..f203da0562cb33816ce2572a2d9d0d91e2b60d84 100644 (file)
@@ -10,6 +10,8 @@
 // This file is auto-generated by gen_target.sh based on msg_target_template.txt
 // To modify it, modify msg_target_template.txt and run gen_target.sh instead.
 
+#![cfg_attr(rustfmt, rustfmt_skip)]
+
 use crate::msg_targets::utils::VecWriter;
 use crate::utils::test_logger;
 
index cc77c198bb71ab6926f0f18065067c05810fd7aa..65949d273da7ec69639520aa91820174391a24c5 100644 (file)
@@ -10,6 +10,8 @@
 // This file is auto-generated by gen_target.sh based on msg_target_template.txt
 // To modify it, modify msg_target_template.txt and run gen_target.sh instead.
 
+#![cfg_attr(rustfmt, rustfmt_skip)]
+
 use crate::msg_targets::utils::VecWriter;
 use crate::utils::test_logger;
 
index 39e340fd40b35c03802aa9f5ddc8772a2ec06a26..02e762ade70d0545237f6c11272f219664beab44 100644 (file)
@@ -10,6 +10,8 @@
 // This file is auto-generated by gen_target.sh based on msg_target_template.txt
 // To modify it, modify msg_target_template.txt and run gen_target.sh instead.
 
+#![cfg_attr(rustfmt, rustfmt_skip)]
+
 use crate::msg_targets::utils::VecWriter;
 use crate::utils::test_logger;
 
index be2029194a71ef7215b27f721ab6259c6970c1f1..87845cf28aaf26ed81cf8aa8c438a5641557ab3c 100644 (file)
@@ -10,6 +10,8 @@
 // This file is auto-generated by gen_target.sh based on msg_target_template.txt
 // To modify it, modify msg_target_template.txt and run gen_target.sh instead.
 
+#![cfg_attr(rustfmt, rustfmt_skip)]
+
 use crate::msg_targets::utils::VecWriter;
 use crate::utils::test_logger;
 
index c361b654675c4978c98d294e25f607d79dce20d8..c80df485040c6121b7b9aa301eb0ea4b6b11c7ee 100644 (file)
@@ -10,6 +10,8 @@
 // This file is auto-generated by gen_target.sh based on msg_target_template.txt
 // To modify it, modify msg_target_template.txt and run gen_target.sh instead.
 
+#![cfg_attr(rustfmt, rustfmt_skip)]
+
 use crate::msg_targets::utils::VecWriter;
 use crate::utils::test_logger;
 
index 9931bfcfb72d7eb58f68debcc39c6dcf9c4b53d4..41fd1ed9c2751d36107157fd97a6bec9a48a62f6 100644 (file)
@@ -10,6 +10,8 @@
 // This file is auto-generated by gen_target.sh based on msg_target_template.txt
 // To modify it, modify msg_target_template.txt and run gen_target.sh instead.
 
+#![cfg_attr(rustfmt, rustfmt_skip)]
+
 use crate::msg_targets::utils::VecWriter;
 use crate::utils::test_logger;
 
index f212b59cd6a722ecae6c09726648a6a87770a571..8ae0c61034a44e1d7e8679b79913d0dd272e4149 100644 (file)
@@ -10,6 +10,8 @@
 // This file is auto-generated by gen_target.sh based on msg_target_template.txt
 // To modify it, modify msg_target_template.txt and run gen_target.sh instead.
 
+#![cfg_attr(rustfmt, rustfmt_skip)]
+
 use crate::msg_targets::utils::VecWriter;
 use crate::utils::test_logger;
 
index 49b23218fa1880b02b6c65e2b6b877f0b412ef71..04511ed599f44212a402ebdb19094747998101dc 100644 (file)
@@ -10,6 +10,8 @@
 // This file is auto-generated by gen_target.sh based on msg_target_template.txt
 // To modify it, modify msg_target_template.txt and run gen_target.sh instead.
 
+#![cfg_attr(rustfmt, rustfmt_skip)]
+
 use crate::msg_targets::utils::VecWriter;
 use crate::utils::test_logger;
 
index c4227b15235f671fd41bf7e4c73f3122e03923e7..4cd1a271284cb0210668fe171673416ee1dc6c96 100644 (file)
@@ -10,6 +10,8 @@
 // This file is auto-generated by gen_target.sh based on msg_target_template.txt
 // To modify it, modify msg_target_template.txt and run gen_target.sh instead.
 
+#![cfg_attr(rustfmt, rustfmt_skip)]
+
 use crate::msg_targets::utils::VecWriter;
 use crate::utils::test_logger;
 
index ea021dc60ac49032b5de564136faf1a71e74bb59..eab0a747ea87023ff3218a4ae34d18ef0dd3662e 100644 (file)
@@ -10,6 +10,8 @@
 // This file is auto-generated by gen_target.sh based on msg_target_template.txt
 // To modify it, modify msg_target_template.txt and run gen_target.sh instead.
 
+#![cfg_attr(rustfmt, rustfmt_skip)]
+
 use crate::msg_targets::utils::VecWriter;
 use crate::utils::test_logger;
 
index fe69ad41b8d1d9178d5c0bc584479bda285e2671..1f934eac27440e746de186f4d61e85c841082407 100644 (file)
@@ -10,6 +10,8 @@
 // This file is auto-generated by gen_target.sh based on msg_target_template.txt
 // To modify it, modify msg_target_template.txt and run gen_target.sh instead.
 
+#![cfg_attr(rustfmt, rustfmt_skip)]
+
 use crate::msg_targets::utils::VecWriter;
 use crate::utils::test_logger;
 
index 6c09d4d9f41deb111856157f1d40b64dedf45875..a9e0e8b2ef1e0e68d42d22a24beaab7ca72a12a2 100644 (file)
@@ -10,6 +10,8 @@
 // This file is auto-generated by gen_target.sh based on msg_target_template.txt
 // To modify it, modify msg_target_template.txt and run gen_target.sh instead.
 
+#![cfg_attr(rustfmt, rustfmt_skip)]
+
 use crate::msg_targets::utils::VecWriter;
 use crate::utils::test_logger;
 
index 54392d48cda7297f6f3310b6b010b3048e55da8e..17dc063adc222dc9737f9f1d715b61bcba335c59 100644 (file)
@@ -10,6 +10,8 @@
 // This file is auto-generated by gen_target.sh based on msg_target_template.txt
 // To modify it, modify msg_target_template.txt and run gen_target.sh instead.
 
+#![cfg_attr(rustfmt, rustfmt_skip)]
+
 use crate::msg_targets::utils::VecWriter;
 use crate::utils::test_logger;
 
index e8edf4f4dd5eaf2eae43b4758a07110059d9c5cd..45a2616243a272726bc1a1a452375895968bfa2d 100644 (file)
@@ -10,6 +10,8 @@
 // This file is auto-generated by gen_target.sh based on msg_target_template.txt
 // To modify it, modify msg_target_template.txt and run gen_target.sh instead.
 
+#![cfg_attr(rustfmt, rustfmt_skip)]
+
 use crate::msg_targets::utils::VecWriter;
 use crate::utils::test_logger;
 
index b93cc60b505ec3f77ac95474e929c66c7cb8524c..e338beeee2f162bc102faba070bf3fa062a8e183 100644 (file)
@@ -10,6 +10,8 @@
 // This file is auto-generated by gen_target.sh based on msg_target_template.txt
 // To modify it, modify msg_target_template.txt and run gen_target.sh instead.
 
+#![cfg_attr(rustfmt, rustfmt_skip)]
+
 use crate::msg_targets::utils::VecWriter;
 use crate::utils::test_logger;
 
index 24718d54adefe0e1a1996c86f88452c04b0ff77a..6c1914f03ca9e58d759eb487bc7570ac13081ba6 100644 (file)
@@ -10,6 +10,8 @@
 // This file is auto-generated by gen_target.sh based on msg_target_template.txt
 // To modify it, modify msg_target_template.txt and run gen_target.sh instead.
 
+#![cfg_attr(rustfmt, rustfmt_skip)]
+
 use crate::msg_targets::utils::VecWriter;
 use crate::utils::test_logger;
 
index 92661537bf765d1b93ddf18c39912a672d32128e..991dde925f8964f48cac525b4a246b8285b76ed6 100644 (file)
@@ -10,6 +10,8 @@
 // This file is auto-generated by gen_target.sh based on msg_target_template.txt
 // To modify it, modify msg_target_template.txt and run gen_target.sh instead.
 
+#![cfg_attr(rustfmt, rustfmt_skip)]
+
 use crate::msg_targets::utils::VecWriter;
 use crate::utils::test_logger;
 
index 7f9463e2731c7911196247dc6cfb07b6be3e4006..61e3f30b95c67f908b44348407129543769a4b57 100644 (file)
@@ -10,6 +10,8 @@
 // This file is auto-generated by gen_target.sh based on msg_target_template.txt
 // To modify it, modify msg_target_template.txt and run gen_target.sh instead.
 
+#![cfg_attr(rustfmt, rustfmt_skip)]
+
 use crate::msg_targets::utils::VecWriter;
 use crate::utils::test_logger;
 
index a5bcf4111f6dbabe8ae4f14c3eb137ebafdc4b8b..0e1a456667746f383dce42fcfe6300f4148b343c 100644 (file)
@@ -10,6 +10,8 @@
 // This file is auto-generated by gen_target.sh based on msg_target_template.txt
 // To modify it, modify msg_target_template.txt and run gen_target.sh instead.
 
+#![cfg_attr(rustfmt, rustfmt_skip)]
+
 use crate::msg_targets::utils::VecWriter;
 use crate::utils::test_logger;
 
index 6325f3bf10d07bab3469b018ab106c7c732ec1d7..5fa474cbf02f291c9b66194133111c224228fcab 100644 (file)
@@ -29,81 +29,73 @@ impl Writer for VecWriter {
 // entirely
 #[macro_export]
 macro_rules! test_msg {
-       ($MsgType: path, $data: ident) => {
-               {
-                       use lightning::util::ser::{Writeable, Readable};
-                       let mut r = ::std::io::Cursor::new($data);
-                       if let Ok(msg) = <$MsgType as Readable>::read(&mut r) {
-                               let p = r.position() as usize;
-                               let mut w = VecWriter(Vec::new());
-                               msg.write(&mut w).unwrap();
+       ($MsgType: path, $data: ident) => {{
+               use lightning::util::ser::{Readable, Writeable};
+               let mut r = ::std::io::Cursor::new($data);
+               if let Ok(msg) = <$MsgType as Readable>::read(&mut r) {
+                       let p = r.position() as usize;
+                       let mut w = VecWriter(Vec::new());
+                       msg.write(&mut w).unwrap();
 
-                               assert_eq!(w.0.len(), p);
-                               assert_eq!(msg.serialized_length(), p);
-                               assert_eq!(&r.into_inner()[..p], &w.0[..p]);
-                       }
+                       assert_eq!(w.0.len(), p);
+                       assert_eq!(msg.serialized_length(), p);
+                       assert_eq!(&r.into_inner()[..p], &w.0[..p]);
                }
-       }
+       }};
 }
 
 // Tests a message that may lose data on roundtrip, but shoulnd't lose data compared to our
 // re-serialization.
 #[macro_export]
 macro_rules! test_msg_simple {
-       ($MsgType: path, $data: ident) => {
-               {
-                       use lightning::util::ser::{Writeable, Readable};
-                       let mut r = ::std::io::Cursor::new($data);
-                       if let Ok(msg) = <$MsgType as Readable>::read(&mut r) {
-                               let mut w = VecWriter(Vec::new());
-                               msg.write(&mut w).unwrap();
-                               assert_eq!(msg.serialized_length(), w.0.len());
+       ($MsgType: path, $data: ident) => {{
+               use lightning::util::ser::{Readable, Writeable};
+               let mut r = ::std::io::Cursor::new($data);
+               if let Ok(msg) = <$MsgType as Readable>::read(&mut r) {
+                       let mut w = VecWriter(Vec::new());
+                       msg.write(&mut w).unwrap();
+                       assert_eq!(msg.serialized_length(), w.0.len());
 
-                               let msg = <$MsgType as Readable>::read(&mut ::std::io::Cursor::new(&w.0)).unwrap();
-                               let mut w_two = VecWriter(Vec::new());
-                               msg.write(&mut w_two).unwrap();
-                               assert_eq!(&w.0[..], &w_two.0[..]);
-                       }
+                       let msg = <$MsgType as Readable>::read(&mut ::std::io::Cursor::new(&w.0)).unwrap();
+                       let mut w_two = VecWriter(Vec::new());
+                       msg.write(&mut w_two).unwrap();
+                       assert_eq!(&w.0[..], &w_two.0[..]);
                }
-       }
+       }};
 }
 
 // Tests a message that must survive roundtrip exactly, and must exactly empty the read buffer and
 // split it back out on re-serialization.
 #[macro_export]
 macro_rules! test_msg_exact {
-       ($MsgType: path, $data: ident) => {
-               {
-                       use lightning::util::ser::{Writeable, Readable};
-                       let mut r = ::std::io::Cursor::new($data);
-                       if let Ok(msg) = <$MsgType as Readable>::read(&mut r) {
-                               let mut w = VecWriter(Vec::new());
-                               msg.write(&mut w).unwrap();
-                               assert_eq!(&r.into_inner()[..], &w.0[..]);
-                               assert_eq!(msg.serialized_length(), w.0.len());
-                       }
+       ($MsgType: path, $data: ident) => {{
+               use lightning::util::ser::{Readable, Writeable};
+               let mut r = ::std::io::Cursor::new($data);
+               if let Ok(msg) = <$MsgType as Readable>::read(&mut r) {
+                       let mut w = VecWriter(Vec::new());
+                       msg.write(&mut w).unwrap();
+                       assert_eq!(&r.into_inner()[..], &w.0[..]);
+                       assert_eq!(msg.serialized_length(), w.0.len());
                }
-       }
+       }};
 }
 
 // Tests a message that must survive roundtrip exactly, modulo one "hole" which may be set to
 // any value on re-serialization.
 #[macro_export]
 macro_rules! test_msg_hole {
-       ($MsgType: path, $data: ident, $hole: expr, $hole_len: expr) => {
-               {
-                       use lightning::util::ser::{Writeable, Readable};
-                       let mut r = ::std::io::Cursor::new($data);
-                       if let Ok(msg) = <$MsgType as Readable>::read(&mut r) {
-                               let mut w = VecWriter(Vec::new());
-                               msg.write(&mut w).unwrap();
-                               let p = w.0.len() as usize;
-                               assert_eq!(msg.serialized_length(), p);
+       ($MsgType: path, $data: ident, $hole: expr, $hole_len: expr) => {{
+               use lightning::util::ser::{Readable, Writeable};
+               let mut r = ::std::io::Cursor::new($data);
+               if let Ok(msg) = <$MsgType as Readable>::read(&mut r) {
+                       let mut w = VecWriter(Vec::new());
+                       msg.write(&mut w).unwrap();
+                       let p = w.0.len() as usize;
+                       assert_eq!(msg.serialized_length(), p);
 
-                               assert_eq!(w.0.len(), p);
-                               assert_eq!(&r.get_ref()[..$hole], &w.0[..$hole]);
-                               assert_eq!(&r.get_ref()[$hole+$hole_len..p], &w.0[$hole+$hole_len..]);
-                       }
+                       assert_eq!(w.0.len(), p);
+                       assert_eq!(&r.get_ref()[..$hole], &w.0[..$hole]);
+                       assert_eq!(&r.get_ref()[$hole + $hole_len..p], &w.0[$hole + $hole_len..]);
                }
-       }
+       }};
 }
index 5fb910e7cfefb833d57a27a735bbbc724c1b94f3..c94d48bfe00d2d8ed94e8de46d2f5d1140088eb2 100644 (file)
@@ -1,54 +1,6 @@
 ./bench/benches/bench.rs
 ./fuzz/src/chanmon_consistency.rs
 ./fuzz/src/full_stack.rs
-./fuzz/src/msg_targets/mod.rs
-./fuzz/src/msg_targets/msg_accept_channel.rs
-./fuzz/src/msg_targets/msg_accept_channel_v2.rs
-./fuzz/src/msg_targets/msg_announcement_signatures.rs
-./fuzz/src/msg_targets/msg_channel_announcement.rs
-./fuzz/src/msg_targets/msg_channel_details.rs
-./fuzz/src/msg_targets/msg_channel_ready.rs
-./fuzz/src/msg_targets/msg_channel_reestablish.rs
-./fuzz/src/msg_targets/msg_channel_update.rs
-./fuzz/src/msg_targets/msg_closing_signed.rs
-./fuzz/src/msg_targets/msg_commitment_signed.rs
-./fuzz/src/msg_targets/msg_decoded_onion_error_packet.rs
-./fuzz/src/msg_targets/msg_error_message.rs
-./fuzz/src/msg_targets/msg_funding_created.rs
-./fuzz/src/msg_targets/msg_funding_signed.rs
-./fuzz/src/msg_targets/msg_gossip_timestamp_filter.rs
-./fuzz/src/msg_targets/msg_init.rs
-./fuzz/src/msg_targets/msg_node_announcement.rs
-./fuzz/src/msg_targets/msg_open_channel.rs
-./fuzz/src/msg_targets/msg_open_channel_v2.rs
-./fuzz/src/msg_targets/msg_ping.rs
-./fuzz/src/msg_targets/msg_pong.rs
-./fuzz/src/msg_targets/msg_query_channel_range.rs
-./fuzz/src/msg_targets/msg_query_short_channel_ids.rs
-./fuzz/src/msg_targets/msg_reply_channel_range.rs
-./fuzz/src/msg_targets/msg_reply_short_channel_ids_end.rs
-./fuzz/src/msg_targets/msg_revoke_and_ack.rs
-./fuzz/src/msg_targets/msg_shutdown.rs
-./fuzz/src/msg_targets/msg_splice.rs
-./fuzz/src/msg_targets/msg_splice_ack.rs
-./fuzz/src/msg_targets/msg_splice_locked.rs
-./fuzz/src/msg_targets/msg_stfu.rs
-./fuzz/src/msg_targets/msg_tx_abort.rs
-./fuzz/src/msg_targets/msg_tx_ack_rbf.rs
-./fuzz/src/msg_targets/msg_tx_add_input.rs
-./fuzz/src/msg_targets/msg_tx_add_output.rs
-./fuzz/src/msg_targets/msg_tx_complete.rs
-./fuzz/src/msg_targets/msg_tx_init_rbf.rs
-./fuzz/src/msg_targets/msg_tx_remove_input.rs
-./fuzz/src/msg_targets/msg_tx_remove_output.rs
-./fuzz/src/msg_targets/msg_tx_signatures.rs
-./fuzz/src/msg_targets/msg_update_add_htlc.rs
-./fuzz/src/msg_targets/msg_update_fail_htlc.rs
-./fuzz/src/msg_targets/msg_update_fail_malformed_htlc.rs
-./fuzz/src/msg_targets/msg_update_fee.rs
-./fuzz/src/msg_targets/msg_update_fulfill_htlc.rs
-./fuzz/src/msg_targets/msg_warning_message.rs
-./fuzz/src/msg_targets/utils.rs
 ./fuzz/src/offer_deser.rs
 ./fuzz/src/onion_hop_data.rs
 ./fuzz/src/onion_message.rs