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/HEAD/text/1291-promote-libc.md
23 For v0.2, please submit PRs to the `libc-0.2` branch instead.
26 See the [tracking issue](https://github.com/rust-lang/libc/issues/3248) for details.
34 libc = "0.2"
39 * `std`: by default `libc` links to the standard library. Disable this
40 feature to remove this dependency and be able to use `libc` in `#![no_std]`
43 * `extra_traits`: all `struct`s implemented in `libc` are `Copy` and `Clone`.
46 * `const-extern-fn`: Changes some `extern fn`s into `const extern fn`s.
47 If you use Rust >= 1.62, this feature is implicitly enabled.
55 (libc does not currently have any policy regarding changes to the minimum
60 |----------------------|---------|
68 | `const-extern-fn` | 1.62.0 |
72 You can see the platform(target)-specific docs on [docs.rs], select a platform you want to see.
75 [`ci/build.sh`](https://github.com/rust-lang/libc/blob/HEAD/ci/build.sh)
76 for the platforms on which `libc` is guaranteed to build for each Rust
77 toolchain. The test-matrix at [GitHub Actions] and [Cirrus CI] show the
78 platforms in which `libc` tests are run.
86 * [Apache License, Version 2.0](https://www.apache.org/licenses/LICENSE-2.0)
87 ([LICENSE-APACHE](https://github.com/rust-lang/libc/blob/HEAD/LICENSE-APACHE))
90 ([LICENSE-MIT](https://github.com/rust-lang/libc/blob/HEAD/LICENSE-MIT))
99 [contributing instructions]: https://github.com/rust-lang/libc/blob/HEAD/CONTRIBUTING.md
104 [Code of Conduct]: https://www.rust-lang.org/policies/code-of-conduct
107 for inclusion in `libc` by you, as defined in the Apache-2.0 license, shall be
110 [GitHub Actions]: https://github.com/rust-lang/libc/actions
111 [GHA Status]: https://github.com/rust-lang/libc/workflows/CI/badge.svg
112 [Cirrus CI]: https://cirrus-ci.com/github/rust-lang/libc
113 [Cirrus CI Status]: https://api.cirrus-ci.com/github/rust-lang/libc.svg
114 [crates.io]: https://crates.io/crates/libc
115 [Latest Version]: https://img.shields.io/crates/v/libc.svg
116 [Documentation]: https://docs.rs/libc/badge.svg
117 [docs.rs]: https://docs.rs/libc
118 [License]: https://img.shields.io/crates/l/libc.svg