Commit Graph

4458 Commits

Author SHA1 Message Date
Lu, Wangshan 4b9e959f96
Bump to 0.2.93 2021-04-06 17:53:34 +08:00
bors 02fac7f2a6 Auto merge of #2139 - JohnTitor:style-rework, r=Amanieu
Clean-up the style check

- Only run the cfg check for single lines
  - This is a temporary workaround for the multiline `cfg`s.
- Allow long comments containing a link
  - I don't think it makes much sense to break comments containing the reference links.
- Relax the line length limit to 100
  - Given the `cfg` condition often becomes complex, the 80 characters limit is too strict for me.
2021-04-06 06:13:31 +00:00
Yuki Okushi 3fae7e9ce7 Fix style 2021-04-06 10:10:29 +09:00
Yuki Okushi 3a8521a7a1 Relax the line length limit to 100 2021-04-06 09:55:52 +09:00
Yuki Okushi 714f302b92 Allow long comments containing a link 2021-04-06 09:52:02 +09:00
Yuki Okushi 703924fad8 Only run the cfg check for single lines 2021-04-06 09:49:48 +09:00
bors ac494b16a5 Auto merge of #2135 - zonyitoo:master, r=JohnTitor
Unified all Linux sockopts definitions by arch

- ref rust-lang/socket2#213

Fixes #2133
2021-04-05 23:56:37 +00:00
zonyitoo 682eba6116 Unified all Linux sockopts definitions by arch
- fixed other missing SO_INCOMING_CPU definition in rust-lang/socket2#213
2021-04-05 22:45:59 +08:00
bors 3a31a5f42c Auto merge of #2138 - JohnTitor:rerun-if-changed, r=Amanieu
Specify `cargo:rerun-if-changed=build.rs` to avoid re-building

Fixes #1978
r? `@Amanieu`
2021-04-05 07:38:33 +00:00
Yuki Okushi 45e1681d90 Specify `cargo:rerun-if-changed=build.rs` to avoid re-building 2021-04-05 03:23:02 +09:00
bors 5114daa8ff Auto merge of #2137 - asomers:netbsd-unpacked, r=Amanieu
Removed repr(packed) from some NetBSD structures

The structures in question have always been properly aligned, so the
packed attribute only serves to generate annoying compiler warnings.  It
will be removed in the next release of NetBSD.

415c686e20
2021-04-04 16:14:03 +00:00
Alan Somers ec13c82bc9 Removed repr(packed) from some NetBSD structures
The structures in question have always been properly aligned, so the
packed attribute only serves to generate annoying compiler warnings.  It
will be removed in the next release of NetBSD.

415c686e20
2021-04-04 10:05:10 -06:00
bors 95e259f8e8 Auto merge of #2136 - semarie:openbsd-semver, r=JohnTitor
unbreak openbsd after #2109

several symbols added to semver regression tests in "unix" aren't defined on OpenBSD.
move these symbols in OS specific files.
2021-04-04 13:57:24 +00:00
Sébastien Marie 08ec0d68e2 unbreak openbsd after #2109
several symbols added to semver regression tests in "unix" aren't defined on OpenBSD.
move these symbols in OS specific files.
2021-04-04 13:19:28 +00:00
bors 0a93b70496 Auto merge of #2109 - Thomasdezeeuw:issue_2104-regression_tests, r=JohnTitor
Add regression test infrastructure

Please the commit messages for details.

I still need to add lists for the following targets, but I got the major ones I think.

TODO:
* aarch64-unknown-hermit
* x86_64-unknown-hermit
* x86_64-pc-solaris
* x86_64-sun-solaris
* sparcv9-sun-solaris
* x86_64-fortanix-unknown-sgx
* x86_64-unknown-illumos
* asmjs-unknown-emscripten
* wasm32-unknown-emscripten
* wasm32-unknown-unknown
* wasm32-wasi
* Check symbols added after commit ed45c2649b.

TODO: add a bit to the contributing guide about adding to these lists.

Closes #2104.
2021-04-02 12:53:21 +00:00
Thomas de Zeeuw 418c48139b Output PASSED 1 tests in semver test
Testing on Android (in ci/runtest-android.rs) seems to depend on the
test outputting it was successful.
2021-04-02 13:24:28 +02:00
Thomas de Zeeuw ed1399a346 Fix semver test for x86_64-unknown-linux-gnux32 target 2021-04-02 12:33:28 +02:00
Thomas de Zeeuw 00f4b0fc37 Fix semver test for Linux mips musl targets
* mips-unknown-linux-musl
 * mipsel-unknown-linux-musl
2021-04-02 12:28:56 +02:00
Thomas de Zeeuw 321ac9d529 Fix semver test for Linux ARM targets
Fixes it for at least the following targets:
 * aarch64-unknown-linux-gnu
 * arm-linux-androideabi
 * arm-unknown-linux-gnueabihf
 * arm-unknown-linux-gnueabihf
 * arm-unknown-linux-musleabihf
2021-04-02 12:21:15 +02:00
Thomas de Zeeuw 9361be07d0 Fix semver test for asmjs-unknown-emscripten target 2021-04-02 12:20:50 +02:00
bors 10d99b96e0 Auto merge of #2134 - vilgotf:patch-1, r=JohnTitor
Fix typo in swapoff

Seems no one's noticed this in 4 years... First commit for me it is :D
2021-03-30 20:40:02 +00:00
Vilgot Fredenberg cbee28b025
Fix typo in swapoff 2021-03-30 22:29:43 +02:00
bors 77056408a1 Auto merge of #2128 - GuillaumeGomez:bump-version, r=JohnTitor
Bump crate version to 0.2.92

Could it be possible to have a new release in the coming days please? Thanks in advance!
2021-03-30 10:15:36 +00:00
Guillaume Gomez 172771e8c6 Bump crate version to 0.2.92 2021-03-30 12:04:45 +02:00
bors f2e7721d31 Auto merge of #2132 - JohnTitor:cmsg-space, r=Amanieu
Constify `CMSG_SPACE` for all the targets

`CMSG_SPACE` is a const fn for Linux but it isn't for other targets. This constifies it on all the targets for consistency.

Fixes #2087
2021-03-30 08:43:35 +00:00
JohnTitor e187543fdd Constify `CMSG_SPACE` for all the targets 2021-03-30 17:37:13 +09:00
bors 8df930f012 Auto merge of #2131 - JohnTitor:pwrite64-uclibc, r=Amanieu
Make `pwrite64` available on uclibc

Fixes #2130
2021-03-30 06:21:32 +00:00
JohnTitor 7a3e51a770 Make `pwrite64` available on uclibc 2021-03-30 15:19:36 +09:00
bors f913fc53a6 Auto merge of #2129 - GuillaumeGomez:more-missing-types, r=JohnTitor
Add more apple types

Forgot a few.

If it could be merged before https://github.com/rust-lang/libc/pull/2128, it'd be awesome! Thanks in advance. :)
2021-03-29 20:19:44 +00:00
Guillaume Gomez 0d89fe28f8 Add the following types:
* processor_flavor_t
 * processor_info_t
 * processor_info_array_t
2021-03-29 21:52:05 +02:00
bors 9a62493baf Auto merge of #2127 - GuillaumeGomez:processor_cpu_load_info, r=JohnTitor
Add processor_cpu_load_info struct and processor_cpu_load_info_t alias
2021-03-29 15:00:13 +00:00
Guillaume Gomez 86236a83f7 Add the following elements:
* processor_cpu_load_info
 * processor_cpu_load_info_t
 * processor_cpu_load_info_data_t
 * processor_basic_info
 * processor_basic_info_t
 * processor_basic_info_data_t
 * processor_set_basic_info
 * processor_set_basic_info_t
 * processor_set_basic_info_data_t
 * processor_set_load_info
 * processor_set_load_info_t
 * processor_set_load_info_data_t
 * natural_t
 * mach_msg_type_number_t
 * PROCESSOR_BASIC_INFO
 * PROCESSOR_CPU_LOAD_INFO
 * PROCESSOR_PM_REGS_INFO
 * PROCESSOR_TEMPERATURE
 * PROCESSOR_SET_BASIC_INFO
 * PROCESSOR_SET_LOAD_INFO
2021-03-29 16:46:20 +02:00
Thomas de Zeeuw 8fb63e8c93 Fix semver lists for Linux using musl 2021-03-27 11:10:52 +01:00
Thomas de Zeeuw 60112163ce Support architecture environment specific semver lists
This allow lists like "linux-gnu-x86_64" which is only used for Linux,
using GNU libc on 64 bit x86.
2021-03-27 11:01:16 +01:00
Thomas de Zeeuw 0758ff06a0 Add section about semver list to contributing guide 2021-03-27 10:27:17 +01:00
Thomas de Zeeuw f8ba06be3a Add Fuchsia semver list 2021-03-27 10:27:17 +01:00
Thomas de Zeeuw e0c8a6a69d Add OpenBSD semver list 2021-03-27 10:27:17 +01:00
Thomas de Zeeuw dff7f65524 Add DragonFlyBSD semver list 2021-03-27 10:27:17 +01:00
Thomas de Zeeuw 60b9fe9ff8 Fix NetBSD semver list for 32 bits 2021-03-27 10:27:17 +01:00
Thomas de Zeeuw eb998bf44b Fix the semver list for 32 bit FreeBSD 2021-03-27 10:27:17 +01:00
Thomas de Zeeuw aa1c8ea6ba Add Android semver lists
One would expect Android to include the Unix and Linux lists, as it's
Linux based. However because Android is missing too many definitions I
found it easier to create a fully separate list for Android
specifically.
2021-03-27 10:27:17 +01:00
Thomas de Zeeuw f18ba37144 Add Linux semver lists 2021-03-27 10:27:17 +01:00
Thomas de Zeeuw 82f32fd447 Remove O_EXLOCK and O_SHLOCK from Unix semver list
Linux doesn't seem to have these.
2021-03-27 10:27:17 +01:00
Thomas de Zeeuw 016542e8db Create common Unix semver list
This currently includes are definitions available on Apple, FreeBSD,
NetBSD and Redox.
2021-03-27 10:27:17 +01:00
Thomas de Zeeuw 9e71659f57 Add README to semver directory 2021-03-27 10:27:17 +01:00
Thomas de Zeeuw c36eff48ad Add NetBSD semver list 2021-03-27 10:27:17 +01:00
Thomas de Zeeuw 2751674390 Add Redox semver list 2021-03-27 10:27:17 +01:00
Thomas de Zeeuw 6384bbf48c Add FreeBSD semver list 2021-03-27 10:27:17 +01:00
Thomas de Zeeuw 64950da005 Add semver list for Apple's iOS and macOS 2021-03-27 10:27:17 +01:00
Thomas de Zeeuw c84bd4e915 Add Window semver list 2021-03-27 10:27:17 +01:00