File tree Expand file tree Collapse file tree 4 files changed +49
-2
lines changed Expand file tree Collapse file tree 4 files changed +49
-2
lines changed Original file line number Diff line number Diff line change
1
+ name : Fuzz
2
+
3
+ on :
4
+ [pull_request, workflow_dispatch]
5
+
6
+ jobs :
7
+ fuzz :
8
+ name : Fuzz ${{matrix.target}}
9
+ runs-on : ubuntu-latest
10
+ strategy :
11
+ fail-fast : false
12
+ matrix :
13
+ target : [fast_float, roundtrip_f64]
14
+ steps :
15
+ - uses : actions/checkout@v2
16
+ with :
17
+ submodules : recursive
18
+ - uses : dtolnay/rust-toolchain@master
19
+ with :
20
+ toolchain : nightly
21
+ - run : cargo install cargo-fuzz
22
+ - run : cargo check
23
+ - run : |
24
+ cd fuzz
25
+ cargo +nightly fuzz run --release ${{matrix.target}} -- -max_total_time=300
Original file line number Diff line number Diff line change
1
+ name : Miri
2
+
3
+ on :
4
+ [pull_request, workflow_dispatch]
5
+
6
+ jobs :
7
+ miri :
8
+ name : Miri
9
+ runs-on : ubuntu-latest
10
+ steps :
11
+ - uses : actions/checkout@v4
12
+ with :
13
+ submodules : recursive
14
+ - uses : dtolnay/rust-toolchain@stable
15
+ with :
16
+ toolchain : nightly
17
+ - run : cargo check
18
+ - run : cargo build
19
+ - run : |
20
+ rustup component add --toolchain nightly miri
21
+ cargo miri test
Original file line number Diff line number Diff line change @@ -12,8 +12,8 @@ cargo-fuzz = true
12
12
members = [" ." ]
13
13
14
14
[dependencies ]
15
- fast-float = { path = " .." }
16
- libfuzzer-sys = " 0.3 "
15
+ fast-float2 = { path = " .." }
16
+ libfuzzer-sys = " 0.4.7 "
17
17
ryu = " 1.0"
18
18
19
19
[[bin ]]
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ mod tests {
41
41
}
42
42
43
43
#[ test]
44
+ #[ cfg_attr( miri, ignore) ]
44
45
fn test_pow5_table ( ) {
45
46
for q in SMALLEST_POWER_OF_FIVE ..=LARGEST_POWER_OF_FIVE {
46
47
let ( hi, lo) = compute_pow5_128 ( q) ;
You can’t perform that action at this time.
0 commit comments