body.rs |
|
7708 |
client.rs |
|
5982 |
error.rs |
|
2711 |
http_types.rs |
|
22520 |
io.rs |
|
5811 |
macros.rs |
|
1781 |
mod.rs |
# hyper C API
This part of the documentation describes the C API for hyper. That is, how
to *use* the hyper library in C code. This is **not** a regular Rust
module, and thus it is not accessible in Rust.
## Unstable
The C API of hyper is currently **unstable**, which means it's not part of
the semver contract as the rest of the Rust API is. Because of that, it's
only accessible if `--cfg hyper_unstable_ffi` is passed to `rustc` when
compiling. The easiest way to do that is setting the `RUSTFLAGS`
environment variable.
## Building
The C API is part of the Rust library, but isn't compiled by default. Using
`cargo`, it can be compiled with the following command:
```notrust
RUSTFLAGS="--cfg hyper_unstable_ffi" cargo build --features client,http1,http2,ffi
``` |
3022 |
task.rs |
|
12018 |