raptorq/src/lib.rs

73 lines
1.9 KiB
Rust
Raw Normal View History

2019-12-25 19:22:30 +00:00
#![allow(clippy::needless_return, clippy::unreadable_literal)]
#![cfg_attr(not(feature = "std"), no_std)]
#[cfg(not(feature = "std"))]
#[macro_use]
extern crate alloc;
#[cfg(not(feature = "std"))]
extern crate core;
#[cfg(feature = "std")]
#[macro_use]
extern crate std;
2019-12-25 19:22:30 +00:00
mod arraymap;
2019-03-28 21:13:19 +00:00
mod base;
mod constraint_matrix;
mod decoder;
mod encoder;
mod gf2;
mod graph;
2020-01-04 23:52:10 +00:00
mod iterators;
2019-03-28 21:13:19 +00:00
mod matrix;
2019-01-27 03:16:07 +00:00
mod octet;
mod octet_matrix;
mod octets;
mod operation_vector;
2019-02-19 01:02:54 +00:00
mod pi_solver;
#[cfg(feature = "python")]
mod python;
2019-03-28 21:13:19 +00:00
mod rng;
2020-01-05 00:01:00 +00:00
mod sparse_matrix;
2020-01-04 20:07:52 +00:00
mod sparse_vec;
2019-03-28 21:13:19 +00:00
mod symbol;
mod systematic_constants;
mod util;
2019-01-23 06:53:23 +00:00
pub use crate::base::partition;
2019-03-23 01:25:07 +00:00
pub use crate::base::EncodingPacket;
pub use crate::base::ObjectTransmissionInformation;
2019-03-28 21:13:19 +00:00
pub use crate::base::PayloadId;
2023-11-25 19:06:51 +00:00
#[cfg(not(feature = "python"))]
2019-03-23 01:25:07 +00:00
pub use crate::decoder::Decoder;
2019-03-28 21:13:19 +00:00
pub use crate::decoder::SourceBlockDecoder;
pub use crate::encoder::calculate_block_offsets;
2023-11-25 19:06:51 +00:00
#[cfg(not(feature = "python"))]
2019-03-28 21:13:19 +00:00
pub use crate::encoder::Encoder;
pub use crate::encoder::EncoderBuilder;
2019-03-28 21:13:19 +00:00
pub use crate::encoder::SourceBlockEncoder;
pub use crate::encoder::SourceBlockEncodingPlan;
#[cfg(feature = "python")]
pub use crate::python::raptorq;
#[cfg(feature = "python")]
pub use crate::python::Decoder;
#[cfg(feature = "python")]
pub use crate::python::Encoder;
pub use crate::systematic_constants::extended_source_block_symbols;
#[cfg(feature = "benchmarking")]
2019-03-23 01:25:07 +00:00
pub use crate::constraint_matrix::generate_constraint_matrix;
#[cfg(feature = "benchmarking")]
pub use crate::matrix::BinaryMatrix;
#[cfg(feature = "benchmarking")]
pub use crate::matrix::DenseBinaryMatrix;
#[cfg(feature = "benchmarking")]
2019-03-28 21:13:19 +00:00
pub use crate::octet::Octet;
#[cfg(feature = "benchmarking")]
pub use crate::pi_solver::IntermediateSymbolDecoder;
#[cfg(feature = "benchmarking")]
pub use crate::sparse_matrix::SparseBinaryMatrix;
2020-01-05 00:01:00 +00:00
#[cfg(feature = "benchmarking")]
pub use crate::symbol::Symbol;