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:
10
10
- rust : stable
11
11
env :
12
12
- FEATURES='rayon'
13
+ - rust : stable
14
+ env :
15
+ - FEATURES='std'
13
16
- rust : beta
14
17
- rust : nightly
15
18
env :
Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " indexmap"
3
3
edition = " 2018"
4
- version = " 1.5.1 "
4
+ version = " 1.5.2 "
5
5
authors = [
6
6
" bluss" ,
7
7
" Josh Stone <cuviper@gmail.com>"
@@ -53,6 +53,9 @@ fxhash = "0.2.1"
53
53
# Serialization with serde 1.0
54
54
serde-1 = [" serde" ]
55
55
56
+ # Force the use of `std`, bypassing target detection.
57
+ std = []
58
+
56
59
# for testing only, of course
57
60
test_low_transition_point = []
58
61
test_debug = []
Original file line number Diff line number Diff line change @@ -66,6 +66,14 @@ which is roughly:
66
66
Recent Changes
67
67
==============
68
68
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
+
69
77
- 1.5.1
70
78
71
79
- Values can now be indexed by their ``usize `` position by @cuviper in PR 132 _.
Original file line number Diff line number Diff line change 1
1
fn 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
+ }
4
7
autocfg:: rerun_path ( "build.rs" ) ;
5
8
}
You can’t perform that action at this time.
0 commit comments