| Crates.io | axum-server-maybetlsacceptor |
| lib.rs | axum-server-maybetlsacceptor |
| version | 0.8.0 |
| created_at | 2025-11-17 18:17:58.724345+00 |
| updated_at | 2025-12-08 15:29:56.284607+00 |
| description | axum-server-compatible enum that lets you easily accepts connections with or without TLS. |
| homepage | |
| repository | https://github.com/X2A-LIMITED/axum-server-maybetlsacceptor |
| max_upload_size | |
| id | 1937292 |
| size | 55,887 |
axum-server-maybetlsacceptor is an axum-server-compatible enum that lets you easily accepts connections with or without TLS. The main goals were:
pin-project was chosen instead of pin-project-lite because it does not play well with other attributes such as cfg.
By default, no feature is enabled, meaning no TLS backend is available.
rustls: enable the rustls TLS backendopenssl: enable the openssl TLS backendVersion 0.8.x is compatible with axum-server version 0.8.y.
This crate's versioning will try to follow axum-server major versioning (or minor while being unstable 0.x.y).
You can find a basic example in examples/basic.rs
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.