Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

BarBridge: a Rust core for GS1 Sunrise 2027 barcode pairs, callable from 7 languages over a C ABI

Описание и применение

BarBridge – это Rust‑ядро, которое генерирует пары 1D+2D штрих‑кодов GS1 для перехода GS1 Sunrise 2027. Он предоставляет минимальный C ABI и готовые примеры для 7 языков и 6 платформ, упрощая интеграцию в POS, ERP и системы печати.

Задача

Retailers and manufacturers must print both 1D and 2D GS1 barcodes together during the GS1 Sunrise 2027 transition, requiring correct sizing, layout, and compliance.

Результат

BarBridge delivers ready‑to‑run samples in 7 languages across 6 platform targets, enabling any POS, ERP, or label‑printing tool to generate GS1‑compliant 1D+2D barcode pairs without vendor‑specific math.

Рабочий процесс

  • Build the Rust core implementing GS1 pairing logic
  • Expose a minimal C ABI with functions barbridge_render_png, barbridge_bytes_free, barbridge_last_error
  • Create a shared request.json with sample GS1 data
  • Generate prebuilt binaries for Windows, macOS, Linux (x64/ARM64)
  • Write language‑specific samples (Python ctypes, C/C++ header, C# P/Invoke, VB.NET P/Invoke, Java JNA, PHP FFI, Node.js koffi) that read the request, call barbridge_render_png, write PNG, and free buffer
  • Publish the library and samples on GitHub with dual MIT/Apache‑2.0 license

Доказательства

In 2027, GS1 is moving retail POS barcode practice away from 1D-only symbols toward pairing them with 2D symbols (GS1 QR Code / GS1 DataMatrix).

Источник

BarBridge didn’t start as its own project. The first version of this GS1 pairing logic was built as an optional feature inside ACR, our receipt/label rendering engine...

Источник

The exposed surface is intentionally small: barbridge_render_png(request_json, &out_data, &out_len) renders a GS1 1D+2D pair to PNG bytes in memory

Источник

  • Дата записи: 2026-11-02T02:29:07.330Z