Loading rust-runtime/aws-smithy-eventstream/Cargo.toml +3 −2 Original line number Diff line number Diff line Loading @@ -8,10 +8,11 @@ license = "Apache-2.0" repository = "https://github.com/awslabs/smithy-rs" [features] derive-arbitrary = ["arbitrary"] derive-arbitrary = ["arbitrary", "derive_arbitrary"] [dependencies] arbitrary = { version = "=1.1.3", optional = true, features = ["derive"] } # 1.1.4 requires Rust 1.63 to compile derive_arbitrary = { version = "=1.1.6", optional = true } # 1.2.0 requires Rust 1.63 to compile arbitrary = { version = "=1.1.3", optional = true } # 1.1.4 requires Rust 1.63 to compile aws-smithy-types = { path = "../aws-smithy-types" } bytes = "1" crc32fast = "1.3" Loading rust-runtime/aws-smithy-eventstream/fuzz/Cargo.toml +2 −1 Original line number Diff line number Diff line Loading @@ -9,7 +9,8 @@ edition = "2021" cargo-fuzz = true [dependencies] arbitrary = { version = "=1.1.3", optional = true, features = ["derive"] } # 1.1.4 requires Rust 1.63 to compile derive_arbitrary = "=1.1.6" # 1.2.0 requires Rust 1.63 to compile arbitrary = "=1.1.3" # 1.1.4 requires Rust 1.63 to compile aws-smithy-types = { path = "../../aws-smithy-types" } bytes = "1" crc32fast = "1" Loading rust-runtime/aws-smithy-eventstream/fuzz/fuzz_targets/corrected_prelude_crc.rs +1 −2 Original line number Diff line number Diff line Loading @@ -5,13 +5,12 @@ #![no_main] use arbitrary::Arbitrary; use aws_smithy_eventstream::frame::Message; use bytes::BufMut; use crc32fast::Hasher as Crc; use libfuzzer_sys::fuzz_target; #[derive(Arbitrary, Debug)] #[derive(derive_arbitrary::Arbitrary, Debug)] struct Input { headers: Vec<u8>, payload: Vec<u8>, Loading rust-runtime/aws-smithy-eventstream/fuzz/fuzz_targets/prelude.rs +1 −2 Original line number Diff line number Diff line Loading @@ -5,13 +5,12 @@ #![no_main] use arbitrary::Arbitrary; use aws_smithy_eventstream::frame::{Header, HeaderValue, Message}; use bytes::{Buf, BufMut}; use crc32fast::Hasher as Crc; use libfuzzer_sys::fuzz_target; #[derive(Arbitrary, Debug)] #[derive(derive_arbitrary::Arbitrary, Debug)] struct Input { total_len: u32, header_len: u32, Loading rust-runtime/aws-smithy-eventstream/src/frame.rs +1 −1 Original line number Diff line number Diff line Loading @@ -301,7 +301,7 @@ pub use value::HeaderValue; /// Event Stream header. #[non_exhaustive] #[derive(Clone, Debug, PartialEq)] #[cfg_attr(feature = "derive-arbitrary", derive(arbitrary::Arbitrary))] #[cfg_attr(feature = "derive-arbitrary", derive(derive_arbitrary::Arbitrary))] pub struct Header { name: StrBytes, value: HeaderValue, Loading Loading
rust-runtime/aws-smithy-eventstream/Cargo.toml +3 −2 Original line number Diff line number Diff line Loading @@ -8,10 +8,11 @@ license = "Apache-2.0" repository = "https://github.com/awslabs/smithy-rs" [features] derive-arbitrary = ["arbitrary"] derive-arbitrary = ["arbitrary", "derive_arbitrary"] [dependencies] arbitrary = { version = "=1.1.3", optional = true, features = ["derive"] } # 1.1.4 requires Rust 1.63 to compile derive_arbitrary = { version = "=1.1.6", optional = true } # 1.2.0 requires Rust 1.63 to compile arbitrary = { version = "=1.1.3", optional = true } # 1.1.4 requires Rust 1.63 to compile aws-smithy-types = { path = "../aws-smithy-types" } bytes = "1" crc32fast = "1.3" Loading
rust-runtime/aws-smithy-eventstream/fuzz/Cargo.toml +2 −1 Original line number Diff line number Diff line Loading @@ -9,7 +9,8 @@ edition = "2021" cargo-fuzz = true [dependencies] arbitrary = { version = "=1.1.3", optional = true, features = ["derive"] } # 1.1.4 requires Rust 1.63 to compile derive_arbitrary = "=1.1.6" # 1.2.0 requires Rust 1.63 to compile arbitrary = "=1.1.3" # 1.1.4 requires Rust 1.63 to compile aws-smithy-types = { path = "../../aws-smithy-types" } bytes = "1" crc32fast = "1" Loading
rust-runtime/aws-smithy-eventstream/fuzz/fuzz_targets/corrected_prelude_crc.rs +1 −2 Original line number Diff line number Diff line Loading @@ -5,13 +5,12 @@ #![no_main] use arbitrary::Arbitrary; use aws_smithy_eventstream::frame::Message; use bytes::BufMut; use crc32fast::Hasher as Crc; use libfuzzer_sys::fuzz_target; #[derive(Arbitrary, Debug)] #[derive(derive_arbitrary::Arbitrary, Debug)] struct Input { headers: Vec<u8>, payload: Vec<u8>, Loading
rust-runtime/aws-smithy-eventstream/fuzz/fuzz_targets/prelude.rs +1 −2 Original line number Diff line number Diff line Loading @@ -5,13 +5,12 @@ #![no_main] use arbitrary::Arbitrary; use aws_smithy_eventstream::frame::{Header, HeaderValue, Message}; use bytes::{Buf, BufMut}; use crc32fast::Hasher as Crc; use libfuzzer_sys::fuzz_target; #[derive(Arbitrary, Debug)] #[derive(derive_arbitrary::Arbitrary, Debug)] struct Input { total_len: u32, header_len: u32, Loading
rust-runtime/aws-smithy-eventstream/src/frame.rs +1 −1 Original line number Diff line number Diff line Loading @@ -301,7 +301,7 @@ pub use value::HeaderValue; /// Event Stream header. #[non_exhaustive] #[derive(Clone, Debug, PartialEq)] #[cfg_attr(feature = "derive-arbitrary", derive(arbitrary::Arbitrary))] #[cfg_attr(feature = "derive-arbitrary", derive(derive_arbitrary::Arbitrary))] pub struct Header { name: StrBytes, value: HeaderValue, Loading