webpki_roots/lib.rs
1//! A compiled-in copy of the root certificates trusted by Mozilla.
2//!
3//! To use this library with rustls 0.22:
4//!
5//! ```rust
6//! let root_store = rustls::RootCertStore {
7//! roots: webpki_roots::TLS_SERVER_ROOTS.to_vec(),
8//! };
9//! ```
10//!
11//! This library is suitable for use in applications that can always be recompiled and instantly deployed.
12//! For applications that are deployed to end-users and cannot be recompiled, or which need certification
13//! before deployment, consider a library that uses the platform native certificate verifier such as
14//! [rustls-platform-verifier]. This has the additional benefit of supporting OS provided CA constraints
15//! and revocation data.
16//!
17//! This crate version is a semver trick to webpki-roots v1. Users of it should
18//! migrate their dependency to webpki-roots v1 at their leisure.
19//!
20//! [rustls-platform-verifier]: https://docs.rs/rustls-platform-verifier
21
22#![no_std]
23#![forbid(unsafe_code, unstable_features)]
24#![deny(
25 elided_lifetimes_in_paths,
26 trivial_casts,
27 trivial_numeric_casts,
28 unused_import_braces,
29 unused_extern_crates,
30 unused_qualifications
31)]
32
33pub use parent::TLS_SERVER_ROOTS;