#[async_std::main] async fn main() -> tide::Result<()> { let mut app = tide::new(); app.at("/").get(|_| async { Ok("Hello TLS") }); app.listen( TlsListener::build() .addrs("localhost:4433") .cert(std::env::var("TIDE_CERT_PATH").unwrap()) .key(std::env::var("TIDE_KEY_PATH").unwrap()), ) .await?; Ok(()) }
This crate uses #![deny(unsafe_code)]
to ensure everything is implemented in 100% Safe Rust.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4