zcash_primitives/lib.rs
1//! *General Zcash primitives.*
2//!
3//! `zcash_primitives` is a library that provides the core structs and functions necessary
4//! for working with Zcash.
5//!
6//! ## Feature flags
7#![cfg_attr(feature = "std", doc = document_features::document_features!())]
8//!
9
10#![cfg_attr(docsrs, feature(doc_cfg))]
11#![cfg_attr(docsrs, doc(auto_cfg))]
12// Catch documentation errors caused by code changes.
13#![deny(rustdoc::broken_intra_doc_links)]
14// Present to reduce refactoring noise from changing all the imports inside this crate for
15// the `sapling` crate extraction.
16#![allow(clippy::single_component_path_imports)]
17#![no_std]
18
19#[cfg(feature = "std")]
20extern crate std;
21
22#[macro_use]
23extern crate alloc;
24
25pub mod block;
26pub(crate) mod encoding;
27pub mod merkle_tree;
28pub mod transaction;