Ferrocene 26.05.0 now available!

Ana

July 28th, 2026

#![warn(ferrocene::unvalidated)]
#![no_std]

#[ferrocene::prevalidated]
pub fn just_an_example(a: impl Iterator<Item=u32>) -> Option<char> {
    let sum = a.fold(0, |x, y| x + y);
    match sum {
        // Did we mention `core::fmt` is certified now?
        even if even % 2 == 0 => panic!("Got {sum}"),
        // Note: `from_digit` is not ceritifed.
        odd => core::char::from_digit(odd, 8),
    }
}
[lints.rust.unexpected_cfgs]
level = "allow"
check-cfg = ['cfg(ferrocene)']
ferrocene, warn(ferrocene::unvalidated))]

#[cfg_attr(ferrocene, ferrocene::prevalidated)]
pub fn just_an_example(a: impl Iterator<Item=u32>) -> Option<char> { todo!() }

https://www.redhat.com/en/resources/in-vehicle-operating-system-datasheet