init path submodule as unstable

Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
pull/282/head
Yoshua Wuyts 5 years ago
parent 51e7f880b1
commit 5b05846fb0
No known key found for this signature in database
GPG Key ID: 24EA8164F96777ED

@ -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;

@ -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…
Cancel
Save