Skip to content

Commit e6e922b

Browse files
committed
docs: update README with badges and formatting
Signed-off-by: Gaius <gaius.qi@gmail.com>
1 parent b99114b commit e6e922b

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

README.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
1-
# cgroups-rs ![Build](https://travis-ci.org/kata-containers/cgroups-rs.svg?branch=master)
2-
Native Rust library for managing control groups under Linux
1+
# cgroups-rs
32

4-
Both v1 and v2 of cgroups are supported.
3+
[![Crate](https://img.shields.io/crates/v/cgroups-rs.svg)](https://crates.io/crates/cgroups-rs)
54

6-
# Examples
5+
Native Rust library for managing Linux control groups. Supports both cgroups v1 and v2.
76

8-
## Create a control group using the builder pattern
9-
10-
``` rust
7+
## Examples
118

9+
### Create a control group using the builder pattern
1210

11+
```rust
1312
use cgroups_rs::*;
1413
use cgroups_rs::cgroup_builder::*;
1514

@@ -44,7 +43,7 @@ cg.delete();
4443
// major version change.
4544
```
4645

47-
# Disclaimer
46+
## Disclaimer
4847

4948
This crate is licensed under:
5049

0 commit comments

Comments
 (0)