#geospatial #ffi #bindings #lerc

sys lerc-sys

Low-level FFI bindings to Esri's LERC C API

3 releases

Uses new Rust 2024

new 0.1.2 Apr 22, 2025
0.1.1 Apr 22, 2025
0.1.0 Apr 21, 2025

#74 in #geospatial

45 downloads per month
Used in lerc

Apache-2.0

5MB
10K SLoC

C++ 7.5K SLoC // 0.1% comments C# 669 SLoC // 0.1% comments Python 662 SLoC // 0.2% comments JavaScript 597 SLoC // 0.1% comments TypeScript 550 SLoC // 0.1% comments Visual Studio Project 310 SLoC Visual Studio Solution 41 SLoC Rust 38 SLoC

Contains (ELF exe/lib, 1MB) vendor/lerc/bin/linux/libLerc.so.4, (Windows DLL, 530KB) vendor/lerc/bin/windows/Lerc.dll, (static library, 5KB) vendor/lerc/bin/windows/Lerc.lib

lerc-sys

Crates.io Docs.rs

Low-level Rust FFI bindings to Esri's LERC compression library (C API).

This crate provides raw, unsafe bindings generated via bindgen, and builds the LERC C++ source using cc.

Build

This crate vendored the LERC C++ sources and compiles them automatically using cc. It does not require a system-installed libLerc.

Status

✅ Supports LERC 4.0+ ✅ Linux tested ✅ Automatically generates bindings to Lerc_c_api.h

License

Apache-2.0

No runtime deps