Registry / web-framework / tide-rustls

tide-rustls

JSON →
library0.3.0rscratesunverified

Tide TLS listener based on async-rustls and rustls.

# Cargo.toml [dependencies] tide-rustls = "0.3.0"
INSTALL
IMPORT
SIG · TIDE-RUSTLS
T
tide-rustls
web-frameworkrustv0.3.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

TlsListener
✓ use tide_rustls::TlsListener;

Creates a Tide application with TLS support using rustls.

use tide_rustls::TlsListener; #[async_std::main] async fn main() -> tide::Result<()> { let listener = TlsListener::build() .cert_path("cert.pem") .key_path("key.pem") .finish()?; let mut app = tide::new(); app.at("/").get(|_| async { Ok("Hello") }); app.listen(listener).await?; Ok(()) }
Debug
Known issues
gotchaRequires async-std runtime; not compatible with tokio.
fix
Use async-std as the async runtime and ensure dependencies are aligned.
affects: >=0.3.0
Upgrade
Version history
0.3.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
tide-rustls — cargo add tide-rustls · libregistry