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:
8282 ${PREPARE_SHELL}
8383 .evergreen/run-tests.sh
8484
85- " run u2i tests " :
85+ " run tests no default features " :
8686 - command : shell.exec
8787 type : test
8888 params :
8989 shell : bash
9090 working_dir : " src"
9191 script : |
9292 ${PREPARE_SHELL}
93- .evergreen/run-tests-u2i .sh
93+ .evergreen/run-tests-no-default-features .sh
9494
9595 " compile only " :
9696 - command : shell.exec
@@ -146,9 +146,9 @@ tasks:
146146 commands :
147147 - func : " run tests"
148148
149- - name : " test-u2i "
149+ - name : " test-no-default-features "
150150 commands :
151- - func : " run u2i tests"
151+ - func : " run tests no default features "
152152
153153 - name : " compile-only"
154154 commands :
@@ -182,7 +182,7 @@ buildvariants:
182182 - ubuntu1804-test
183183 tasks :
184184 - name : " test"
185- - name : " test-u2i "
185+ - name : " test-no-default-features "
186186
187187- matrix_name : " compile only"
188188 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 = [
3131]
3232
3333[features ]
34- # no features by default
35- default = []
34+ default = [" u2i" ]
3635# if enabled, include API for interfacing with chrono 0.4
3736chrono-0_4 = []
3837# if enabled, include API for interfacing with uuid 0.8
3938uuid-0_8 = []
40- # attempt to encode unsigned types in signed types
39+ # attempt to encode unsigned types in signed types in serde serializers
4140u2i = []
4241
4342[lib ]
Original file line number Diff line number Diff line change 55edition = " 2018"
66
77[features ]
8+ default = [" u2i" ]
89u2i = [" bson/u2i" ]
910
1011[dependencies ]
11- bson = { path = " .." }
12+ bson = { path = " .." , default-features = false }
1213serde = { version = " 1.0" , features = [" derive" ] }
1314pretty_assertions = " 0.6.1"
1415hex = " 0.4.2"
You can’t perform that action at this time.
0 commit comments