Skip to content

Commit d97594b

Browse files
committed
0.3.17 release
1 parent 88f5c13 commit d97594b

File tree

3 files changed

+32
-4
lines changed

3 files changed

+32
-4
lines changed

CHANGELOG.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,34 @@ The format is based on [Keep a Changelog]. This project adheres to [Semantic Ver
66

77
---
88

9+
## 0.3.17 [2022-11-06]
10+
11+
### Changed
12+
13+
- The amount of code generated by `time::serde::format_description!` is reduced if not all feature
14+
flags are active.
15+
- `cargo test --tests` works with any configuration of feature flags. This occurs by spawning a
16+
subprocess that passes `--all-features`. `cargo test --doc` works with most combinations of
17+
feature flags, including the default. The combination of these changes means that crater will now
18+
run on `time`.
19+
- `libc` and `num_threads` are only included as dependencies when needed. They were previously
20+
unconditionally included.
21+
22+
### Added
23+
24+
- `time::format_description::parse_owned`, which returns an `OwnedFormatItem`. This avoids "lifetime
25+
hell", where all your structs now need a lifetime because a single field has one. Note that when
26+
possible, the borrowed format item (just called `FormatItem`) is still preferred, as it has
27+
significantly fewer allocations. The new `OwnedFormatItem` is usable for both formatting and
28+
parsing, as you would expect.
29+
30+
### Compatibility
31+
32+
- The parser for runtime format descriptions has been rewritten. A side effect of this is that some
33+
errors have slightly changed. No existing API has been altered, so this is not a breaking change.
34+
However, you may notice different errors, which are hopefully better! The parser for compile-time
35+
format descriptions has not yet been swapped out. If you notice any bugs, please file an issue.
36+
937
## 0.3.16 [2022-10-24]
1038

1139
### Changed

time-macros/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "time-macros"
3-
version = "0.2.5"
3+
version = "0.2.6"
44
authors = ["Jacob Pratt <[email protected]>", "Time contributors"]
55
edition = "2021"
66
rust-version = "1.60.0"

time/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "time"
3-
version = "0.3.16"
3+
version = "0.3.17"
44
authors = ["Jacob Pratt <[email protected]>", "Time contributors"]
55
edition = "2021"
66
rust-version = "1.60.0"
@@ -46,7 +46,7 @@ quickcheck = { version = "1.0.3", default-features = false, optional = true }
4646
rand = { version = "0.8.4", optional = true, default-features = false }
4747
serde = { version = "1.0.126", optional = true, default-features = false }
4848
time-core = { version = "=0.1.0", path = "../time-core" }
49-
time-macros = { version = "=0.2.5", path = "../time-macros", optional = true }
49+
time-macros = { version = "=0.2.6", path = "../time-macros", optional = true }
5050

5151
[target.'cfg(target_family = "unix")'.dependencies]
5252
libc = { version = "0.2.98", optional = true }
@@ -61,7 +61,7 @@ serde = { version = "1.0.126", default-features = false, features = ["derive"] }
6161
serde_json = "1.0.68"
6262
serde_test = "1.0.126"
6363
quickcheck_macros = "1.0.0"
64-
time-macros = { version = "=0.2.5", path = "../time-macros" }
64+
time-macros = { version = "=0.2.6", path = "../time-macros" }
6565

6666
[target.'cfg(__ui_tests)'.dev-dependencies]
6767
trybuild = "1.0.68"

0 commit comments

Comments
 (0)