rustls_ffi/
version.rs

1use crate::rslice::rustls_str;
2
3// version.rs gets written at compile time by build.rs
4include!(concat!(env!("OUT_DIR"), "/version.rs"));
5
6/// Returns a static string containing the rustls-ffi version as well as the
7/// rustls version. The string is alive for the lifetime of the program and does
8/// not need to be freed.
9#[no_mangle]
10pub extern "C" fn rustls_version() -> rustls_str<'static> {
11    rustls_str::from_str_unchecked(RUSTLS_FFI_VERSION)
12}