btw: MoQ is under active development. The APIs and protocols are still evolving and will change. Most of this documentation is AI generated until things get more stable.

Skip to content

libmoq

docs.rs

C bindings for moq-net via FFI, enabling MoQ integration in C/C++ applications and other languages.

Overview

libmoq provides:

  • C API - Header files for C integration
  • FFI bindings - Safe Rust-to-C interface
  • Build system integration - CMake and pkg-config support

Installation

From Source

bash
git clone https://github.com/moq-dev/moq
cd moq/rs/libmoq
cargo build --release

The library will be in target/release/libmoq.a (static) or target/release/libmoq.so (dynamic).

Using Cargo

bash
cargo install libmoq

Usage

See the rs/libmoq/README.md for the C API function signatures and the rs/libmoq/src/test.rs for working usage examples.

API Reference

Full API documentation: docs.rs/libmoq

Use Cases

  • C/C++ applications - Native integration without Rust toolchain
  • Language bindings - Build bindings for Python, Go, etc.
  • Legacy systems - Integrate MoQ into existing C codebases
  • Embedded systems - Where Rust runtime isn't available

Next Steps

Licensed under MIT or Apache-2.0