OxL Reference

const cbor

CBOR (RFC 8949, D-7600).

Example:

oxl✓ checked in CI
use std.ser { encode, formats, hex }

fn main() io {
  print(hex(&encode(&5, formats.cbor)!))
}
Output
05
pub(api) const cbor: Format = Format.Cbor

Since. 1.0.0-beta

Defined in: std/ser/formats/formats.oxl:73

See also