Skip to content

Commit dbfa947

Browse files
authored
RUST-968 Enable u2i feature by default (#294)
1 parent d112672 commit dbfa947

File tree

5 files changed

+18
-18
lines changed

5 files changed

+18
-18
lines changed

.evergreen/config.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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:
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
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

.evergreen/run-tests-u2i.sh

Lines changed: 0 additions & 9 deletions
This file was deleted.

Cargo.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff 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
3736
chrono-0_4 = []
3837
# if enabled, include API for interfacing with uuid 0.8
3938
uuid-0_8 = []
40-
# attempt to encode unsigned types in signed types
39+
# attempt to encode unsigned types in signed types in serde serializers
4140
u2i = []
4241

4342
[lib]

serde-tests/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@ authors = ["Kevin Yeh <[email protected]>"]
55
edition = "2018"
66

77
[features]
8+
default = ["u2i"]
89
u2i = ["bson/u2i"]
910

1011
[dependencies]
11-
bson = { path = ".." }
12+
bson = { path = "..", default-features = false }
1213
serde = { version = "1.0", features = ["derive"] }
1314
pretty_assertions = "0.6.1"
1415
hex = "0.4.2"

0 commit comments

Comments
 (0)