Lines Matching +full:use +full:- +full:libc
1 # libc - Raw FFI bindings to platforms' system libraries
5 `libc` provides all of the definitions necessary to easily interoperate with C
6 code (or "C-like" code) on each of the platforms that Rust supports. This
11 the crate root, so all items are accessible as `libc::foo`. The types and values
12 of all the exported APIs match the platform that libc is compiled for.
17 [rfc]: https://github.com/rust-lang/rfcs/blob/master/text/1291-promote-libc.md
25 libc = "0.2"
30 * `std`: by default `libc` links to the standard library. Disable this
31 feature to remove this dependency and be able to use `libc` in `#![no_std]`
34 * `extra_traits`: all `struct`s implemented in `libc` are `Copy` and `Clone`.
37 * `const-extern-fn`: Changes some `extern fn`s into `const extern fn`s.
38 If you use Rust >= 1.62, this feature is implicitly enabled.
46 (libc does not currently have any policy regarding changes to the minimum
51 |----------------------|---------|
59 | `const-extern-fn` | 1.62.0 |
63 [Platform-specific documentation (master branch)][docs.master].
66 [`ci/build.sh`](https://github.com/rust-lang/libc/blob/master/ci/build.sh)
67 for the platforms on which `libc` is guaranteed to build for each Rust
68 toolchain. The test-matrix at [GitHub Actions] and [Cirrus CI] show the
69 platforms in which `libc` tests are run.
77 * [Apache License, Version 2.0](https://www.apache.org/licenses/LICENSE-2.0)
78 ([LICENSE-APACHE](https://github.com/rust-lang/libc/blob/master/LICENSE-APACHE))
81 ([LICENSE-MIT](https://github.com/rust-lang/libc/blob/master/LICENSE-MIT))
90 [contributing instructions]: https://github.com/rust-lang/libc/blob/master/CONTRIBUTING.md
95 [Code of Conduct]: https://www.rust-lang.org/policies/code-of-conduct
98 for inclusion in `libc` by you, as defined in the Apache-2.0 license, shall be
101 [GitHub Actions]: https://github.com/rust-lang/libc/actions
102 [GHA Status]: https://github.com/rust-lang/libc/workflows/CI/badge.svg
103 [Cirrus CI]: https://cirrus-ci.com/github/rust-lang/libc
104 [Cirrus CI Status]: https://api.cirrus-ci.com/github/rust-lang/libc.svg
105 [crates.io]: https://crates.io/crates/libc
106 [Latest Version]: https://img.shields.io/crates/v/libc.svg
107 [Documentation]: https://docs.rs/libc/badge.svg
108 [docs.rs]: https://docs.rs/libc
109 [License]: https://img.shields.io/crates/l/libc.svg
110 [docs.master]: https://rust-lang.github.io/libc/#platform-specific-documentation