Skip to content

async_std::fmt #257

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
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
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://book.async.rs/overview

## [Unreleased]

## Changed

- Added the `fmt` submodule as unstable, with re-exports from `std`.

# [0.99.8] - 2019-09-28

## Changed
Expand Down
24 changes: 24 additions & 0 deletions src/fmt/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
//! Utilities for formatting and printing `String`s.
//!
//! This library is an asynchronous version of [`std::fmt`].
//!
//! [`std::fmt`]: https://doc.rust-lang.org/std/fmt/index.html

// Structs re-export
pub use std::fmt::{
Arguments, DebugList, DebugMap, DebugSet, DebugStruct, DebugTuple, Error, Formatter,
};

// Enums re-export
pub use std::fmt::Alignment;

// Traits re-export
pub use std::fmt::{
Binary, Debug, Display, LowerExp, LowerHex, Octal, Pointer, UpperExp, UpperHex,
};

// Functions re-export
pub use std::fmt::format;

// Type defs re-export
pub use std::fmt::Result;
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ cfg_if! {
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
pub mod pin;

#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
pub mod fmt;

mod vec;
mod result;
}
Expand Down