iso10383-types

Crates.ioiso10383-types
lib.rsiso10383-types
version0.4.0
created_at2025-09-01 22:14:57.842964+00
updated_at2026-01-15 04:16:26.633326+00
descriptionISO 10383 Types
homepage
repositoryhttps://github.com/jcape/iso10383
max_upload_size
id1820313
size23,980
James Cape (jcape)

documentation

https://docs.rs/iso10383-types

README

ISO 10383 Types

Crates.ioDocs StatusMSRV 1.88.0

This crate provides basic no-std, no-std::no-alloc capable types for working with ISO 10383 data, including an owned Mic and it's associated &mic borrow, as well as additional enums for handling [Kind], [Category], and [Status] of a code.

If you're looking for stronger validation and smaller storage requirements, you probably want the iso10383-static crate.

Features

  • default: Enables the serde feature.
  • serde: Enables the serialization and deserialization traits of the code enum and MIC record data.
  • alloc: Enables the variants of serde serialization and deserialization which require alloc. This should be enabled if serde has it's own alloc feature enabled.
  • zerocopy: Enables the derivation of traits from the zerocopy, namely IntoBytes and KnownLayout. Notably, this does not include TryFromBytes as it is not possible to provide a custom validity check at this time.

Examples

use iso10383_types::{Mic, mic};

const SRC: &str = "IEXG";

let mcode = mic::from_str(SRC).expect("valid MIC");
assert_eq!(SRC, mcode.as_str());
Commit count: 99

cargo fmt