Skip to content

Commit cb43696

Browse files
authored
Merge pull request #111 from FL33TW00D/feature/arbitrary
feature: Arbitrary
2 parents 2c4122d + 6bc4bea commit cb43696

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

Cargo.lock

Lines changed: 21 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ std = ["alloc"]
1919
use-intrinsics = [] # Deprecated
2020
alloc = []
2121
rand_distr = ["dep:rand", "dep:rand_distr"]
22+
arbitrary = ["dep:arbitrary"]
2223

2324
[dependencies]
2425
cfg-if = "1.0.0"
@@ -35,6 +36,7 @@ zerocopy = { version = "0.6.0", default-features = false, optional = true }
3536
rand = { version = "0.8.5", default-features = false, optional = true }
3637
rand_distr = { version = "0.4.3", default-features = false, optional = true }
3738
rkyv = { version = "0.7", optional = true }
39+
arbitrary = { version = "1.3.2", features = ["derive"], optional = true }
3840

3941
[target.'cfg(target_arch = "spirv")'.dependencies]
4042
crunchy = "0.2.2"

src/binary16.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ pub(crate) mod arch;
4343
#[cfg_attr(feature = "bytemuck", derive(Zeroable, Pod))]
4444
#[cfg_attr(feature = "zerocopy", derive(AsBytes, FromBytes))]
4545
#[cfg_attr(kani, derive(kani::Arbitrary))]
46+
#[cfg_attr(feature = "arbitrary", derive(arbitrary::Arbitrary))]
4647
pub struct f16(u16);
4748

4849
impl f16 {

0 commit comments

Comments
 (0)