File tree Expand file tree Collapse file tree 4 files changed +33
-4
lines changed Expand file tree Collapse file tree 4 files changed +33
-4
lines changed Original file line number Diff line number Diff line change 10
10
TOOL : cargo
11
11
# The MSRV
12
12
TOOLCHAIN : 1.46.0
13
+ ZFLAGS :
13
14
14
15
# Tests that don't require executing the build binaries
15
16
build : &BUILD
16
17
build_script :
17
18
- . $HOME/.cargo/env || true
18
- - $TOOL +$TOOLCHAIN $BUILD --target $TARGET --all-targets
19
- - $TOOL +$TOOLCHAIN doc --no-deps --target $TARGET
19
+ - $TOOL +$TOOLCHAIN $BUILD $ZFLAGS --target $TARGET --all-targets
20
+ - $TOOL +$TOOLCHAIN doc $ZFLAGS --no-deps --target $TARGET
20
21
21
22
# Tests that do require executing the binaries
22
23
test : &TEST
@@ -226,6 +227,26 @@ task:
226
227
<< : *BUILD
227
228
before_cache_script : rm -rf $CARGO_HOME/registry/index
228
229
230
+ # Rust Tier 3 targets can't use Rustup
231
+ task :
232
+ container :
233
+ image : rustlang/rust:nightly
234
+ env :
235
+ BUILD : check
236
+ TOOLCHAIN : nightly
237
+ ZFLAGS : -Zbuild-std
238
+ matrix :
239
+ - name : DragonFly BSD x86_64
240
+ env :
241
+ TARGET : x86_64-unknown-dragonfly
242
+ - name : OpenBSD x86_64
243
+ env :
244
+ TARGET : x86_64-unknown-openbsd
245
+ setup_script :
246
+ - rustup component add rust-src
247
+ << : *BUILD
248
+ before_cache_script : rm -rf $CARGO_HOME/registry/index
249
+
229
250
# Test that we can build with the lowest version of all dependencies.
230
251
# "cargo test" doesn't work because some of our dev-dependencies, like
231
252
# rand, can't build with their own minimal dependencies.
Original file line number Diff line number Diff line change @@ -79,8 +79,10 @@ Tier 2:
79
79
80
80
Tier 3:
81
81
* x86_64-fuchsia
82
- * x86_64-unknown-redox
82
+ * x86_64-unknown-dragonfly
83
83
* x86_64-unknown-linux-gnux32
84
+ * x86_64-unknown-openbsd
85
+ * x86_64-unknown-redox
84
86
85
87
## Usage
86
88
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ status = [
4
4
" Android armv7" ,
5
5
" Android i686" ,
6
6
" Android x86_64" ,
7
+ " DragonFly BSD x86_64" ,
7
8
" FreeBSD amd64 & i686" ,
8
9
" Fuchsia x86_64" ,
9
10
" Linux MIPS" ,
@@ -25,6 +26,7 @@ status = [
25
26
" Linux x86_64" ,
26
27
" Minver" ,
27
28
" NetBSD x86_64" ,
29
+ " OpenBSD x86_64" ,
28
30
" OSX x86_64" ,
29
31
" Redox x86_64" ,
30
32
" Rust Stable" ,
Original file line number Diff line number Diff line change @@ -49,7 +49,11 @@ libc_enum! {
49
49
) , repr( i32 ) ) ]
50
50
#[ non_exhaustive]
51
51
pub enum Resource {
52
- #[ cfg( not( any( target_os = "netbsd" , target_os = "freebsd" ) ) ) ]
52
+ #[ cfg( not( any(
53
+ target_os = "freebsd" ,
54
+ target_os = "netbsd" ,
55
+ target_os = "openbsd"
56
+ ) ) ) ]
53
57
/// The maximum amount (in bytes) of virtual memory the process is
54
58
/// allowed to map.
55
59
RLIMIT_AS ,
You can’t perform that action at this time.
0 commit comments