Skip to content

Bindings

Detent’s language bindings call libdetent_reader’s C ABI (detent/reader.h) rather than reimplementing it, so evaluation, hashing, trust checks and statuses are the same as the C++ Reader. Each exposes one type, Reader, with the same calls.

LanguageDirectoryTechnologyCMake option
Pythonbindings/python/C extensionDETENT_BUILD_PYTHON=ON
Rustbindings/rust/extern "C", no build-time C++DETENT_BUILD_RUST=ON

Both link the shared libdetent_reader, which exports only the detent_* C symbols. bindings/tests/scenarios.json holds the cases the C++, Python and Rust tests all run.

  1. Python API
  2. Rust API

Any other language can read knobs through detent get, or by calling the C ABI directly.