Skip to main content

snarkvm_ledger_narwhal/
lib.rs

1// Copyright (c) 2019-2026 Provable 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
8// http://www.apache.org/licenses/LICENSE-2.0
9
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15
16#![forbid(unsafe_code)]
17#![warn(clippy::cast_possible_truncation)]
18
19#[cfg(feature = "batch-certificate")]
20pub use snarkvm_ledger_narwhal_batch_certificate as batch_certificate;
21#[cfg(feature = "batch-certificate")]
22pub use snarkvm_ledger_narwhal_batch_certificate::BatchCertificate;
23
24#[cfg(feature = "batch-header")]
25pub use snarkvm_ledger_narwhal_batch_header as batch_header;
26#[cfg(feature = "batch-header")]
27pub use snarkvm_ledger_narwhal_batch_header::BatchHeader;
28
29#[cfg(feature = "data")]
30pub use snarkvm_ledger_narwhal_data as data;
31#[cfg(feature = "data")]
32pub use snarkvm_ledger_narwhal_data::Data;
33
34#[cfg(feature = "subdag")]
35pub use snarkvm_ledger_narwhal_subdag as subdag;
36#[cfg(feature = "subdag")]
37pub use snarkvm_ledger_narwhal_subdag::Subdag;
38
39#[cfg(feature = "transmission")]
40pub use snarkvm_ledger_narwhal_transmission as transmission;
41#[cfg(feature = "transmission")]
42pub use snarkvm_ledger_narwhal_transmission::Transmission;
43
44#[cfg(feature = "transmission-id")]
45pub use snarkvm_ledger_narwhal_transmission_id as transmission_id;
46#[cfg(feature = "transmission-id")]
47pub use snarkvm_ledger_narwhal_transmission_id::TransmissionID;