File tree Expand file tree Collapse file tree 4 files changed +20
-3
lines changed Expand file tree Collapse file tree 4 files changed +20
-3
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,9 @@ matrix:
1010 - rust : stable
1111 env :
1212 - FEATURES='rayon'
13+ - rust : stable
14+ env :
15+ - FEATURES='std'
1316 - rust : beta
1417 - rust : nightly
1518 env :
Original file line number Diff line number Diff line change 11[package ]
22name = " indexmap"
33edition = " 2018"
4- version = " 1.5.1 "
4+ version = " 1.5.2 "
55authors = [
66" bluss" ,
77" Josh Stone <cuviper@gmail.com>"
@@ -53,6 +53,9 @@ fxhash = "0.2.1"
5353# Serialization with serde 1.0
5454serde-1 = [" serde" ]
5555
56+ # Force the use of `std`, bypassing target detection.
57+ std = []
58+
5659# for testing only, of course
5760test_low_transition_point = []
5861test_debug = []
Original file line number Diff line number Diff line change @@ -66,6 +66,14 @@ which is roughly:
6666Recent Changes
6767==============
6868
69+ - 1.5.2
70+
71+ - The new "std" feature will force the use of ``std `` for users that explicitly
72+ want the default ``S = RandomState ``, bypassing the autodetection added in 1.3.0,
73+ by @cuviper in PR 145 _.
74+
75+ .. _145 : https://github.com/bluss/indexmap/pull/145
76+
6977- 1.5.1
7078
7179 - Values can now be indexed by their ``usize `` position by @cuviper in PR 132 _.
Original file line number Diff line number Diff line change 11fn main ( ) {
2- let ac = autocfg:: new ( ) ;
3- ac. emit_sysroot_crate ( "std" ) ;
2+ // If "std" is explicitly requested, don't bother probing the target for it.
3+ match std:: env:: var_os ( "CARGO_FEATURE_STD" ) {
4+ Some ( _) => autocfg:: emit ( "has_std" ) ,
5+ None => autocfg:: new ( ) . emit_sysroot_crate ( "std" ) ,
6+ }
47 autocfg:: rerun_path ( "build.rs" ) ;
58}
You can’t perform that action at this time.
0 commit comments