Repository navigation
libsystemd-sys 0.10.0
·
10 commits
to main
since this release
Breaking changes and migration
- Previously unconditional bindings now require explicit version features:
sd_id128_get_boot_app_specific, bus close-on-exit functions, and bus
method-call timeout functions requiresystemd_v240;sd_bus_close_unref
requiressystemd_v241. Enable the required feature in your dependency.
Version features are cumulative, including the existingsystemd_v245feature. - Builds check actual native capabilities. Base APIs require systemd 233 or
equivalent symbols; the defaultbusfeature requires systemd 239. Disable
unsupported features or select a native library that supplies the APIs. sd_bus_vtablestores typed pointer fields in its native union and no longer
implementsSendorSync. Code that moved or shared these descriptors across
threads must account explicitly for pointer lifetimes and native thread-safety
requirements. This change and the feature gates require the 0.10 version bump.
Added
sd_listen_fds_with_namesfor named socket-activation descriptors. Callers own
the returned native string vector and must free its allocations appropriately.- Raw vtable entry constructors for methods, signals, and properties using the
original v221 layout. Registration remains unsafe and requires valid backing
strings, callbacks, and userdata throughout its lifetime. - Journal persistent/runtime-file detection bindings.
sd_session_get_start_timebehindsystemd_v254.systemd_v240,systemd_v241, andsystemd_v254feature flags.
Fixed
- Vtable unions preserve pointer types instead of storing pointers as integers.
- Vtable type and flag encoding uses the correct byte layout on big-endian targets.
- Native API checks honor explicit library paths, static-library selection,
pkg-config backends, and Cargo's target linker. The check never executes target
programs, including when cross compiling, and reports missing capabilities
before an application reaches its final link step.