Version 0.3.0. Add no_std.

This commit is contained in:
Andreas Fackler 2018-12-20 14:40:45 +01:00 committed by Andreas Fackler
parent 7f8f7157a4
commit 2072e0e0ec
2 changed files with 5 additions and 3 deletions

View File

@ -1,11 +1,11 @@
[package]
name = "hex_fmt"
description = "Formatting and shortening byte slices as hexadecimal strings"
version = "0.2.0"
version = "0.3.0"
license = "MIT/Apache-2.0"
authors = ["Andreas Fackler <AndreasFackler@gmx.de>"]
repository = "https://github.com/poanetwork/hex_fmt"
readme = "README.md"
keywords = ["format", "hex", "display", "debug"]
categories = ["value-formatting", "development-tools::debugging"]
categories = ["value-formatting", "development-tools::debugging", "no-std"]
edition = "2018"

View File

@ -37,7 +37,9 @@
//! assert_eq!("[0A.., 1B.., 2C..]", &format!("{:<4X}", HexList(list)));
//! ```
use std::fmt::{Alignment, Debug, Display, Formatter, LowerHex, Result, UpperHex, Write};
#![cfg_attr(not(test), no_std)]
use core::fmt::{Alignment, Debug, Display, Formatter, LowerHex, Result, UpperHex, Write};
const ELLIPSIS: &str = "..";