Skip to main content

eros_nft/
lib.rs

1//! eros-nft: reference implementation of the eros-nft v1 spec.
2//!
3//! See <https://github.com/etherfunlab/eros-nft> for the spec and samples.
4//!
5//! ## Quick start
6//!
7//! ```rust,no_run
8//! use eros_nft::{PersonaManifest, load_sample};
9//!
10//! let (_draft, manifest) = load_sample("yuki-warm-senpai").unwrap();
11//! // manifest.validate().unwrap(); // validate() added in Phase 6
12//! ```
13
14#![forbid(unsafe_code)]
15#![deny(rust_2018_idioms)]
16
17pub mod error;
18pub mod sample;
19pub mod schema;
20pub mod types;
21pub mod validate;
22
23pub use error::ValidationError;
24pub use sample::{list_samples, load_sample};
25pub use schema::{json_schema_draft, json_schema_manifest};
26pub use types::*;