Skip to content

Commit

Permalink
Add README docs and CI job for MSRV
Browse files Browse the repository at this point in the history
  • Loading branch information
lopopolo committed Dec 30, 2020
1 parent 760ff9a commit a98ce43
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,37 @@ jobs:
- name: Test with no default features
run: cargo test --no-default-features

build-msrv:
name: Build (1.46.0)
runs-on: ubuntu-latest
env:
RUSTFLAGS: -D warnings
RUST_BACKTRACE: 1
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: "1.46.0"
profile: minimal

- name: Compile
run: cargo build --verbose

- name: Compile tests
run: cargo test --no-run

- name: Test
run: cargo test

- name: Test with all features
run: cargo test --all-features

- name: Test with no default features
run: cargo test --no-default-features

rust:
name: Lint and format Rust
runs-on: ubuntu-latest
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,11 @@ All features are enabled by default.
- **std** - Enable linking to the [Rust Standard Library]. Enabling this feature
adds [`Error`] implementations to error types in this crate.

### Minimum Supported Rust Version

This crate requires at least Rust 1.46.0. This version can be bumped in minor
releases.

## License

`focaccia` is licensed under the [MIT License](LICENSE) (c) Ryan Lopopolo.
Expand Down

0 comments on commit a98ce43

Please sign in to comment.