Merge branch 'doc-rs'

This commit is contained in:
Mathieu Trossevin 2024-01-09 10:39:01 +01:00
commit 10c4028f49
Signed by: mtrossevin
GPG key ID: D1DBB7EA828374E9
3 changed files with 21 additions and 2 deletions

View file

@ -19,3 +19,16 @@ notify = ["dep:libc", "dep:rustix"]
libc = { version = "0.2.150", optional = true }
log = "0.4.20"
rustix = { version = "0.38.26", optional = true, features = ["net"] }
[package.metadata.docs.rs]
features = ["listenfd", "notify"]
rustdoc-args = ["--cfg", "doc_cfg"]
targets = [
"x86_64-unknown-linux-gnu",
"i686-unknown-linux-gnu",
"x86_64-apple-darwin",
"x86_64-unknown-freebsd",
"x86_64-unknown-openbsd",
"x86_64-unknown-netbsd",
"wasm32-unknown-emscripten"
]

View file

@ -1,4 +1,10 @@
//! A library permitting interaction with the LISTEN_FDS and NOTIFY_SOCKET protocol.
#![cfg_attr(doc_cfg, feature(doc_cfg))]
#[cfg(feature = "listenfd")]
#[cfg_attr(doc_cfg, doc(cfg(feature = "listenfd")))]
pub mod listen;
#[cfg(feature = "notify")]
#[cfg_attr(doc_cfg, doc(cfg(feature = "notify")))]
pub mod notify;

View file

@ -104,7 +104,7 @@ impl FileDescriptor {
///
/// # Errors
///
/// This function will fail if no file descriptor colud be received which might not actually be an error. See [`ReceiveError`] for details.
/// This function will fail if no file descriptor could be received which might not actually be an error. See [`ReceiveError`] for details.
pub fn receive(
unset_env: bool,
) -> Result<impl IntoIterator<Item = Result<Self, DupError>>, ReceiveError> {
@ -125,7 +125,7 @@ impl FileDescriptor {
///
/// # Errors
///
/// This function will fail if no file descriptor colud be received which might not actually be an error. See [`ReceiveError`] for details.
/// This function will fail if no file descriptor could be received which might not actually be an error. See [`ReceiveError`] for details.
///
/// # Safety
///