rustls_ffi/
lib.rs

1#![crate_type = "staticlib"]
2#![allow(non_camel_case_types)]
3// TODO(XXX): Remove `renamed_and_removed_lints` once stable renames `thread_local_initializer_can_be_made_const`
4#![allow(renamed_and_removed_lints)]
5#![allow(clippy::not_unsafe_ptr_arg_deref)]
6// TODO(#333): Fix this clippy warning.
7#![allow(clippy::arc_with_non_send_sync)]
8#![cfg_attr(feature = "read_buf", feature(read_buf))]
9#![cfg_attr(feature = "read_buf", feature(core_io_borrowed_buf))]
10
11//! This package contains bindings for using rustls via a C API. If
12//! you're looking at this on docs.rs, [you may want the rustls docs
13//! instead](https://docs.rs/rustls/latest/rustls/).
14//!
15//! Even though this is a C API, it is published on crates.io so other crates that
16//! wrap a different C API (like curl) can depend on it.
17//!
18//! [You may also want to read the rustls-ffi README](https://github.com/rustls/rustls-ffi#rustls-ffi-bindings).
19
20pub mod acceptor;
21pub mod certificate;
22pub mod cipher;
23pub mod client;
24pub mod connection;
25pub mod crypto_provider;
26pub mod enums;
27mod error;
28mod ffi;
29pub mod io;
30pub mod keylog;
31pub mod log;
32mod panic;
33pub mod rslice;
34pub mod server;
35pub mod session;
36mod userdata;
37pub mod verifier;
38pub mod version;
39
40pub use error::rustls_result;
41pub use error::*;
42pub use version::rustls_version;