Skip to content

Commit cabd969

Browse files
readme nits (cloudflare#24)
* fix(readme): testing header, h2 -> h3 * feat(readme): add crates.io badge * feat(readme): doc production usage warning * feat(contrib): add CLA note to README * doc: add benchmarking instructions to readme * fix: readme nits * fix: new name/banner
1 parent d292ea7 commit cabd969

File tree

2 files changed

+33
-11
lines changed

2 files changed

+33
-11
lines changed

README.md

+33-11
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,25 @@
11
![boringtun logo banner](./banner.png)
22

3-
# boringtun
3+
# BoringTun
44

5-
**boringtun** is an implementation of the [WireGuard<sup>®</sup>](https://www.wireguard.com/) protocol designed for portability and speed.
5+
[![crates.io](https://meritbadge.herokuapp.com/boringtun)](https://crates.io/crates/boringtun)
6+
7+
**BoringTun** is an implementation of the [WireGuard<sup>®</sup>](https://www.wireguard.com/) protocol designed for portability and speed.
68

79
The project consists of two parts:
810

911
* The executable `boringtun`, a [userspace WireGuard](https://www.wireguard.com/xplatform/) implementation for Linux and macOS.
1012
* The library `boringtun` that can be used to implement fast and efficient WireGuard client apps on various platforms, including iOS and Android. It implements the underlying WireGuard protocol, without the network or tunnel stacks, those can be implemented in a platform idiomatic way.
1113

14+
⚠️ **NOTE:** This crate is still undergoing review for security concerns. Therefore, we recommend that you take caution before using it in a production application.
15+
1216
### Building
1317

1418
- Library only: `cargo build --lib --release [--target $(TARGET_TRIPLE)]`
1519
- Executable: `cargo build --bin boringtun --release [--target $(TARGET_TRIPLE)]`
1620

1721
By default the executable is placed in the `./target/release` folder. You can copy it to a desired location manually, or install it using `cargo install --bin boringtun --path .`.
1822

19-
## Testing
20-
21-
Testing this project has a few requirements:
22-
23-
- `sudo`: required to create tunnels. When you run `cargo test` you'll be prompted for your password.
24-
- Docker: you can install it [here](https://www.docker.com/get-started). If you are on Ubuntu/Debian you can run `apt-get install docker.io`.
25-
2623
### Running
2724

2825
As per the specification, to start a tunnel use:
@@ -31,10 +28,27 @@ As per the specification, to start a tunnel use:
3128

3229
The tunnel can then be configured using [wg](https://git.zx2c4.com/WireGuard/about/src/tools/man/wg.8), as a regular WireGuard tunnel, or any other tool.
3330

34-
It is also possible to use with [wg-quick](https://git.zx2c4.com/WireGuard/about/src/tools/man/wg-quick.8) by setting the enviroment variable `WG_QUICK_USERSPACE_IMPLEMENTATION` to `boringtun`. For example:
31+
It is also possible to use with [wg-quick](https://git.zx2c4.com/WireGuard/about/src/tools/man/wg-quick.8) by setting the environment variable `WG_QUICK_USERSPACE_IMPLEMENTATION` to `boringtun`. For example:
3532

3633
`sudo WG_QUICK_USERSPACE_IMPLEMENTATION=boringtun wg-quick up CONFIGURATION`
3734

35+
### Testing
36+
37+
Testing this project has a few requirements:
38+
39+
- `sudo`: required to create tunnels. When you run `cargo test` you'll be prompted for your password.
40+
- Docker: you can install it [here](https://www.docker.com/get-started). If you are on Ubuntu/Debian you can run `apt-get install docker.io`.
41+
42+
### Benchmarking
43+
44+
To benchmark this project you can run this command:
45+
46+
```
47+
cargo +nightly bench
48+
```
49+
50+
This command depends on the unstable `test` feature of the Rust compiler. As a result, you'll need to use the `nightly` channel of Rust when you run it. You can tell `rustup` to use the nightly channel when running the bench mark command like this:
51+
3852
## Supported platforms
3953

4054
Target triple |Binary|Library| |
@@ -76,5 +90,13 @@ The library exposes a set of Java Native Interface bindings, those are defined i
7690

7791
The project is licensed under the [3-Clause BSD License](https://opensource.org/licenses/BSD-3-Clause).
7892

93+
### Contribution
94+
95+
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the 3-Clause BSD License, shall licensed as above, without any additional terms or conditions.
96+
97+
If you want to contribute to this project, please read our [`CONTRIBUTING.md`].
98+
99+
[`CONTRIBUTING.md`]: https://github.com/cloudflare/.github/blob/master/CONTRIBUTING.md
100+
79101
---
80-
<sub><sub><sub><sub>WireGuard is a registered trademark of Jason A. Donenfeld. boringtun is not sponsored or endorsed by Jason A. Donenfeld.</sub></sub></sub></sub>
102+
<sub><sub><sub><sub>WireGuard is a registered trademark of Jason A. Donenfeld. BoringTun is not sponsored or endorsed by Jason A. Donenfeld.</sub></sub></sub></sub>

banner.png

-135 KB
Loading

0 commit comments

Comments
 (0)