Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ stdio = []
# Enable `rustix::system::*`.
system = ["linux-raw-sys/system"]

# Enable `rustix::runtime::*`. ⚠ This API is undocumented and unstable and
# Enable `rustix::runtime_*::*`. ⚠ This API is undocumented and unstable and
# experimental and not intended for general-purpose use. ⚠
runtime = ["linux-raw-sys/prctl"]

Expand Down
11 changes: 10 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -309,12 +309,21 @@ pub mod thread;
pub mod time;

// "runtime" is also a public API module, but it's only for libc-like users.
//
// People have been observed using it in the wild, so as a counter-measure,
// it now has a name mangled with a random string that will rotate periodically.
#[cfg(not(windows))]
#[cfg(feature = "runtime")]
#[cfg(linux_raw)]
#[cfg_attr(not(document_experimental_runtime_api), doc(hidden))]
#[cfg_attr(docsrs, doc(cfg(feature = "runtime")))]
pub mod runtime_448b8ad740e2a26f;
#[cfg(not(windows))]
#[cfg(feature = "runtime")]
#[cfg(linux_raw)]
#[cfg_attr(not(document_experimental_runtime_api), doc(hidden))]
#[cfg_attr(docsrs, doc(cfg(feature = "runtime")))]
pub mod runtime;
pub(crate) use runtime_448b8ad740e2a26f as runtime;

// Declare "fs" as a non-public module if "fs" isn't enabled but we need it for
// reading procfs.
Expand Down
File renamed without changes.
Loading