Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lycantropos/traiter
Collection of `Rust` traits
https://github.com/lycantropos/traiter
rust-traits
Last synced: 2 days ago
JSON representation
Collection of `Rust` traits
- Host: GitHub
- URL: https://github.com/lycantropos/traiter
- Owner: lycantropos
- License: mit
- Created: 2022-07-06T05:19:24.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-07-23T23:34:01.000Z (over 1 year ago)
- Last Synced: 2024-04-26T18:22:39.400Z (8 months ago)
- Topics: rust-traits
- Language: Rust
- Homepage: https://docs.rs/traiter/latest/traiter/
- Size: 166 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
traiter
=======[![](https://github.com/lycantropos/traiter/workflows/CI/badge.svg)](https://github.com/lycantropos/traiter/actions/workflows/ci.yml "Github Actions")
[![](https://codecov.io/gh/lycantropos/traiter/branch/master/graph/badge.svg)](https://codecov.io/gh/lycantropos/traiter "Codecov")
[![](https://docs.rs/traiter/badge.svg)](https://docs.rs/traiter/ "docs.rs")
[![](https://img.shields.io/github/license/lycantropos/traiter.svg)](https://github.com/lycantropos/traiter/blob/master/LICENSE "License")
[![](https://img.shields.io/crates/v/traiter.svg)](https://crates.io/crates/traiter "crates.io")Development
-----------### Bumping version
#### Preparation
Install
[bump2version](https://github.com/c4urself/bump2version#installation).#### Pre-release
Choose which version number category to bump following [semver
specification](http://semver.org/).Test bumping version
```bash
bump2version --dry-run --verbose $CATEGORY
```where `$CATEGORY` is the target version number category name, possible
values are `patch`/`minor`/`major`.Bump version
```bash
bump2version --verbose $CATEGORY
```This will set version to `major.minor.patch-alpha`.
#### Release
Test bumping version
```bash
bump2version --dry-run --verbose release
```Bump version
```bash
bump2version --verbose release
```This will set version to `major.minor.patch`.
### Running tests
Plain
```bash
cargo test
```Inside `Docker` container:
```bash
docker-compose up
````Bash` script:
```bash
./run-tests.sh
````PowerShell` script:
```powershell
.\run-tests.ps1
```