Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/wcygan/lib-wc

A simple rust library
https://github.com/wcygan/lib-wc

algorithms benchmarking cargo-fuzz concurrency concurrent-data-structure criterion data-structures fuzzing property-based-testing rust rust-crate rust-lang rust-library tokio tokio-rs

Last synced: about 1 month ago
JSON representation

A simple rust library

Awesome Lists containing this project

README

        

# [lib-wc](https://docs.rs/lib-wc/)

[github](https://github.com/wcygan/lib-wc)
[crates.io](https://crates.io/crates/lib-wc)
[docs.rs](https://docs.rs/lib-wc)
[build status](https://github.com/wcygan/lib-wc/actions?query=branch%3Amaster)

Learning how to write a library in Rust by implementing "stuff"

## Testing

### Run the tests

```bash
$ cargo test
```

or

```bash
$ cargo test --all-features
```

### Run the benchmarks

```bash
$ cargo bench --all-features
```

### Run the fuzz tests

hint: you can use `cargo fuzz list` to see the available fuzz targets

You need to use nightly Rust to run the fuzz tests:

```bash
$ cargo +nightly fuzz run
```

Example:

```bash
$ cargo +nightly fuzz run quicksort
```

## Addendum

I have a variety of [experiments](./experiments/) in this repository that I use to learn about Rust & various crates; they are runnable examples which showcase interesting concepts.