summaryrefslogtreecommitdiff
path: root/Cargo.toml
Commit message (Collapse)AuthorAgeFilesLines
* libc 0.2.790.2.79Josh Triplett2020-10-041-1/+1
|
* libc 0.2.780.2.78Josh Triplett2020-09-301-1/+1
|
* Bump up to 0.2.77Daniil Bondarev2020-08-241-1/+1
|
* Bump up to 0.2.76Yuki Okushi2020-08-201-1/+1
|
* libc 0.2.75Josh Triplett2020-08-181-1/+1
|
* Bump version to 0.2.74Glenn Hope2020-07-271-1/+1
| | | This includes changes which will allow us to successfully build `libstd` for the PSP.
* Bump to 0.2.73Jake Goulding2020-07-191-1/+1
| | | | | This incorporates the changes needed to cross-compile `rustc` for the aarch64-apple-darwin target.
* Bump version ready to import into Android tree.Andrew Walbran2020-07-021-1/+1
|
* Bump version to 0.2.71Jeremy Soller2020-05-211-1/+1
|
* Bump version to 0.2.70Tom Eccles2020-05-121-1/+1
|
* Bump version to 0.2.69Alexander Batischev2020-04-131-1/+1
|
* Bump version to 0.2.68Andre Nathan2020-03-131-1/+1
|
* Update badges metadata on Cargo.tomlYuki Okushi2020-03-111-2/+2
|
* Bump to 0.2.67.Noah Gold2020-02-201-1/+1
| | | | Includes bindings for the libc function gmtime_s.
* Bump patch version to 0.2.660.2.66gnzlbg2019-11-291-1/+1
|
* Auto merge of #1536 - Aaron1011:feature/const-fn, r=gnzlbgbors2019-11-181-0/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for making functions `const` PR https://github.com/rust-lang/rust/pull/64906 adds the ability to write `const extern fn` and `const unsafe extern fn`, which will allow manys functions in `libc` to become `const`. This is particuarly useful for functions which correspond to C macros (e.g. `CMSG_SPACE`). In C, these macros are constant expressions, allowing them to be used when declaring arrays. However, since the corresponding `libc` functions are not `const`, writing equivalent Rust code is impossible. Users must either perform an unecessary heap allocation, or pull in `bindgen` to evaluate the macro for specific values (e.g. `CMSG_SPACE(1)`). However, the syntax `const extern fn` is not currently parsed by rust. To allow libc to use this without breaking backwards compatibility (i.e. bumping the minimum Rust version), I've taken the following approach: 1. A new off-by-default feature `extern-const-fn` is added to `libc`. 2. The internal `f!` macro has two versions, selected at compile-time by a `cfg_if`. When `extern-const-fn` is enabled, the declared `f!` macro passes through the `const` keyword from the macro user to the final definition (`pub const unsafe extern fn foo`. When `extern-const-fn` is disabled, the `const` keyword passed by the macro user is discarded, resulting in a plain `pub extern const fn` being declared. Unfortunately, I couldn't manage to get `macro_rules` to accept a normal `const` token in the proper place (after `pub`). I had to resort to placing it in curly brackets: ```rust pub {const} fn foo(val: u8) -> i8 { } ``` The `f!` macro then translates this to a function definition with `const` in the proper position. I'd appreciate it if someone who's more familiar with `macro_rules!` could see if I missed a way to get the desired syntax.
| * Add support for declaring 'const fn'Aaron Hill2019-10-271-0/+1
| | | | | | | | | | Add a new feature to enable this, since `const extern fn` support is unstable
* | Bump patch version to 0.2.650.2.65gnzlbg2019-10-181-1/+1
|/
* Update Cargo.toml to 0.2.64gnzlbg2019-08-201-1/+1
|
* Bump version to 0.2.63Wang Xuerui2019-08-171-1/+1
|
* Update minor patch version to 0.2.62gnzlbg2019-08-141-1/+1
|
* Auto merge of #1458 - jackpot51:patch-1, r=gnzlbgbors2019-08-121-1/+1
|\ | | | | | | | | | | Bump version to 0.2.61 Releasing a version now will allow Redox compilation to work again, as it will include #1438
| * Bump version to 0.2.61Jeremy Soller2019-08-061-1/+1
| |
* | Patch mingw libraries for windows gnu targetsgnzlbg2019-07-271-1/+1
|/
* Bump patch version to 0.2.600.2.60gnzlbg2019-07-151-1/+1
|
* Bump patch versiongnzlbg2019-07-081-1/+1
|
* Bump patch version to 0.2.58gnzlbg2019-06-021-1/+1
|
* Bump patch version to 0.2.57gnzlbg2019-05-311-1/+1
|
* Bump libc version to 0.2.56gnzlbg2019-05-281-1/+1
|
* Deprecate `use_std` cargo feature: use `std` instead .gnzlbg2019-05-241-2/+4
| | | | Related to #657 .
* Bump version to 0.2.55Jeremy Soller2019-05-161-1/+1
|
* Bump patch version to 0.2.54gnzlbg2019-05-021-1/+1
|
* Bump to 0.2.53Dan Gohman2019-04-261-1/+1
| | | | | | | This adds more WASI support, and in particular adds support for WASI being a target_os rather than a target_env, which relates to this PR: https://github.com/rust-lang/rust/pull/60117
* Bump to 0.2.52Jeremy Soller2019-04-191-1/+1
|
* Bump to 0.2.51Alex Crichton2019-03-281-1/+1
|
* Bump libc versionleo602282019-03-041-1/+1
|
* Bump libc versiongnzlbg2019-02-131-1/+1
|
* Fix build on all platformsgnzlbg2019-02-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This PR fixes the build on all platforms and all Rust version down to the minimum Rust version supported by libc: Rust 1.13.0. The `build.rs` is extended with logic to detect the newer Rust features used by `libc` since Rust 1.13.0: * Rust 1.19.0: `untagged_unions`. APIs using untagged unions are gated on `cfg(libc_unions)` and not available on older Rust versions. * Rust 1.25.0: `repr(align)`. Because `repr(align)` cannot be parsed by older Rust versions, all uses of `repr(align)` are split into `align.rs` and `no_align.rs` modules, which are gated on the `cfg(libc_align)` at the top level. These modules sometimes contain macros that are expanded at the top level to avoid privacy issues (`pub(crate)` is not available in older Rust versions). Closes #1242 . * Rust : `const` `mem::size_of`. These uses are worked around with hardcoded constants on older Rust versions. Also, `repr(packed)` structs cannot automatically `derive()` some traits like `Debug`. These have been moved into `s_no_extra_traits!` and the lint of missing `Debug` implementations on public items is silenced for these. We can manually implement the `extra_traits` for these in a follow up PR. This is tracked in #1243. Also, `extra_traits` does not enable `align` manually anymore. Since `f64::to_bits` is not available in older Rust versions, its usage has been replaced with a `transmute` to an `u64` which is what that method does under the hood. Closes #1232 .
* Implement PartialEq,Eq for all typesBryant Mairs2019-02-021-0/+1
|
* Bump to 0.2.48gnzlbg2019-01-231-1/+1
|
* Bump version to 0.2.47Jeremy Soller2019-01-141-1/+1
|
* Bump version to 0.2.46John Paul Adrian Glaubitz2019-01-021-1/+1
|
* Fix build on x86_64-unknown-cloudabi, bump versionAlex Crichton2018-12-091-1/+1
|
* Use crates.io keywords and categoriesgnzlbg2018-11-221-4/+5
| | | | Closes #651 .
* Prepare for being included via crates.io into stdAlex Crichton2018-11-211-2/+5
| | | | | | | | | | | This commit prepares the `libc` crate to be included directly into the standard library via crates.io. More details about this can be found on rust-lang/rust#56092, but the main idea is that this crate now depends on core/compiler-builtins explicitly (but off-by-default). The main caveat here is that this activates `no_core` when building as part of libstd, which means that it needs to explicitly have an `iter` and `option` module for the expansion of `for` loops to work.
* use OR in the license fieldArtyom Pavlov2018-11-161-1/+1
|
* exclude CI files from crates.ioIgor Gnatenko2018-10-261-0/+1
|
* Re-export core::ffi::c_void if supportedIsaac Woods2018-09-181-0/+1
|
* Bump version to 0.2.43Linus Färnstrand2018-08-061-1/+1
|
* Add align feature and use on in6_addrLinus Färnstrand2018-07-291-0/+1
|