puns 0.1.3

Type punning proven at compile time: a safe alternative to transmute and to hand-written parsing of bytes
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Runs `examples/executables.rs`.
//!
//! Not built under Miri: an example is a declaration, and the unsafe code it reaches (walks,
//! regions, checksums, getters, splits) is that of the library, which its own tests and `ethernet`
//! run there.

#![cfg(not(miri))]

// As a module of a test, its items are not exported: the names of the fields of ELF headers are
// the ones of the specification.
#[expect(clippy::struct_field_names, reason = "the names of the ELF specification")]
#[path = "../examples/executables.rs"]
mod executables;

#[test]
fn executables() {
  executables::main();
}