From: Elias Rohrer Date: Thu, 6 Jun 2024 10:32:50 +0000 (+0200) Subject: `rustfmt`: `fuzz/src/bin/*` X-Git-Tag: v0.0.124-beta~91^2~15 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=2bcdad779a8a6968078769c1770aea04f6bf8add;p=rust-lightning `rustfmt`: `fuzz/src/bin/*` --- diff --git a/fuzz/src/bin/base32_target.rs b/fuzz/src/bin/base32_target.rs index cb8620df3..7937f3085 100644 --- a/fuzz/src/bin/base32_target.rs +++ b/fuzz/src/bin/base32_target.rs @@ -11,6 +11,7 @@ // To modify it, modify target_template.txt and run gen_target.sh instead. #![cfg_attr(feature = "libfuzzer_fuzz", no_main)] +#![cfg_attr(rustfmt, rustfmt_skip)] #[cfg(not(fuzzing))] compile_error!("Fuzz targets need cfg=fuzzing"); diff --git a/fuzz/src/bin/bech32_parse_target.rs b/fuzz/src/bin/bech32_parse_target.rs index d05ad9819..62f588d31 100644 --- a/fuzz/src/bin/bech32_parse_target.rs +++ b/fuzz/src/bin/bech32_parse_target.rs @@ -11,6 +11,7 @@ // To modify it, modify target_template.txt and run gen_target.sh instead. #![cfg_attr(feature = "libfuzzer_fuzz", no_main)] +#![cfg_attr(rustfmt, rustfmt_skip)] #[cfg(not(fuzzing))] compile_error!("Fuzz targets need cfg=fuzzing"); diff --git a/fuzz/src/bin/bolt11_deser_target.rs b/fuzz/src/bin/bolt11_deser_target.rs index 30091c36e..f79140ae5 100644 --- a/fuzz/src/bin/bolt11_deser_target.rs +++ b/fuzz/src/bin/bolt11_deser_target.rs @@ -11,6 +11,7 @@ // To modify it, modify target_template.txt and run gen_target.sh instead. #![cfg_attr(feature = "libfuzzer_fuzz", no_main)] +#![cfg_attr(rustfmt, rustfmt_skip)] #[cfg(not(fuzzing))] compile_error!("Fuzz targets need cfg=fuzzing"); diff --git a/fuzz/src/bin/chanmon_consistency_target.rs b/fuzz/src/bin/chanmon_consistency_target.rs index 0b03b43c8..c4788b0c1 100644 --- a/fuzz/src/bin/chanmon_consistency_target.rs +++ b/fuzz/src/bin/chanmon_consistency_target.rs @@ -11,6 +11,7 @@ // To modify it, modify target_template.txt and run gen_target.sh instead. #![cfg_attr(feature = "libfuzzer_fuzz", no_main)] +#![cfg_attr(rustfmt, rustfmt_skip)] #[cfg(not(fuzzing))] compile_error!("Fuzz targets need cfg=fuzzing"); diff --git a/fuzz/src/bin/chanmon_deser_target.rs b/fuzz/src/bin/chanmon_deser_target.rs index 40bbf260d..e58b80302 100644 --- a/fuzz/src/bin/chanmon_deser_target.rs +++ b/fuzz/src/bin/chanmon_deser_target.rs @@ -11,6 +11,7 @@ // To modify it, modify target_template.txt and run gen_target.sh instead. #![cfg_attr(feature = "libfuzzer_fuzz", no_main)] +#![cfg_attr(rustfmt, rustfmt_skip)] #[cfg(not(fuzzing))] compile_error!("Fuzz targets need cfg=fuzzing"); diff --git a/fuzz/src/bin/fromstr_to_netaddress_target.rs b/fuzz/src/bin/fromstr_to_netaddress_target.rs index 27f7d8ae9..d86d521c7 100644 --- a/fuzz/src/bin/fromstr_to_netaddress_target.rs +++ b/fuzz/src/bin/fromstr_to_netaddress_target.rs @@ -11,6 +11,7 @@ // To modify it, modify target_template.txt and run gen_target.sh instead. #![cfg_attr(feature = "libfuzzer_fuzz", no_main)] +#![cfg_attr(rustfmt, rustfmt_skip)] #[cfg(not(fuzzing))] compile_error!("Fuzz targets need cfg=fuzzing"); diff --git a/fuzz/src/bin/full_stack_target.rs b/fuzz/src/bin/full_stack_target.rs index 1f5238940..33bac418f 100644 --- a/fuzz/src/bin/full_stack_target.rs +++ b/fuzz/src/bin/full_stack_target.rs @@ -11,6 +11,7 @@ // To modify it, modify target_template.txt and run gen_target.sh instead. #![cfg_attr(feature = "libfuzzer_fuzz", no_main)] +#![cfg_attr(rustfmt, rustfmt_skip)] #[cfg(not(fuzzing))] compile_error!("Fuzz targets need cfg=fuzzing"); diff --git a/fuzz/src/bin/indexedmap_target.rs b/fuzz/src/bin/indexedmap_target.rs index 93f7a012f..3830e6a24 100644 --- a/fuzz/src/bin/indexedmap_target.rs +++ b/fuzz/src/bin/indexedmap_target.rs @@ -11,6 +11,7 @@ // To modify it, modify target_template.txt and run gen_target.sh instead. #![cfg_attr(feature = "libfuzzer_fuzz", no_main)] +#![cfg_attr(rustfmt, rustfmt_skip)] #[cfg(not(fuzzing))] compile_error!("Fuzz targets need cfg=fuzzing"); diff --git a/fuzz/src/bin/invoice_deser_target.rs b/fuzz/src/bin/invoice_deser_target.rs index 14aea9527..ed79d246a 100644 --- a/fuzz/src/bin/invoice_deser_target.rs +++ b/fuzz/src/bin/invoice_deser_target.rs @@ -11,6 +11,7 @@ // To modify it, modify target_template.txt and run gen_target.sh instead. #![cfg_attr(feature = "libfuzzer_fuzz", no_main)] +#![cfg_attr(rustfmt, rustfmt_skip)] #[cfg(not(fuzzing))] compile_error!("Fuzz targets need cfg=fuzzing"); diff --git a/fuzz/src/bin/invoice_request_deser_target.rs b/fuzz/src/bin/invoice_request_deser_target.rs index c86dbb1c2..47fd3361f 100644 --- a/fuzz/src/bin/invoice_request_deser_target.rs +++ b/fuzz/src/bin/invoice_request_deser_target.rs @@ -11,6 +11,7 @@ // To modify it, modify target_template.txt and run gen_target.sh instead. #![cfg_attr(feature = "libfuzzer_fuzz", no_main)] +#![cfg_attr(rustfmt, rustfmt_skip)] #[cfg(not(fuzzing))] compile_error!("Fuzz targets need cfg=fuzzing"); diff --git a/fuzz/src/bin/msg_accept_channel_target.rs b/fuzz/src/bin/msg_accept_channel_target.rs index 43ae124b4..0b5fa27bc 100644 --- a/fuzz/src/bin/msg_accept_channel_target.rs +++ b/fuzz/src/bin/msg_accept_channel_target.rs @@ -11,6 +11,7 @@ // To modify it, modify target_template.txt and run gen_target.sh instead. #![cfg_attr(feature = "libfuzzer_fuzz", no_main)] +#![cfg_attr(rustfmt, rustfmt_skip)] #[cfg(not(fuzzing))] compile_error!("Fuzz targets need cfg=fuzzing"); diff --git a/fuzz/src/bin/msg_accept_channel_v2_target.rs b/fuzz/src/bin/msg_accept_channel_v2_target.rs index 012c1b24e..efb02c7ac 100644 --- a/fuzz/src/bin/msg_accept_channel_v2_target.rs +++ b/fuzz/src/bin/msg_accept_channel_v2_target.rs @@ -11,6 +11,7 @@ // To modify it, modify target_template.txt and run gen_target.sh instead. #![cfg_attr(feature = "libfuzzer_fuzz", no_main)] +#![cfg_attr(rustfmt, rustfmt_skip)] #[cfg(not(fuzzing))] compile_error!("Fuzz targets need cfg=fuzzing"); diff --git a/fuzz/src/bin/msg_announcement_signatures_target.rs b/fuzz/src/bin/msg_announcement_signatures_target.rs index 7608f1045..684f1361f 100644 --- a/fuzz/src/bin/msg_announcement_signatures_target.rs +++ b/fuzz/src/bin/msg_announcement_signatures_target.rs @@ -11,6 +11,7 @@ // To modify it, modify target_template.txt and run gen_target.sh instead. #![cfg_attr(feature = "libfuzzer_fuzz", no_main)] +#![cfg_attr(rustfmt, rustfmt_skip)] #[cfg(not(fuzzing))] compile_error!("Fuzz targets need cfg=fuzzing"); diff --git a/fuzz/src/bin/msg_channel_announcement_target.rs b/fuzz/src/bin/msg_channel_announcement_target.rs index cf4c14627..8f326790e 100644 --- a/fuzz/src/bin/msg_channel_announcement_target.rs +++ b/fuzz/src/bin/msg_channel_announcement_target.rs @@ -11,6 +11,7 @@ // To modify it, modify target_template.txt and run gen_target.sh instead. #![cfg_attr(feature = "libfuzzer_fuzz", no_main)] +#![cfg_attr(rustfmt, rustfmt_skip)] #[cfg(not(fuzzing))] compile_error!("Fuzz targets need cfg=fuzzing"); diff --git a/fuzz/src/bin/msg_channel_details_target.rs b/fuzz/src/bin/msg_channel_details_target.rs index 4040a7c00..34f51a30b 100644 --- a/fuzz/src/bin/msg_channel_details_target.rs +++ b/fuzz/src/bin/msg_channel_details_target.rs @@ -11,6 +11,7 @@ // To modify it, modify target_template.txt and run gen_target.sh instead. #![cfg_attr(feature = "libfuzzer_fuzz", no_main)] +#![cfg_attr(rustfmt, rustfmt_skip)] #[cfg(not(fuzzing))] compile_error!("Fuzz targets need cfg=fuzzing"); diff --git a/fuzz/src/bin/msg_channel_ready_target.rs b/fuzz/src/bin/msg_channel_ready_target.rs index f8cfef2df..76733dbec 100644 --- a/fuzz/src/bin/msg_channel_ready_target.rs +++ b/fuzz/src/bin/msg_channel_ready_target.rs @@ -11,6 +11,7 @@ // To modify it, modify target_template.txt and run gen_target.sh instead. #![cfg_attr(feature = "libfuzzer_fuzz", no_main)] +#![cfg_attr(rustfmt, rustfmt_skip)] #[cfg(not(fuzzing))] compile_error!("Fuzz targets need cfg=fuzzing"); diff --git a/fuzz/src/bin/msg_channel_reestablish_target.rs b/fuzz/src/bin/msg_channel_reestablish_target.rs index 3aa6dc231..cdb4f1048 100644 --- a/fuzz/src/bin/msg_channel_reestablish_target.rs +++ b/fuzz/src/bin/msg_channel_reestablish_target.rs @@ -11,6 +11,7 @@ // To modify it, modify target_template.txt and run gen_target.sh instead. #![cfg_attr(feature = "libfuzzer_fuzz", no_main)] +#![cfg_attr(rustfmt, rustfmt_skip)] #[cfg(not(fuzzing))] compile_error!("Fuzz targets need cfg=fuzzing"); diff --git a/fuzz/src/bin/msg_channel_update_target.rs b/fuzz/src/bin/msg_channel_update_target.rs index bb4902dcf..0b567c18b 100644 --- a/fuzz/src/bin/msg_channel_update_target.rs +++ b/fuzz/src/bin/msg_channel_update_target.rs @@ -11,6 +11,7 @@ // To modify it, modify target_template.txt and run gen_target.sh instead. #![cfg_attr(feature = "libfuzzer_fuzz", no_main)] +#![cfg_attr(rustfmt, rustfmt_skip)] #[cfg(not(fuzzing))] compile_error!("Fuzz targets need cfg=fuzzing"); diff --git a/fuzz/src/bin/msg_closing_signed_target.rs b/fuzz/src/bin/msg_closing_signed_target.rs index 0985ab522..1634b109d 100644 --- a/fuzz/src/bin/msg_closing_signed_target.rs +++ b/fuzz/src/bin/msg_closing_signed_target.rs @@ -11,6 +11,7 @@ // To modify it, modify target_template.txt and run gen_target.sh instead. #![cfg_attr(feature = "libfuzzer_fuzz", no_main)] +#![cfg_attr(rustfmt, rustfmt_skip)] #[cfg(not(fuzzing))] compile_error!("Fuzz targets need cfg=fuzzing"); diff --git a/fuzz/src/bin/msg_commitment_signed_target.rs b/fuzz/src/bin/msg_commitment_signed_target.rs index f0b26cdc5..0c00a4ceb 100644 --- a/fuzz/src/bin/msg_commitment_signed_target.rs +++ b/fuzz/src/bin/msg_commitment_signed_target.rs @@ -11,6 +11,7 @@ // To modify it, modify target_template.txt and run gen_target.sh instead. #![cfg_attr(feature = "libfuzzer_fuzz", no_main)] +#![cfg_attr(rustfmt, rustfmt_skip)] #[cfg(not(fuzzing))] compile_error!("Fuzz targets need cfg=fuzzing"); diff --git a/fuzz/src/bin/msg_decoded_onion_error_packet_target.rs b/fuzz/src/bin/msg_decoded_onion_error_packet_target.rs index 5801fbef6..93f3c66b2 100644 --- a/fuzz/src/bin/msg_decoded_onion_error_packet_target.rs +++ b/fuzz/src/bin/msg_decoded_onion_error_packet_target.rs @@ -11,6 +11,7 @@ // To modify it, modify target_template.txt and run gen_target.sh instead. #![cfg_attr(feature = "libfuzzer_fuzz", no_main)] +#![cfg_attr(rustfmt, rustfmt_skip)] #[cfg(not(fuzzing))] compile_error!("Fuzz targets need cfg=fuzzing"); diff --git a/fuzz/src/bin/msg_error_message_target.rs b/fuzz/src/bin/msg_error_message_target.rs index c36e553bf..4840e2bdf 100644 --- a/fuzz/src/bin/msg_error_message_target.rs +++ b/fuzz/src/bin/msg_error_message_target.rs @@ -11,6 +11,7 @@ // To modify it, modify target_template.txt and run gen_target.sh instead. #![cfg_attr(feature = "libfuzzer_fuzz", no_main)] +#![cfg_attr(rustfmt, rustfmt_skip)] #[cfg(not(fuzzing))] compile_error!("Fuzz targets need cfg=fuzzing"); diff --git a/fuzz/src/bin/msg_funding_created_target.rs b/fuzz/src/bin/msg_funding_created_target.rs index 1787e9ddb..f88841167 100644 --- a/fuzz/src/bin/msg_funding_created_target.rs +++ b/fuzz/src/bin/msg_funding_created_target.rs @@ -11,6 +11,7 @@ // To modify it, modify target_template.txt and run gen_target.sh instead. #![cfg_attr(feature = "libfuzzer_fuzz", no_main)] +#![cfg_attr(rustfmt, rustfmt_skip)] #[cfg(not(fuzzing))] compile_error!("Fuzz targets need cfg=fuzzing"); diff --git a/fuzz/src/bin/msg_funding_signed_target.rs b/fuzz/src/bin/msg_funding_signed_target.rs index 1f0da2a8e..42d0316dc 100644 --- a/fuzz/src/bin/msg_funding_signed_target.rs +++ b/fuzz/src/bin/msg_funding_signed_target.rs @@ -11,6 +11,7 @@ // To modify it, modify target_template.txt and run gen_target.sh instead. #![cfg_attr(feature = "libfuzzer_fuzz", no_main)] +#![cfg_attr(rustfmt, rustfmt_skip)] #[cfg(not(fuzzing))] compile_error!("Fuzz targets need cfg=fuzzing"); diff --git a/fuzz/src/bin/msg_gossip_timestamp_filter_target.rs b/fuzz/src/bin/msg_gossip_timestamp_filter_target.rs index fe41f3ddd..0a47f7731 100644 --- a/fuzz/src/bin/msg_gossip_timestamp_filter_target.rs +++ b/fuzz/src/bin/msg_gossip_timestamp_filter_target.rs @@ -11,6 +11,7 @@ // To modify it, modify target_template.txt and run gen_target.sh instead. #![cfg_attr(feature = "libfuzzer_fuzz", no_main)] +#![cfg_attr(rustfmt, rustfmt_skip)] #[cfg(not(fuzzing))] compile_error!("Fuzz targets need cfg=fuzzing"); diff --git a/fuzz/src/bin/msg_init_target.rs b/fuzz/src/bin/msg_init_target.rs index b4872cc15..db0c8a889 100644 --- a/fuzz/src/bin/msg_init_target.rs +++ b/fuzz/src/bin/msg_init_target.rs @@ -11,6 +11,7 @@ // To modify it, modify target_template.txt and run gen_target.sh instead. #![cfg_attr(feature = "libfuzzer_fuzz", no_main)] +#![cfg_attr(rustfmt, rustfmt_skip)] #[cfg(not(fuzzing))] compile_error!("Fuzz targets need cfg=fuzzing"); diff --git a/fuzz/src/bin/msg_node_announcement_target.rs b/fuzz/src/bin/msg_node_announcement_target.rs index a9fe444de..1c20a999a 100644 --- a/fuzz/src/bin/msg_node_announcement_target.rs +++ b/fuzz/src/bin/msg_node_announcement_target.rs @@ -11,6 +11,7 @@ // To modify it, modify target_template.txt and run gen_target.sh instead. #![cfg_attr(feature = "libfuzzer_fuzz", no_main)] +#![cfg_attr(rustfmt, rustfmt_skip)] #[cfg(not(fuzzing))] compile_error!("Fuzz targets need cfg=fuzzing"); diff --git a/fuzz/src/bin/msg_open_channel_target.rs b/fuzz/src/bin/msg_open_channel_target.rs index ff623cda9..fc6df814d 100644 --- a/fuzz/src/bin/msg_open_channel_target.rs +++ b/fuzz/src/bin/msg_open_channel_target.rs @@ -11,6 +11,7 @@ // To modify it, modify target_template.txt and run gen_target.sh instead. #![cfg_attr(feature = "libfuzzer_fuzz", no_main)] +#![cfg_attr(rustfmt, rustfmt_skip)] #[cfg(not(fuzzing))] compile_error!("Fuzz targets need cfg=fuzzing"); diff --git a/fuzz/src/bin/msg_open_channel_v2_target.rs b/fuzz/src/bin/msg_open_channel_v2_target.rs index dfc901f7a..732daed18 100644 --- a/fuzz/src/bin/msg_open_channel_v2_target.rs +++ b/fuzz/src/bin/msg_open_channel_v2_target.rs @@ -11,6 +11,7 @@ // To modify it, modify target_template.txt and run gen_target.sh instead. #![cfg_attr(feature = "libfuzzer_fuzz", no_main)] +#![cfg_attr(rustfmt, rustfmt_skip)] #[cfg(not(fuzzing))] compile_error!("Fuzz targets need cfg=fuzzing"); diff --git a/fuzz/src/bin/msg_ping_target.rs b/fuzz/src/bin/msg_ping_target.rs index bf7c55354..bb1a59b9b 100644 --- a/fuzz/src/bin/msg_ping_target.rs +++ b/fuzz/src/bin/msg_ping_target.rs @@ -11,6 +11,7 @@ // To modify it, modify target_template.txt and run gen_target.sh instead. #![cfg_attr(feature = "libfuzzer_fuzz", no_main)] +#![cfg_attr(rustfmt, rustfmt_skip)] #[cfg(not(fuzzing))] compile_error!("Fuzz targets need cfg=fuzzing"); diff --git a/fuzz/src/bin/msg_pong_target.rs b/fuzz/src/bin/msg_pong_target.rs index a8e4285d1..7a97d93e7 100644 --- a/fuzz/src/bin/msg_pong_target.rs +++ b/fuzz/src/bin/msg_pong_target.rs @@ -11,6 +11,7 @@ // To modify it, modify target_template.txt and run gen_target.sh instead. #![cfg_attr(feature = "libfuzzer_fuzz", no_main)] +#![cfg_attr(rustfmt, rustfmt_skip)] #[cfg(not(fuzzing))] compile_error!("Fuzz targets need cfg=fuzzing"); diff --git a/fuzz/src/bin/msg_query_channel_range_target.rs b/fuzz/src/bin/msg_query_channel_range_target.rs index e07a046cb..4fd3260db 100644 --- a/fuzz/src/bin/msg_query_channel_range_target.rs +++ b/fuzz/src/bin/msg_query_channel_range_target.rs @@ -11,6 +11,7 @@ // To modify it, modify target_template.txt and run gen_target.sh instead. #![cfg_attr(feature = "libfuzzer_fuzz", no_main)] +#![cfg_attr(rustfmt, rustfmt_skip)] #[cfg(not(fuzzing))] compile_error!("Fuzz targets need cfg=fuzzing"); diff --git a/fuzz/src/bin/msg_query_short_channel_ids_target.rs b/fuzz/src/bin/msg_query_short_channel_ids_target.rs index 25fcf311e..63f8c48fb 100644 --- a/fuzz/src/bin/msg_query_short_channel_ids_target.rs +++ b/fuzz/src/bin/msg_query_short_channel_ids_target.rs @@ -11,6 +11,7 @@ // To modify it, modify target_template.txt and run gen_target.sh instead. #![cfg_attr(feature = "libfuzzer_fuzz", no_main)] +#![cfg_attr(rustfmt, rustfmt_skip)] #[cfg(not(fuzzing))] compile_error!("Fuzz targets need cfg=fuzzing"); diff --git a/fuzz/src/bin/msg_reply_channel_range_target.rs b/fuzz/src/bin/msg_reply_channel_range_target.rs index a0b54f691..8e5ce619f 100644 --- a/fuzz/src/bin/msg_reply_channel_range_target.rs +++ b/fuzz/src/bin/msg_reply_channel_range_target.rs @@ -11,6 +11,7 @@ // To modify it, modify target_template.txt and run gen_target.sh instead. #![cfg_attr(feature = "libfuzzer_fuzz", no_main)] +#![cfg_attr(rustfmt, rustfmt_skip)] #[cfg(not(fuzzing))] compile_error!("Fuzz targets need cfg=fuzzing"); diff --git a/fuzz/src/bin/msg_reply_short_channel_ids_end_target.rs b/fuzz/src/bin/msg_reply_short_channel_ids_end_target.rs index 464641e5b..9b9b528ab 100644 --- a/fuzz/src/bin/msg_reply_short_channel_ids_end_target.rs +++ b/fuzz/src/bin/msg_reply_short_channel_ids_end_target.rs @@ -11,6 +11,7 @@ // To modify it, modify target_template.txt and run gen_target.sh instead. #![cfg_attr(feature = "libfuzzer_fuzz", no_main)] +#![cfg_attr(rustfmt, rustfmt_skip)] #[cfg(not(fuzzing))] compile_error!("Fuzz targets need cfg=fuzzing"); diff --git a/fuzz/src/bin/msg_revoke_and_ack_target.rs b/fuzz/src/bin/msg_revoke_and_ack_target.rs index be20070b0..1f401dae7 100644 --- a/fuzz/src/bin/msg_revoke_and_ack_target.rs +++ b/fuzz/src/bin/msg_revoke_and_ack_target.rs @@ -11,6 +11,7 @@ // To modify it, modify target_template.txt and run gen_target.sh instead. #![cfg_attr(feature = "libfuzzer_fuzz", no_main)] +#![cfg_attr(rustfmt, rustfmt_skip)] #[cfg(not(fuzzing))] compile_error!("Fuzz targets need cfg=fuzzing"); diff --git a/fuzz/src/bin/msg_shutdown_target.rs b/fuzz/src/bin/msg_shutdown_target.rs index 9a4cbeb63..c29bb93bb 100644 --- a/fuzz/src/bin/msg_shutdown_target.rs +++ b/fuzz/src/bin/msg_shutdown_target.rs @@ -11,6 +11,7 @@ // To modify it, modify target_template.txt and run gen_target.sh instead. #![cfg_attr(feature = "libfuzzer_fuzz", no_main)] +#![cfg_attr(rustfmt, rustfmt_skip)] #[cfg(not(fuzzing))] compile_error!("Fuzz targets need cfg=fuzzing"); diff --git a/fuzz/src/bin/msg_splice_ack_target.rs b/fuzz/src/bin/msg_splice_ack_target.rs index 15b546b20..9957a8555 100644 --- a/fuzz/src/bin/msg_splice_ack_target.rs +++ b/fuzz/src/bin/msg_splice_ack_target.rs @@ -11,6 +11,7 @@ // To modify it, modify target_template.txt and run gen_target.sh instead. #![cfg_attr(feature = "libfuzzer_fuzz", no_main)] +#![cfg_attr(rustfmt, rustfmt_skip)] #[cfg(not(fuzzing))] compile_error!("Fuzz targets need cfg=fuzzing"); diff --git a/fuzz/src/bin/msg_splice_locked_target.rs b/fuzz/src/bin/msg_splice_locked_target.rs index afc6b1465..d9dfcf956 100644 --- a/fuzz/src/bin/msg_splice_locked_target.rs +++ b/fuzz/src/bin/msg_splice_locked_target.rs @@ -11,6 +11,7 @@ // To modify it, modify target_template.txt and run gen_target.sh instead. #![cfg_attr(feature = "libfuzzer_fuzz", no_main)] +#![cfg_attr(rustfmt, rustfmt_skip)] #[cfg(not(fuzzing))] compile_error!("Fuzz targets need cfg=fuzzing"); diff --git a/fuzz/src/bin/msg_splice_target.rs b/fuzz/src/bin/msg_splice_target.rs index 475c59971..a88b189b4 100644 --- a/fuzz/src/bin/msg_splice_target.rs +++ b/fuzz/src/bin/msg_splice_target.rs @@ -11,6 +11,7 @@ // To modify it, modify target_template.txt and run gen_target.sh instead. #![cfg_attr(feature = "libfuzzer_fuzz", no_main)] +#![cfg_attr(rustfmt, rustfmt_skip)] #[cfg(not(fuzzing))] compile_error!("Fuzz targets need cfg=fuzzing"); diff --git a/fuzz/src/bin/msg_stfu_target.rs b/fuzz/src/bin/msg_stfu_target.rs index 9b75073b8..bdef12d4c 100644 --- a/fuzz/src/bin/msg_stfu_target.rs +++ b/fuzz/src/bin/msg_stfu_target.rs @@ -11,6 +11,7 @@ // To modify it, modify target_template.txt and run gen_target.sh instead. #![cfg_attr(feature = "libfuzzer_fuzz", no_main)] +#![cfg_attr(rustfmt, rustfmt_skip)] #[cfg(not(fuzzing))] compile_error!("Fuzz targets need cfg=fuzzing"); diff --git a/fuzz/src/bin/msg_tx_abort_target.rs b/fuzz/src/bin/msg_tx_abort_target.rs index bbfd4ab81..76f098b1e 100644 --- a/fuzz/src/bin/msg_tx_abort_target.rs +++ b/fuzz/src/bin/msg_tx_abort_target.rs @@ -11,6 +11,7 @@ // To modify it, modify target_template.txt and run gen_target.sh instead. #![cfg_attr(feature = "libfuzzer_fuzz", no_main)] +#![cfg_attr(rustfmt, rustfmt_skip)] #[cfg(not(fuzzing))] compile_error!("Fuzz targets need cfg=fuzzing"); diff --git a/fuzz/src/bin/msg_tx_ack_rbf_target.rs b/fuzz/src/bin/msg_tx_ack_rbf_target.rs index 1d22dcea4..1f549a570 100644 --- a/fuzz/src/bin/msg_tx_ack_rbf_target.rs +++ b/fuzz/src/bin/msg_tx_ack_rbf_target.rs @@ -11,6 +11,7 @@ // To modify it, modify target_template.txt and run gen_target.sh instead. #![cfg_attr(feature = "libfuzzer_fuzz", no_main)] +#![cfg_attr(rustfmt, rustfmt_skip)] #[cfg(not(fuzzing))] compile_error!("Fuzz targets need cfg=fuzzing"); diff --git a/fuzz/src/bin/msg_tx_add_input_target.rs b/fuzz/src/bin/msg_tx_add_input_target.rs index 7a858880e..9b7e1cfe7 100644 --- a/fuzz/src/bin/msg_tx_add_input_target.rs +++ b/fuzz/src/bin/msg_tx_add_input_target.rs @@ -11,6 +11,7 @@ // To modify it, modify target_template.txt and run gen_target.sh instead. #![cfg_attr(feature = "libfuzzer_fuzz", no_main)] +#![cfg_attr(rustfmt, rustfmt_skip)] #[cfg(not(fuzzing))] compile_error!("Fuzz targets need cfg=fuzzing"); diff --git a/fuzz/src/bin/msg_tx_add_output_target.rs b/fuzz/src/bin/msg_tx_add_output_target.rs index 2fcac4beb..b8ad29581 100644 --- a/fuzz/src/bin/msg_tx_add_output_target.rs +++ b/fuzz/src/bin/msg_tx_add_output_target.rs @@ -11,6 +11,7 @@ // To modify it, modify target_template.txt and run gen_target.sh instead. #![cfg_attr(feature = "libfuzzer_fuzz", no_main)] +#![cfg_attr(rustfmt, rustfmt_skip)] #[cfg(not(fuzzing))] compile_error!("Fuzz targets need cfg=fuzzing"); diff --git a/fuzz/src/bin/msg_tx_complete_target.rs b/fuzz/src/bin/msg_tx_complete_target.rs index 9856c2cdf..28b295b0d 100644 --- a/fuzz/src/bin/msg_tx_complete_target.rs +++ b/fuzz/src/bin/msg_tx_complete_target.rs @@ -11,6 +11,7 @@ // To modify it, modify target_template.txt and run gen_target.sh instead. #![cfg_attr(feature = "libfuzzer_fuzz", no_main)] +#![cfg_attr(rustfmt, rustfmt_skip)] #[cfg(not(fuzzing))] compile_error!("Fuzz targets need cfg=fuzzing"); diff --git a/fuzz/src/bin/msg_tx_init_rbf_target.rs b/fuzz/src/bin/msg_tx_init_rbf_target.rs index 88657e110..24fa79331 100644 --- a/fuzz/src/bin/msg_tx_init_rbf_target.rs +++ b/fuzz/src/bin/msg_tx_init_rbf_target.rs @@ -11,6 +11,7 @@ // To modify it, modify target_template.txt and run gen_target.sh instead. #![cfg_attr(feature = "libfuzzer_fuzz", no_main)] +#![cfg_attr(rustfmt, rustfmt_skip)] #[cfg(not(fuzzing))] compile_error!("Fuzz targets need cfg=fuzzing"); diff --git a/fuzz/src/bin/msg_tx_remove_input_target.rs b/fuzz/src/bin/msg_tx_remove_input_target.rs index 02801865f..abe4190a3 100644 --- a/fuzz/src/bin/msg_tx_remove_input_target.rs +++ b/fuzz/src/bin/msg_tx_remove_input_target.rs @@ -11,6 +11,7 @@ // To modify it, modify target_template.txt and run gen_target.sh instead. #![cfg_attr(feature = "libfuzzer_fuzz", no_main)] +#![cfg_attr(rustfmt, rustfmt_skip)] #[cfg(not(fuzzing))] compile_error!("Fuzz targets need cfg=fuzzing"); diff --git a/fuzz/src/bin/msg_tx_remove_output_target.rs b/fuzz/src/bin/msg_tx_remove_output_target.rs index 4e1398135..3d084e004 100644 --- a/fuzz/src/bin/msg_tx_remove_output_target.rs +++ b/fuzz/src/bin/msg_tx_remove_output_target.rs @@ -11,6 +11,7 @@ // To modify it, modify target_template.txt and run gen_target.sh instead. #![cfg_attr(feature = "libfuzzer_fuzz", no_main)] +#![cfg_attr(rustfmt, rustfmt_skip)] #[cfg(not(fuzzing))] compile_error!("Fuzz targets need cfg=fuzzing"); diff --git a/fuzz/src/bin/msg_tx_signatures_target.rs b/fuzz/src/bin/msg_tx_signatures_target.rs index abb3ab82a..fa3b966b4 100644 --- a/fuzz/src/bin/msg_tx_signatures_target.rs +++ b/fuzz/src/bin/msg_tx_signatures_target.rs @@ -11,6 +11,7 @@ // To modify it, modify target_template.txt and run gen_target.sh instead. #![cfg_attr(feature = "libfuzzer_fuzz", no_main)] +#![cfg_attr(rustfmt, rustfmt_skip)] #[cfg(not(fuzzing))] compile_error!("Fuzz targets need cfg=fuzzing"); diff --git a/fuzz/src/bin/msg_update_add_htlc_target.rs b/fuzz/src/bin/msg_update_add_htlc_target.rs index ae8ba13a2..f3c25a375 100644 --- a/fuzz/src/bin/msg_update_add_htlc_target.rs +++ b/fuzz/src/bin/msg_update_add_htlc_target.rs @@ -11,6 +11,7 @@ // To modify it, modify target_template.txt and run gen_target.sh instead. #![cfg_attr(feature = "libfuzzer_fuzz", no_main)] +#![cfg_attr(rustfmt, rustfmt_skip)] #[cfg(not(fuzzing))] compile_error!("Fuzz targets need cfg=fuzzing"); diff --git a/fuzz/src/bin/msg_update_fail_htlc_target.rs b/fuzz/src/bin/msg_update_fail_htlc_target.rs index 8767c7a31..9698ae92c 100644 --- a/fuzz/src/bin/msg_update_fail_htlc_target.rs +++ b/fuzz/src/bin/msg_update_fail_htlc_target.rs @@ -11,6 +11,7 @@ // To modify it, modify target_template.txt and run gen_target.sh instead. #![cfg_attr(feature = "libfuzzer_fuzz", no_main)] +#![cfg_attr(rustfmt, rustfmt_skip)] #[cfg(not(fuzzing))] compile_error!("Fuzz targets need cfg=fuzzing"); diff --git a/fuzz/src/bin/msg_update_fail_malformed_htlc_target.rs b/fuzz/src/bin/msg_update_fail_malformed_htlc_target.rs index 1d5d7daf2..b7f511c5f 100644 --- a/fuzz/src/bin/msg_update_fail_malformed_htlc_target.rs +++ b/fuzz/src/bin/msg_update_fail_malformed_htlc_target.rs @@ -11,6 +11,7 @@ // To modify it, modify target_template.txt and run gen_target.sh instead. #![cfg_attr(feature = "libfuzzer_fuzz", no_main)] +#![cfg_attr(rustfmt, rustfmt_skip)] #[cfg(not(fuzzing))] compile_error!("Fuzz targets need cfg=fuzzing"); diff --git a/fuzz/src/bin/msg_update_fee_target.rs b/fuzz/src/bin/msg_update_fee_target.rs index 207df698f..b021107f1 100644 --- a/fuzz/src/bin/msg_update_fee_target.rs +++ b/fuzz/src/bin/msg_update_fee_target.rs @@ -11,6 +11,7 @@ // To modify it, modify target_template.txt and run gen_target.sh instead. #![cfg_attr(feature = "libfuzzer_fuzz", no_main)] +#![cfg_attr(rustfmt, rustfmt_skip)] #[cfg(not(fuzzing))] compile_error!("Fuzz targets need cfg=fuzzing"); diff --git a/fuzz/src/bin/msg_update_fulfill_htlc_target.rs b/fuzz/src/bin/msg_update_fulfill_htlc_target.rs index f8e265359..d87cd5bd4 100644 --- a/fuzz/src/bin/msg_update_fulfill_htlc_target.rs +++ b/fuzz/src/bin/msg_update_fulfill_htlc_target.rs @@ -11,6 +11,7 @@ // To modify it, modify target_template.txt and run gen_target.sh instead. #![cfg_attr(feature = "libfuzzer_fuzz", no_main)] +#![cfg_attr(rustfmt, rustfmt_skip)] #[cfg(not(fuzzing))] compile_error!("Fuzz targets need cfg=fuzzing"); diff --git a/fuzz/src/bin/offer_deser_target.rs b/fuzz/src/bin/offer_deser_target.rs index 64b2c4460..51cdb09ad 100644 --- a/fuzz/src/bin/offer_deser_target.rs +++ b/fuzz/src/bin/offer_deser_target.rs @@ -11,6 +11,7 @@ // To modify it, modify target_template.txt and run gen_target.sh instead. #![cfg_attr(feature = "libfuzzer_fuzz", no_main)] +#![cfg_attr(rustfmt, rustfmt_skip)] #[cfg(not(fuzzing))] compile_error!("Fuzz targets need cfg=fuzzing"); diff --git a/fuzz/src/bin/onion_hop_data_target.rs b/fuzz/src/bin/onion_hop_data_target.rs index 0043cee63..50d98043d 100644 --- a/fuzz/src/bin/onion_hop_data_target.rs +++ b/fuzz/src/bin/onion_hop_data_target.rs @@ -11,6 +11,7 @@ // To modify it, modify target_template.txt and run gen_target.sh instead. #![cfg_attr(feature = "libfuzzer_fuzz", no_main)] +#![cfg_attr(rustfmt, rustfmt_skip)] #[cfg(not(fuzzing))] compile_error!("Fuzz targets need cfg=fuzzing"); diff --git a/fuzz/src/bin/onion_message_target.rs b/fuzz/src/bin/onion_message_target.rs index 1c28f5608..7bb09477e 100644 --- a/fuzz/src/bin/onion_message_target.rs +++ b/fuzz/src/bin/onion_message_target.rs @@ -11,6 +11,7 @@ // To modify it, modify target_template.txt and run gen_target.sh instead. #![cfg_attr(feature = "libfuzzer_fuzz", no_main)] +#![cfg_attr(rustfmt, rustfmt_skip)] #[cfg(not(fuzzing))] compile_error!("Fuzz targets need cfg=fuzzing"); diff --git a/fuzz/src/bin/peer_crypt_target.rs b/fuzz/src/bin/peer_crypt_target.rs index 8690f2332..0ba0252c9 100644 --- a/fuzz/src/bin/peer_crypt_target.rs +++ b/fuzz/src/bin/peer_crypt_target.rs @@ -11,6 +11,7 @@ // To modify it, modify target_template.txt and run gen_target.sh instead. #![cfg_attr(feature = "libfuzzer_fuzz", no_main)] +#![cfg_attr(rustfmt, rustfmt_skip)] #[cfg(not(fuzzing))] compile_error!("Fuzz targets need cfg=fuzzing"); diff --git a/fuzz/src/bin/process_network_graph_target.rs b/fuzz/src/bin/process_network_graph_target.rs index 5b5d8f816..4ce10e6d4 100644 --- a/fuzz/src/bin/process_network_graph_target.rs +++ b/fuzz/src/bin/process_network_graph_target.rs @@ -11,6 +11,7 @@ // To modify it, modify target_template.txt and run gen_target.sh instead. #![cfg_attr(feature = "libfuzzer_fuzz", no_main)] +#![cfg_attr(rustfmt, rustfmt_skip)] #[cfg(not(fuzzing))] compile_error!("Fuzz targets need cfg=fuzzing"); diff --git a/fuzz/src/bin/refund_deser_target.rs b/fuzz/src/bin/refund_deser_target.rs index fca53dd2d..fea8a9c4c 100644 --- a/fuzz/src/bin/refund_deser_target.rs +++ b/fuzz/src/bin/refund_deser_target.rs @@ -11,6 +11,7 @@ // To modify it, modify target_template.txt and run gen_target.sh instead. #![cfg_attr(feature = "libfuzzer_fuzz", no_main)] +#![cfg_attr(rustfmt, rustfmt_skip)] #[cfg(not(fuzzing))] compile_error!("Fuzz targets need cfg=fuzzing"); diff --git a/fuzz/src/bin/router_target.rs b/fuzz/src/bin/router_target.rs index f9808ebc8..0ebec5494 100644 --- a/fuzz/src/bin/router_target.rs +++ b/fuzz/src/bin/router_target.rs @@ -11,6 +11,7 @@ // To modify it, modify target_template.txt and run gen_target.sh instead. #![cfg_attr(feature = "libfuzzer_fuzz", no_main)] +#![cfg_attr(rustfmt, rustfmt_skip)] #[cfg(not(fuzzing))] compile_error!("Fuzz targets need cfg=fuzzing"); diff --git a/fuzz/src/bin/zbase32_target.rs b/fuzz/src/bin/zbase32_target.rs index e0ad2c5bc..35aa53d1f 100644 --- a/fuzz/src/bin/zbase32_target.rs +++ b/fuzz/src/bin/zbase32_target.rs @@ -11,6 +11,7 @@ // To modify it, modify target_template.txt and run gen_target.sh instead. #![cfg_attr(feature = "libfuzzer_fuzz", no_main)] +#![cfg_attr(rustfmt, rustfmt_skip)] #[cfg(not(fuzzing))] compile_error!("Fuzz targets need cfg=fuzzing"); diff --git a/rustfmt_excluded_files b/rustfmt_excluded_files index 1588b5f98..177a22b77 100644 --- a/rustfmt_excluded_files +++ b/rustfmt_excluded_files @@ -1,67 +1,4 @@ ./bench/benches/bench.rs -./fuzz/src/bin/base32_target.rs -./fuzz/src/bin/bech32_parse_target.rs -./fuzz/src/bin/bolt11_deser_target.rs -./fuzz/src/bin/chanmon_consistency_target.rs -./fuzz/src/bin/chanmon_deser_target.rs -./fuzz/src/bin/fromstr_to_netaddress_target.rs -./fuzz/src/bin/full_stack_target.rs -./fuzz/src/bin/indexedmap_target.rs -./fuzz/src/bin/invoice_deser_target.rs -./fuzz/src/bin/invoice_request_deser_target.rs -./fuzz/src/bin/msg_accept_channel_target.rs -./fuzz/src/bin/msg_accept_channel_v2_target.rs -./fuzz/src/bin/msg_announcement_signatures_target.rs -./fuzz/src/bin/msg_channel_announcement_target.rs -./fuzz/src/bin/msg_channel_details_target.rs -./fuzz/src/bin/msg_channel_ready_target.rs -./fuzz/src/bin/msg_channel_reestablish_target.rs -./fuzz/src/bin/msg_channel_update_target.rs -./fuzz/src/bin/msg_closing_signed_target.rs -./fuzz/src/bin/msg_commitment_signed_target.rs -./fuzz/src/bin/msg_decoded_onion_error_packet_target.rs -./fuzz/src/bin/msg_error_message_target.rs -./fuzz/src/bin/msg_funding_created_target.rs -./fuzz/src/bin/msg_funding_signed_target.rs -./fuzz/src/bin/msg_gossip_timestamp_filter_target.rs -./fuzz/src/bin/msg_init_target.rs -./fuzz/src/bin/msg_node_announcement_target.rs -./fuzz/src/bin/msg_open_channel_target.rs -./fuzz/src/bin/msg_open_channel_v2_target.rs -./fuzz/src/bin/msg_ping_target.rs -./fuzz/src/bin/msg_pong_target.rs -./fuzz/src/bin/msg_query_channel_range_target.rs -./fuzz/src/bin/msg_query_short_channel_ids_target.rs -./fuzz/src/bin/msg_reply_channel_range_target.rs -./fuzz/src/bin/msg_reply_short_channel_ids_end_target.rs -./fuzz/src/bin/msg_revoke_and_ack_target.rs -./fuzz/src/bin/msg_shutdown_target.rs -./fuzz/src/bin/msg_splice_ack_target.rs -./fuzz/src/bin/msg_splice_locked_target.rs -./fuzz/src/bin/msg_splice_target.rs -./fuzz/src/bin/msg_stfu_target.rs -./fuzz/src/bin/msg_tx_abort_target.rs -./fuzz/src/bin/msg_tx_ack_rbf_target.rs -./fuzz/src/bin/msg_tx_add_input_target.rs -./fuzz/src/bin/msg_tx_add_output_target.rs -./fuzz/src/bin/msg_tx_complete_target.rs -./fuzz/src/bin/msg_tx_init_rbf_target.rs -./fuzz/src/bin/msg_tx_remove_input_target.rs -./fuzz/src/bin/msg_tx_remove_output_target.rs -./fuzz/src/bin/msg_tx_signatures_target.rs -./fuzz/src/bin/msg_update_add_htlc_target.rs -./fuzz/src/bin/msg_update_fail_htlc_target.rs -./fuzz/src/bin/msg_update_fail_malformed_htlc_target.rs -./fuzz/src/bin/msg_update_fee_target.rs -./fuzz/src/bin/msg_update_fulfill_htlc_target.rs -./fuzz/src/bin/offer_deser_target.rs -./fuzz/src/bin/onion_hop_data_target.rs -./fuzz/src/bin/onion_message_target.rs -./fuzz/src/bin/peer_crypt_target.rs -./fuzz/src/bin/process_network_graph_target.rs -./fuzz/src/bin/refund_deser_target.rs -./fuzz/src/bin/router_target.rs -./fuzz/src/bin/zbase32_target.rs ./fuzz/src/chanmon_consistency.rs ./fuzz/src/chanmon_deser.rs ./fuzz/src/fromstr_to_netaddress.rs