Skip to content

Commit a08a03c

Browse files
committed
msrv fixes
1 parent 9bd330e commit a08a03c

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

contrib/test.sh

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,20 @@ set -e
44

55
FEATURES="compiler use-serde rand"
66

7-
# Use toolchain if explicitly specified
8-
if [ -n "$TOOLCHAIN" ]
9-
then
10-
alias cargo="cargo +$TOOLCHAIN"
11-
fi
12-
137
cargo --version
148
rustc --version
159

10+
MSRV=false
11+
if cargo --version | grep "1\.41\.0"; then
12+
MSRV=true
13+
fi
14+
15+
if [ "$MSRV" = true ]; then
16+
cargo update -p url --precise 2.2.2
17+
cargo update -p form_urlencoded --precise 1.0.1
18+
cargo update -p once_cell --precise 1.13.1
19+
fi
20+
1621
# Format if told to
1722
if [ "$DO_FMT" = true ]
1823
then

fuzz/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ afl_fuzz = ["afl"]
1212
honggfuzz_fuzz = ["honggfuzz"]
1313

1414
[dependencies]
15-
honggfuzz = { version = "0.5", optional = true }
15+
honggfuzz = { version = "0.5", optional = true, default-features = false }
1616
afl = { version = "0.8", optional = true }
1717
regex = { version = "1.4"}
1818
elements-miniscript = { path = "..", features = ["compiler"] }

fuzz/travis-fuzz.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
set -e
3-
cargo install --force honggfuzz
3+
cargo install --force honggfuzz --no-default-features
44
for TARGET in fuzz_targets/*; do
55
FILENAME=$(basename $TARGET)
66
FILE="${FILENAME%.*}"

0 commit comments

Comments
 (0)