Skip to content

Commit a300697

Browse files
committed
CI fixes for MSRV and benches
1 parent 0ac0326 commit a300697

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

contrib/test.sh

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,19 @@ FEATURES="compiler serde rand base64"
77
cargo --version
88
rustc --version
99

10+
# Pin dependencies required to build with Rust 1.41.1
11+
if cargo --version | grep "1\.41\.0"; then
12+
cargo update -p serde --precise 1.0.156
13+
cargo update -p syn --precise 1.0.107
14+
fi
15+
1016
# Format if told to
1117
if [ "$DO_FMT" = true ]
1218
then
1319
rustup component add rustfmt
1420
cargo fmt -- --check
1521
fi
1622

17-
# Pin dependencies required to build with Rust 1.41.1
18-
if cargo --version | grep "1\.41\.0"; then
19-
cargo update -p once_cell --precise 1.13.1
20-
fi
21-
22-
# Pin dependencies required to build with Rust 1.47.0
23-
if cargo --version | grep "1\.47\.0"; then
24-
cargo update -p once_cell --precise 1.13.1
25-
fi
26-
2723
# Fuzz if told to
2824
if [ "$DO_FUZZ" = true ]
2925
then

src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@
8888
//! ```
8989
//!
9090
//!
91+
92+
#![cfg_attr(all(test, feature = "unstable"), feature(test))]
93+
// Coding conventions
9194
#![allow(bare_trait_objects)]
9295
#![deny(non_camel_case_types)]
9396
#![deny(non_snake_case)]

0 commit comments

Comments
 (0)