snarkvm_ledger_narwhal_debug/
lib.rs

1// Copyright (C) 2019-2023 Aleo Systems Inc.
2// This file is part of the snarkVM library.
3
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at:
7// http://www.apache.org/licenses/LICENSE-2.0
8
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15#![forbid(unsafe_code)]
16#![warn(clippy::cast_possible_truncation)]
17
18#[cfg(feature = "batch-certificate")]
19pub use narwhal_batch_certificate as batch_certificate;
20#[cfg(feature = "batch-certificate")]
21pub use narwhal_batch_certificate::BatchCertificate;
22
23#[cfg(feature = "batch-header")]
24pub use narwhal_batch_header as batch_header;
25#[cfg(feature = "batch-header")]
26pub use narwhal_batch_header::BatchHeader;
27
28#[cfg(feature = "data")]
29pub use narwhal_data as data;
30#[cfg(feature = "data")]
31pub use narwhal_data::Data;
32
33#[cfg(feature = "subdag")]
34pub use narwhal_subdag as subdag;
35#[cfg(feature = "subdag")]
36pub use narwhal_subdag::Subdag;
37
38#[cfg(feature = "transmission")]
39pub use narwhal_transmission as transmission;
40#[cfg(feature = "transmission")]
41pub use narwhal_transmission::Transmission;
42
43#[cfg(feature = "transmission-id")]
44pub use narwhal_transmission_id as transmission_id;
45#[cfg(feature = "transmission-id")]
46pub use narwhal_transmission_id::TransmissionID;