mirror of
https://github.com/kata-containers/cgroups-rs.git
synced 2026-08-05 02:13:23 +00:00
docs: improve README formatting and badges
- Add crates.io badge - Simplify header and description - Fix markdown heading levels (# -> ##) - Fix code block language annotation spacing - Remove redundant blank lines Signed-off-by: Gaius <gaius.qi@gmail.com>
This commit is contained in:
15
README.md
15
README.md
@@ -1,15 +1,14 @@
|
||||
# cgroups-rs 
|
||||
Native Rust library for managing control groups under Linux
|
||||
# cgroups-rs
|
||||
|
||||
Both v1 and v2 of cgroups are supported.
|
||||
[](https://crates.io/crates/cgroups-rs)
|
||||
|
||||
# Examples
|
||||
Native Rust library for managing Linux control groups. Supports both cgroups v1 and v2.
|
||||
|
||||
## Create a control group using the builder pattern
|
||||
|
||||
``` rust
|
||||
## Examples
|
||||
|
||||
### Create a control group using the builder pattern
|
||||
|
||||
```rust
|
||||
use cgroups_rs::*;
|
||||
use cgroups_rs::cgroup_builder::*;
|
||||
|
||||
@@ -44,7 +43,7 @@ cg.delete();
|
||||
// major version change.
|
||||
```
|
||||
|
||||
# Disclaimer
|
||||
## Disclaimer
|
||||
|
||||
This crate is licensed under:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user