{"id":57271,"library":"native-tls","title":"Native-TLS","description":"A wrapper over a platform's native TLS implementation for secure networking.","status":"active","version":"0.2.18","language":"rust","source_language":null,"source_url":"https://github.com/rust-native-tls/rust-native-tls","tags":["tls","ssl","networking","security"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nnative-tls = \"0.2.18\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add native-tls","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"TlsConnector","correct":"use native_tls::TlsConnector;"}],"quickstart":{"code":"use native_tls::TlsConnector;\n\nfn main() -> Result<(), Box<dyn std::error::Error>> {\n    let connector = TlsConnector::new()?;\n    let stream = std::net::TcpStream::connect(\"example.com:443\")?;\n    let mut tls_stream = connector.connect(\"example.com\", stream)?;\n    Ok(())\n}","lang":"rust","description":"Creates a TLS connector and connects to a server."},"warnings":[{"fix":"Install OpenSSL development headers (e.g., libssl-dev on Ubuntu).","message":"Requires OpenSSL on Linux, which may need system libraries installed.","severity":"gotcha","affected_versions":">=0.2.0"}],"env_vars":null,"search_vec":"'implement':12 'nativ':2,10 'native-tl':1 'network':15,18 'platform':8 'secur':14,19 'ssl':17 'tls':3,11,16 'wrapper':5","created_at":"2026-06-16T15:35:47.175778+00:00","updated_at":"2026-06-16T15:35:47.175778+00:00","problems":[],"ecosystem":"crates","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://lib.rs/crates/native-tls","github":"https://github.com/rust-native-tls/rust-native-tls","docs":"https://docs.rs/native-tls/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["networking","crypto"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-16","next_check":"2026-12-13","install_tag":null}}