fountain_engine 1.3.0

Core algorithms for fountain code encoding and decoding
Documentation

fountain_engine

Core algorithms for fountain code encoding and decoding.

What It Provides

  • Encoder / Decoder: Generic fountain code encoder and decoder that work with any code scheme implementing the CodeScheme trait.
  • Traits: CodeScheme and DataOperator — implement these to define custom fountain codes and data backends.

Architecture

The engine is data-free by design. Instead of operating on data directly, the encoder and decoder emit a sequence of Operation values that a DataOperator executes on actual data vectors. This separation enables:

  • In-memory operation (VecDataOperater in fountain_utility)
  • I/O logging (IoDataOperator in fountain_utility)
  • Network streaming or any custom backend

License

This crate is dual-licensed:

  1. AGPL-3.0 — Free for open-source use. See LICENSE-AGPL.
  2. Commercial — For proprietary use without AGPL obligations. See LICENSE-COMMERCIAL.

Copyright (c) 2025 Shenghao Yang. All rights reserved.