File: README.md

package info (click to toggle)
rust-sd-notify 0.4.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 128 kB
  • sloc: makefile: 4
file content (36 lines) | stat: -rw-r--r-- 1,111 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# `sd-notify`

[![Actions Status]][github actions] [![Latest Version]][crates.io] [![API docs]][docs.rs]

[Actions Status]: https://github.com/lnicola/sd-notify/workflows/ci/badge.svg
[github actions]: https://github.com/lnicola/sd-notify/actions
[Latest Version]: https://img.shields.io/crates/v/sd-notify.svg
[crates.io]: https://crates.io/crates/sd-notify
[API docs]: https://docs.rs/sd-notify/badge.svg
[docs.rs]: https://docs.rs/sd-notify/

A lightweight (no dependencies) crate for sending `systemd` service state notifications.

## Quick start

```rust
let _ = sd_notify::notify(true, &[NotifyState::Ready]);
```

## Releases

Release notes are available in [CHANGELOG.md](CHANGELOG.md).

## License

This project is licensed under either of

* Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or
   [http://www.apache.org/licenses/LICENSE-2.0][LICENSE-APACHE])
* MIT license ([LICENSE-MIT](LICENSE-MIT) or
   [http://opensource.org/licenses/MIT][LICENSE-MIT])

at your option.

[LICENSE-APACHE]: http://www.apache.org/licenses/LICENSE-2.0
[LICENSE-MIT]: http://opensource.org/licenses/MIT