-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: merge foyer-rs/bytesize back to the OG repo (#50)
- Loading branch information
Showing
6 changed files
with
161 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Changelog | ||
|
||
## Unreleased | ||
- Use SI format by default with `Display`. | ||
- Use "KiB" for SI unit. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
[package] | ||
name = "bytesize" | ||
description = "an utility for human-readable bytes representations" | ||
description = "A utility for human-readable bytes representations. Forked from https://github.com/hyunsik/bytesize ." | ||
version = "1.4.0-dev" | ||
authors = ["Hyunsik Choi <[email protected]>"] | ||
authors = ["Hyunsik Choi <[email protected]>", "MrCroxx <[email protected]>"] | ||
edition = "2021" | ||
|
||
homepage = "https://github.com/hyunsik/bytesize/" | ||
documentation = "https://docs.rs/bytesize/" | ||
|
@@ -12,13 +13,13 @@ keywords = ["byte", "byte-size", "utility", "human-readable", "format"] | |
license = "Apache-2.0" | ||
|
||
[dependencies] | ||
arbitrary = { version = "1.3.0", optional = true } | ||
serde = { version = "1.0.185", optional = true } | ||
arbitrary = { version = "1", features = ["derive"], optional = true } | ||
serde = { version = "1", optional = true } | ||
|
||
[dev-dependencies] | ||
serde = { version = "1.0.185", features = ["derive"] } | ||
serde_json = "1.0.105" | ||
toml = "0.7.6" | ||
serde = { version = "1", features = ["derive"] } | ||
serde_json = "1" | ||
toml = "0.8" | ||
|
||
[features] | ||
arbitrary = ["dep:arbitrary"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
SHELL := /bin/bash | ||
.PHONY: all | ||
|
||
all: | ||
cargo sort -w | ||
cargo fmt --all | ||
cargo clippy --all-features | ||
RUST_BACKTRACE=1 cargo test --all-features |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.