Skip to main content

Crate librebound_sys

Crate librebound_sys 

Source
Expand description

Raw FFI bindings and safe RAII wrappers for REBOUND.

REBOUND is a C N-body integration library. This crate exposes the underlying C API as:

  • ffi: raw extern "C" bindings to REBOUND functions + types.
  • Simulation: thin, allocation-owning RAII wrapper around reb_simulation.
  • IntegratorConfig + Ias15AdaptiveMode: ergonomic types for IAS15 timestep + adaptive-mode configuration.

This crate contains no domain logic (ephemerides, orbital elements, observatories, etc.) and no dependencies on ASSIST. The companion libassist-sys crate layers ASSIST’s ephemeris-driven forces on top.

Modules§

ffi
Raw FFI bindings to the REBOUND C library.

Structs§

IntegratorConfig
Per-call IAS15 integrator knobs. None for any field leaves the REBOUND default in place.
Simulation
Owned REBOUND simulation. Freed on drop.

Enums§

Error
Errors produced by the low-level REBOUND FFI wrappers.
Ias15AdaptiveMode
IAS15 timestep-adaptation rule. REBOUND default since 2024-01 is Self::Prs23; older code used Self::Global.

Type Aliases§

Result