sd_sys/lib.rs
1// sd-sys: FFI bindings to systemd for sd-id128 & sd-journal
2// Copyright (C) 2020 Christian Klaue [mail@ck76.de]
3//
4// This program is free software: you can redistribute it and/or modify
5// it under the terms of the GNU Affero General Public License as published by
6// the Free Software Foundation, either version 3 of the License, or
7// (at your option) any later version.
8//
9// This program is distributed in the hope that it will be useful,
10// but WITHOUT ANY WARRANTY; without even the implied warranty of
11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12// GNU Affero General Public License for more details.
13//
14// You should have received a copy of the GNU Affero General Public License
15// along with this program. If not, see <https://www.gnu.org/licenses/>.
16
17//! [](https://github.com/ente76/sd-sys) [](https://crates.io/crates/sd-sys) [](https://docs.rs/sd-sys/)  [](https://www.buymeacoffee.com/ente) [](https://www.paypal.com/donate?hosted_button_id=CRGNTJBS4AD4G)
18//!
19//! [sd-sys](https://github.com/ente76/sd-sys) defines the FFI bindings for sd-id128 & sd-journal in the systemd API of [libsystemd](https://www.freedesktop.org/software/systemd/man/sd-id128.html). sd-sys is part of the [systemd.rs](https://github.com/ente76/systemd.rs) project, providing the FFI bindings for [sd-id128](https://github.com/ente76/sd-id128) and [sd-journal](https://github.com/ente76/sd-journal).
20//!
21//! ## Compatibility
22//!
23//! This library is developed against the latest version of libsystemd. As such there may be FFI bindings included which are not available in previous versions. Issues may arise during linking, if an unavailable function is used. There is no version check included in this library. For an example of such version check, see the feature definition of [sd-id128](https://github.com/ente76/sd-id128).
24
25/// FFI binding for sd-id128 as defined in libsystemd used in
26/// [sd-id128](https://gitlab.com/systemd.rs/sd-id128)
27///
28/// This module should rarely be used directly. Crate sd-id128 defines a wrapper
29/// to the FFI bindings which translates each extern function 1:1 into native
30/// rust.
31pub mod id128;
32
33/// FFI mapping for sd-journal as defined in libsystemd used in
34/// [sd-journal](https://gitlab.com/systemd.rs/sd-journal)
35///
36/// This module should rarely be used directly. Crate sd-journal defines a
37/// wrapper to the FFI bindings which translates each extern function into
38/// native rust.
39pub mod journal;