/ ledger / narwhal / src / lib.rs
lib.rs
 1  // Copyright (c) 2019-2025 Alpha-Delta Network Inc.
 2  // This file is part of the alphavm 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")]
20  pub use alphavm_ledger_narwhal_batch_certificate as batch_certificate;
21  #[cfg(feature = "batch-certificate")]
22  pub use alphavm_ledger_narwhal_batch_certificate::BatchCertificate;
23  
24  #[cfg(feature = "batch-header")]
25  pub use alphavm_ledger_narwhal_batch_header as batch_header;
26  #[cfg(feature = "batch-header")]
27  pub use alphavm_ledger_narwhal_batch_header::BatchHeader;
28  
29  #[cfg(feature = "data")]
30  pub use alphavm_ledger_narwhal_data as data;
31  #[cfg(feature = "data")]
32  pub use alphavm_ledger_narwhal_data::Data;
33  
34  #[cfg(feature = "subdag")]
35  pub use alphavm_ledger_narwhal_subdag as subdag;
36  #[cfg(feature = "subdag")]
37  pub use alphavm_ledger_narwhal_subdag::Subdag;
38  
39  #[cfg(feature = "transmission")]
40  pub use alphavm_ledger_narwhal_transmission as transmission;
41  #[cfg(feature = "transmission")]
42  pub use alphavm_ledger_narwhal_transmission::Transmission;
43  
44  #[cfg(feature = "transmission-id")]
45  pub use alphavm_ledger_narwhal_transmission_id as transmission_id;
46  #[cfg(feature = "transmission-id")]
47  pub use alphavm_ledger_narwhal_transmission_id::TransmissionID;