#networking #lance #lwp

lnc-network

Network layer for LANCE - LWP protocol, connection handling, zero-copy parsing

9 releases

Uses new Rust 2024

new 0.2.8 Mar 2, 2026
0.2.7 Feb 22, 2026
0.1.9 Feb 6, 2026

#7 in #lance


Used in lnc-client

Apache-2.0

245KB
5.5K SLoC

lnc-network

Crates.io Documentation License

Network layer for the LANCE streaming platform.

Overview

This crate implements the Lance Wire Protocol (LWP):

  • Protocol framing - 44-byte frame headers with CRC validation
  • Connection handling - Async TCP/TLS connections
  • Zero-copy parsing - Efficient frame parsing with minimal allocations
  • Compression - Optional LZ4 and Zstd compression

Features

  • tls - Enable TLS support (rustls)
  • lz4 - Enable LZ4 compression
  • compression - Enable all compression algorithms

Usage

This crate is primarily used as a dependency of lnc-client. Most users should depend on lnc-client directly.

cargo add lnc-network

License

Apache License 2.0 - see LICENSE for details.

Dependencies

~13–31MB
~346K SLoC