mirror of
https://github.com/openharmony/third_party_rust_rustix.git
synced 2026-07-19 23:03:36 -04:00
a946a14762
* Introduce API features. * Don't use doc_cfg on internal modules. * Don't compile the net code when the "net" feature is not present. * Don't compile the runtime code when the "runtime" feature is not present. * Don't compile the thread code when the "thread" feature is not present. * Don't compile the time code when the "time" feature is not present. * Don't compile the fs code when the "fs" feature is not present. * Don't compile the rand code when the "rand" feature is not present. * Split an "mm" feature out of the "io" module. * Make some parts of "process"' implementation conditional. * "Inline" the use declarations in src/imp/linux_raw/fs/mod.rs. * Export `Timespec` and `ClockId` in `crate::thread`. * io_uring depends on types from fs and net. * Re-export Timespec etc. in crate::fs and crate::thread. This makes it easier to disable crate::time when the time module is not enabled. * Ensure that tests and examples compile when features are disabled. * Fix compilation.