Skip to main content

cc_data/
lib.rs

1#![doc = include_str!("../README.md")]
2#![no_std]
3#![cfg_attr(docsrs, feature(doc_cfg))]
4#![warn(missing_docs)]
5// Runnable examples, embedded so they render on docs.rs and stay in sync with
6// the actual `examples/*.rs` files (shown, not compiled).
7#![doc = "\n# Examples\n"]
8#![doc = "Runnable examples ship with this crate (`cargo run -p cc-data --example <name>`).\n"]
9#![doc = "\n## `parse_cc_data`\n\n```rust,ignore"]
10#![doc = include_str!("../examples/parse_cc_data.rs")]
11#![doc = "```\n\n## `build_cc_data`\n\n```rust,ignore"]
12#![doc = include_str!("../examples/build_cc_data.rs")]
13#![cfg_attr(
14    feature = "decode",
15    doc = "```\n\n## `decode_cea608`\n\n```rust,ignore"
16)]
17#![cfg_attr(feature = "decode", doc = include_str!("../examples/decode_cea608.rs"))]
18#![cfg_attr(
19    feature = "decode",
20    doc = "```\n\n## `decode_cea708`\n\n```rust,ignore"
21)]
22#![cfg_attr(feature = "decode", doc = include_str!("../examples/decode_cea708.rs"))]
23#![doc = "```"]
24
25extern crate alloc;
26
27mod cc_data;
28#[cfg(feature = "decode")]
29#[cfg_attr(docsrs, doc(cfg(feature = "decode")))]
30pub mod decode;
31mod error;
32
33pub use cc_data::{CcData, CcTriplet, CcType};
34pub use error::{Error, Result};