#u32 #four #no-std #four-char-code #widipedia

no-std four-char-code

A string of 4 ascii chars represented by an u32

17 releases (stable)

2.3.0 Apr 4, 2025
2.2.0 Jun 18, 2023
1.3.0 Apr 4, 2025
1.2.0 Jun 18, 2023
0.0.4 Jun 30, 2019

#372 in Text processing

Download history 273/week @ 2024-12-26 241/week @ 2025-01-02 390/week @ 2025-01-09 389/week @ 2025-01-16 351/week @ 2025-01-23 114/week @ 2025-01-30 119/week @ 2025-02-06 185/week @ 2025-02-13 293/week @ 2025-02-20 422/week @ 2025-02-27 419/week @ 2025-03-06 896/week @ 2025-03-13 766/week @ 2025-03-20 658/week @ 2025-03-27 1266/week @ 2025-04-03 1250/week @ 2025-04-10

4,172 downloads per month
Used in 12 crates (3 directly)

MIT license

15KB
393 lines

four-char-code

GitHub Workflow Status (with branch) Crates.io docs.rs Crates.io

A FourCC ("four-character code") is a sequence of four bytes (typically ASCII) used to uniquely identify data formats. It originated from the OSType or ResType metadata system used in classic Mac OS and was adopted for the Amiga/Electronic Arts Interchange File Format and derivatives. The idea was later reused to identify compressed data types in QuickTime and DirectShow.

Widipedia

#![no_std]

Enable #![no_std] support by disabling the default std feature:

[dependencies]
four-char-code = { version = "2", default-features = false }

MSRV

1.57.0

For older rust versions take a look at version 1.

No runtime deps

Features