Unverified Commit 03b83473 authored by John DiSanti's avatar John DiSanti Committed by GitHub
Browse files

Pin `derive_arbitrary` version (#1887)

parent e74ecf34
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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"
+2 −1
Original line number Diff line number Diff line
@@ -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"
+1 −2
Original line number Diff line number Diff line
@@ -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>,
+1 −2
Original line number Diff line number Diff line
@@ -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,
+1 −1
Original line number Diff line number Diff line
@@ -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,