cc4 0.1.2

Very simple implementation of the four_cc/fourcc algorithm as a const fn
Documentation

cc4

Implementation of four_cc in Rust as a const fn. Supports both little and big endian systems.

four_cc(b"code");

Since four_cc is a const fn, you can also use it to define enum values for enums represented by u32.

#[repr(u32)]
pub enum Id {
    Apple = four_cc(b"appl"),
}