Add fuzzing instructions to readme, bump CI version to 1.48
This commit is contained in:
1 parent
1c5800daa0
commit
b065539c07
2 files changed
+10
-2
No files matched your search
@@ -9,7 +9,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
rust: ["1.34.2", stable, beta, nightly]
|
rust: ["1.48", stable, beta, nightly]
|
||||||
command: [build, test]
|
command: [build, test]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
@@ -20,7 +20,7 @@ jobs:
|
|||||||
- name: test
|
- name: test
|
||||||
run: >
|
run: >
|
||||||
cargo test --tests --benches --no-default-features --features "$FEATURES"
|
cargo test --tests --benches --no-default-features --features "$FEATURES"
|
||||||
if: ${{ matrix.rust != '1.34.2' }}
|
if: ${{ matrix.rust != '1.48' }}
|
||||||
env:
|
env:
|
||||||
FEATURES: ${{ matrix.features }}
|
FEATURES: ${{ matrix.features }}
|
||||||
rustfmt:
|
rustfmt:
|
||||||
|
|||||||
@@ -44,3 +44,11 @@ Formats and interpretations not listed above or with empty entries are unsupport
|
|||||||
- Baseline tags
|
- Baseline tags
|
||||||
- `ExtraSamples`
|
- `ExtraSamples`
|
||||||
- Extension tags
|
- Extension tags
|
||||||
|
|
||||||
|
## Fuzzing
|
||||||
|
|
||||||
|
This crate uses [cargo-fuzz](https://github.com/rust-fuzz/cargo-fuzz) in order to test the image parser.
|
||||||
|
|
||||||
|
After installing it with `cargo install cargo-fuzz` on a nightly rustc, the
|
||||||
|
fuzzing harness can be run with recommended settings using
|
||||||
|
`cargo fuzz run decode_image -snone -- -timeout=5`.
|
||||||
Reference in new issue
Block a user