mirror of
https://github.com/async-rs/async-std.git
synced 2025-01-30 01:05:31 +00:00
Merge #282
282: init path submodule as unstable r=yoshuawuyts a=yoshuawuyts Ref #183. Similar to #257 this adds the `path` submodule as unstable. Filling in all re-exports from std for module completion. From there the we can build out `Path` and `PathBuf` accordingly. Thanks! Co-authored-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
This commit is contained in:
commit
ddee47231a
2 changed files with 23 additions and 0 deletions
|
@ -62,6 +62,8 @@ pub mod task;
|
|||
|
||||
cfg_if! {
|
||||
if #[cfg(any(feature = "unstable", feature = "docs"))] {
|
||||
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
|
||||
pub mod path;
|
||||
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
|
||||
pub mod pin;
|
||||
|
||||
|
|
21
src/path/mod.rs
Normal file
21
src/path/mod.rs
Normal file
|
@ -0,0 +1,21 @@
|
|||
//! Cross-platform path manipulation.
|
||||
//!
|
||||
//! This module is an async version of [`std::path`].
|
||||
//!
|
||||
//! [`std::path`]: https://doc.rust-lang.org/std/path/index.html
|
||||
|
||||
// Structs re-export
|
||||
#[doc(inline)]
|
||||
pub use std::path::{Ancestors, Components, Display, Iter, PrefixComponent, StripPrefixError};
|
||||
|
||||
// Enums re-export
|
||||
#[doc(inline)]
|
||||
pub use std::path::{Component, Prefix};
|
||||
|
||||
// Constants re-export
|
||||
#[doc(inline)]
|
||||
pub use std::path::MAIN_SEPARATOR;
|
||||
|
||||
// Functions re-export
|
||||
#[doc(inline)]
|
||||
pub use std::path::is_separator;
|
Loading…
Reference in a new issue