Skip to content

Commit

Permalink
Add KnownLayout::validate_cast_and_convert_metadata (#349)
Browse files Browse the repository at this point in the history
This method is a core primitive that other parts of the codebase can
build on to validate casts and compute the appropriate pointer metadata
which should result from those casts. Future commits will build on top
of this one to make use of it.

Co-authored-by: Jack Wrenn <jswrenn@amazon.com>
  • Loading branch information
joshlf and jswrenn committed Sep 12, 2023
1 parent 753b19f commit 9803616
Show file tree
Hide file tree
Showing 2 changed files with 424 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ optional = true
zerocopy-derive = { version = "=0.7.3", path = "zerocopy-derive" }

[dev-dependencies]
assert_matches = "1.5"
itertools = "0.11"
rand = { version = "0.8.5", features = ["small_rng"] }
rustversion = "1.0"
static_assertions = "1.1"
Expand Down

0 comments on commit 9803616

Please sign in to comment.