File tree Expand file tree Collapse file tree 5 files changed +18
-18
lines changed Expand file tree Collapse file tree 5 files changed +18
-18
lines changed Original file line number Diff line number Diff line change @@ -82,15 +82,15 @@ functions:
82
82
${PREPARE_SHELL}
83
83
.evergreen/run-tests.sh
84
84
85
- " run u2i tests " :
85
+ " run tests no default features " :
86
86
- command : shell.exec
87
87
type : test
88
88
params :
89
89
shell : bash
90
90
working_dir : " src"
91
91
script : |
92
92
${PREPARE_SHELL}
93
- .evergreen/run-tests-u2i .sh
93
+ .evergreen/run-tests-no-default-features .sh
94
94
95
95
" compile only " :
96
96
- command : shell.exec
@@ -146,9 +146,9 @@ tasks:
146
146
commands :
147
147
- func : " run tests"
148
148
149
- - name : " test-u2i "
149
+ - name : " test-no-default-features "
150
150
commands :
151
- - func : " run u2i tests"
151
+ - func : " run tests no default features "
152
152
153
153
- name : " compile-only"
154
154
commands :
@@ -182,7 +182,7 @@ buildvariants:
182
182
- ubuntu1804-test
183
183
tasks :
184
184
- name : " test"
185
- - name : " test-u2i "
185
+ - name : " test-no-default-features "
186
186
187
187
- matrix_name : " compile only"
188
188
matrix_spec :
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ set -o errexit
4
+
5
+ . ~ /.cargo/env
6
+ RUST_BACKTRACE=1 cargo test --no-default-features
7
+
8
+ cd serde-tests
9
+ RUST_BACKTRACE=1 cargo test --no-default-features
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -31,13 +31,12 @@ exclude = [
31
31
]
32
32
33
33
[features ]
34
- # no features by default
35
- default = []
34
+ default = [" u2i" ]
36
35
# if enabled, include API for interfacing with chrono 0.4
37
36
chrono-0_4 = []
38
37
# if enabled, include API for interfacing with uuid 0.8
39
38
uuid-0_8 = []
40
- # attempt to encode unsigned types in signed types
39
+ # attempt to encode unsigned types in signed types in serde serializers
41
40
u2i = []
42
41
43
42
[lib ]
Original file line number Diff line number Diff line change 5
5
edition = " 2018"
6
6
7
7
[features ]
8
+ default = [" u2i" ]
8
9
u2i = [" bson/u2i" ]
9
10
10
11
[dependencies ]
11
- bson = { path = " .." }
12
+ bson = { path = " .." , default-features = false }
12
13
serde = { version = " 1.0" , features = [" derive" ] }
13
14
pretty_assertions = " 0.6.1"
14
15
hex = " 0.4.2"
You can’t perform that action at this time.
0 commit comments