Skip to content

Commit 748f9dc

Browse files
authored
Repair fuzz target build and CI coverage (#7)
1 parent 788c838 commit 748f9dc

File tree

3 files changed

+19
-4
lines changed

3 files changed

+19
-4
lines changed

.github/workflows/test.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,21 @@ jobs:
3333
- name: tests
3434
run: cargo test --all --all-features
3535

36+
check_fuzz_target:
37+
name: Check fuzz target
38+
runs-on: ubuntu-latest
39+
40+
steps:
41+
- uses: actions/checkout@v4
42+
43+
- name: Install stable
44+
uses: dtolnay/rust-toolchain@stable
45+
with:
46+
toolchain: stable
47+
48+
- name: check fuzz target
49+
run: cargo check --manifest-path fuzz/Cargo.toml
50+
3651
check_fmt_and_docs:
3752
name: Checking fmt, clippy, and docs
3853
runs-on: ubuntu-latest

fuzz/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "multer-fuzz"
2+
name = "multra-fuzz"
33
version = "0.0.0"
44
authors = ["Automatically generated"]
55
publish = false
@@ -19,7 +19,7 @@ libfuzzer-sys = "0.3"
1919
futures-util = { version = "0.3", default-features = false }
2020
tokio = { version = "1", features = ["rt", "time"] }
2121

22-
[dependencies.multer]
22+
[dependencies.multra]
2323
path = ".."
2424

2525
# Prevent this from interfering with workspaces

fuzz/fuzz_targets/fuzz_multipart_bytes.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
use std::convert::Infallible;
44
use std::time::Duration;
55

6-
use multer::Multipart;
7-
use multer::bytes::Bytes;
86
use futures_util::stream::once;
97
use libfuzzer_sys::fuzz_target;
8+
use multra::Multipart;
9+
use multra::bytes::Bytes;
1010
use tokio::{runtime, time::timeout};
1111

1212
const FIELD_TIMEOUT: Duration = Duration::from_millis(10);

0 commit comments

Comments
 (0)