-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Replace macro `unwrap!()` with `const fn` The library compiles quite a lot faster this way. * Pin `regex` * Move `fuzz` into its own workspace * Fix pedantic warnings * Update to 2023c * Update changelog * bench: Use `xoroshiro128++` instead of `SmallRng` The algo used in `SmallRng` not fixed, so it could be that different inputs get benchmarked, making the result useless. Also `SmallRng` does not like seeds with little popcounts. Since our seeds are something like `0..100`, this is not quite optimal. * Move benchmarks into their own workspace This way its many dependencies won't turn up in the library's `Cargo.toml`, so I can unpin many pinned dependencies, and still comply with our msrv.
- Loading branch information
Showing
14 changed files
with
162 additions
and
114 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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "tzdb" | ||
version = "0.5.6" | ||
version = "0.5.7" | ||
edition = "2018" | ||
authors = ["René Kijewski <[email protected]>"] | ||
repository = "https://github.com/Kijewski/tzdb" | ||
|
@@ -16,31 +16,16 @@ tz-rs = { version = "^0.6.14", default-features = false, features = ["const", "s | |
iana-time-zone = { version = "^0.1.50", default-features = false } | ||
|
||
[dev-dependencies] | ||
criterion = { version = "^0.3.6", default-features = false } | ||
proptest = "=1.0" | ||
rand = { version = "^0.8.5", default-features = false, features = ["std", "small_rng"] } | ||
test-strategy = "=0.1.2" | ||
structmeta = "=0.1.4" | ||
|
||
# 1.15 is edition 2021, used (transitively) by criterion | ||
once_cell = "=1.14" | ||
# 1.2 is edition 2021, used (transitively) by criterion | ||
csv = "=1.1" | ||
# 1.7 has rust-version = "1.59", used (transitively) by criterion | ||
rayon = "=1.6" | ||
# 1.11 has rust-version = "1.59", used (transitively) by criterion | ||
rayon-core = "=1.10" | ||
|
||
[features] | ||
default = ["fallback"] | ||
|
||
# Do not fail to compile for unknown target platforms: | ||
fallback = ["iana-time-zone/fallback"] | ||
|
||
[[bench]] | ||
name = "by-name" | ||
harness = false | ||
|
||
[package.metadata.docs.rs] | ||
all-features = true | ||
rustdoc-args = ["--cfg", "docsrs"] | ||
|
@@ -50,5 +35,4 @@ members = [ | |
".", | ||
"examples/current-time", | ||
"make-tzdb", | ||
"fuzz", | ||
] |
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
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,27 @@ | ||
[package] | ||
name = "tzdb-bench" | ||
version = "0.0.0" | ||
edition = "2021" | ||
authors = ["René Kijewski <[email protected]>"] | ||
repository = "https://github.com/Kijewski/tzdb" | ||
description = "… benchmarking …" | ||
license = "Apache-2.0" | ||
# rust-version = "1.56" | ||
publish = false | ||
|
||
[dependencies] | ||
tzdb = { version = "*", path = ".." } | ||
|
||
[dev-dependencies] | ||
criterion = { version = "0.4.0", default-features = false } | ||
rand = { version = "0.8.5", default-features = false, features = ["std"] } | ||
rand_xoshiro = "0.6.0" | ||
test-strategy = "0.3.0" | ||
structmeta = "0.2.0" | ||
|
||
[[bench]] | ||
name = "by-name" | ||
harness = false | ||
|
||
[workspace] | ||
members = ["."] |
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
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.