1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
//
// Copyright (c) DUSK NETWORK. All rights reserved.
//! ![Build Status](https://github.com/dusk-network/canonical/workflows/Continuous%20integration/badge.svg)
//! [![Repository](https://img.shields.io/badge/github-canonical-blueviolet?logo=github)](https://github.com/dusk-network/canonical)
//! [![Documentation](https://img.shields.io/badge/docs-canonical-blue?logo=rust)](https://docs.rs/canonical/)
//! # Canonical
//!
//! A no_std, host-allocating serialization library
#![cfg_attr(target_arch = "wasm32", no_std)]
#![feature(never_type)]
#![deny(missing_docs)]
extern crate alloc;
mod canon;
mod id;
mod implementations;
mod store;
pub use canon::{Canon, CanonError, EncodeToVec};
pub use id::{Id, IdHash};
pub use store::{Sink, Source, Store};