rustls 0.23.16

Rustls is a modern TLS library written in Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/// This build script allows us to enable the `read_buf` language feature only
/// for Rust Nightly.
///
/// See the comment in lib.rs to understand why we need this.

#[cfg_attr(feature = "read_buf", rustversion::not(nightly))]
fn main() {
    println!("cargo:rustc-check-cfg=cfg(bench)");
    println!("cargo:rustc-check-cfg=cfg(read_buf)");
}

#[cfg(feature = "read_buf")]
#[rustversion::nightly]
fn main() {
    println!("cargo:rustc-check-cfg=cfg(bench)");
    println!("cargo:rustc-check-cfg=cfg(read_buf)");
    println!("cargo:rustc-cfg=read_buf");
}