mirror of
https://github.com/cberner/raptorq.git
synced 2024-06-16 11:59:01 +00:00
73 lines
1.9 KiB
Rust
73 lines
1.9 KiB
Rust
#![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;
|
|
|
|
mod arraymap;
|
|
mod base;
|
|
mod constraint_matrix;
|
|
mod decoder;
|
|
mod encoder;
|
|
mod gf2;
|
|
mod graph;
|
|
mod iterators;
|
|
mod matrix;
|
|
mod octet;
|
|
mod octet_matrix;
|
|
mod octets;
|
|
mod operation_vector;
|
|
mod pi_solver;
|
|
#[cfg(feature = "python")]
|
|
mod python;
|
|
mod rng;
|
|
mod sparse_matrix;
|
|
mod sparse_vec;
|
|
mod symbol;
|
|
mod systematic_constants;
|
|
mod util;
|
|
|
|
pub use crate::base::partition;
|
|
pub use crate::base::EncodingPacket;
|
|
pub use crate::base::ObjectTransmissionInformation;
|
|
pub use crate::base::PayloadId;
|
|
#[cfg(not(feature = "python"))]
|
|
pub use crate::decoder::Decoder;
|
|
pub use crate::decoder::SourceBlockDecoder;
|
|
pub use crate::encoder::calculate_block_offsets;
|
|
#[cfg(not(feature = "python"))]
|
|
pub use crate::encoder::Encoder;
|
|
pub use crate::encoder::EncoderBuilder;
|
|
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")]
|
|
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")]
|
|
pub use crate::octet::Octet;
|
|
#[cfg(feature = "benchmarking")]
|
|
pub use crate::pi_solver::IntermediateSymbolDecoder;
|
|
#[cfg(feature = "benchmarking")]
|
|
pub use crate::sparse_matrix::SparseBinaryMatrix;
|
|
#[cfg(feature = "benchmarking")]
|
|
pub use crate::symbol::Symbol;
|