Packages

Gleam bindings for the Rockbox DSP / metadata / playback engine

Current section

Files

Jump to
rockbox_ffi gleam.toml
Raw

gleam.toml

name = "rockbox_ffi"
version = "1.3.1"
target = "erlang"
licences = ["GPL-2.0-or-later"]
description = "Gleam bindings for the Rockbox DSP / metadata / playback engine"
# This package lives in a monorepo subdirectory; `path` makes the generated
# HexDocs "source" links resolve to bindings/gleam/ instead of the repo root.
[repository]
type = "github"
user = "tsirysndr"
repo = "rockboxd"
path = "bindings/gleam"
# The native NIF (c_src/rockbox_ffi_nif.c) is compiled into priv/ by the
# Makefile; run `make` before `gleam test`. The Erlang loader
# src/rockbox_ffi_nif.erl is compiled by Gleam automatically.
#
# The published Hex package does NOT bundle the .so files (4 platforms exceed
# Hex's 8 MB tarball limit). It ships priv/rockbox_ffi_nif.manifest (checksums)
# instead, and the loader downloads the matching NIF from the gleam-v<version>
# GitHub release into the user cache on first load. See scripts/publish-gleam.sh.
# JSON is decoded via OTP 27+'s built-in `json` module (through an FFI) plus
# gleam/dynamic/decode — no gleam_json dependency.
[dependencies]
gleam_stdlib = ">= 0.44.0 and < 2.0.0"
[dev-dependencies]
gleeunit = ">= 1.0.0 and < 2.0.0"