diff --git a/src/gencert.rs b/src/gencert.rs index 224c65b..33ff027 100644 --- a/src/gencert.rs +++ b/src/gencert.rs @@ -1,3 +1,11 @@ +//! Tools for automatically generating certificates +//! +//! Really, the only thing you will probably ever need from this module if you aren't +//! developing the project is the [`CertGenMode`] enum, which can be passed to +//! [`Server::set_certificate_generation_mode()`]. You won't even need to call any +//! methods on it or anything. +//! +//! [`Server::set_certificate_generation_mode()`]: crate::Server::set_certificate_generation_mode() use anyhow::{bail, Context, Result}; use rustls::ServerConfig; diff --git a/src/lib.rs b/src/lib.rs index caa0073..bbb3153 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -542,11 +542,6 @@ lazy_static! { pub static ref GEMINI_MIME: Mime = GEMINI_MIME_STR.parse().unwrap(); } -#[deprecated(note = "Use `GEMINI_MIME` instead", since = "0.3.0")] -pub fn gemini_mime() -> Result { - Ok(GEMINI_MIME.clone()) -} - /// A client cert verifier that accepts all connections /// /// Unfortunately, rustls doesn't provide a ClientCertVerifier that accepts self-signed