Skip to content

Commit f53611f

Browse files
committed
Add CHANGELOG for 0.5.1.
1 parent 34321b4 commit f53611f

File tree

1 file changed

+76
-0
lines changed

1 file changed

+76
-0
lines changed

CHANGELOG.md

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,79 @@
1+
# Version 0.5.1 (May 22, 2024)
2+
3+
This release contains the following crate updates:
4+
5+
- `rocket` `0.5.1`
6+
- `rocket_db_pools` `0.2.0`
7+
- `rocket_dyn_templates` `0.2.0`
8+
- `rocket_ws` `0.1.1`
9+
10+
## [`rocket`](https://api.rocket.rs/v0.5/rocket/) `0.5.1`
11+
12+
* The following `char` and `std::ops::Range` types now implement `FromForm`:
13+
14+
- `char`
15+
- `Range<T: FromForm>` with `start` and `end` fields
16+
- `RangeFrom<T: FromForm>` with `start` field
17+
- `RangeTo<T: FromForm>` with `end` field
18+
- `RangeToInclusive<T: FromForm>` with `end` field
19+
20+
* `[T; N]`, `Vec<T>`, and `[u8]` can now be passed to `uri!`.
21+
22+
* The guide now includes a [deploying section].
23+
24+
* The `FromForm` derive now properly records errors involving entire forms.
25+
26+
* `FromForm` derive can now by used in code emitted by `macro_rules!` macros.
27+
28+
* **(fix [#2668] via [52de9a])** [`TempFile`] now ensures it flushes before
29+
being persisted.
30+
31+
## [`rocket_db_pools`](https://api.rocket.rs/v0.5/rocket_db_pools/) `0.2.0`
32+
33+
* SQLite extensions are now supported in `sqlx_sqlite`.
34+
35+
Use a database configuration option of `extensions` to specify extensions:
36+
37+
```toml
38+
[default.databases.db_name]
39+
url = "db.sqlite"
40+
# This option is only supported by the `sqlx_sqlite` driver.
41+
extensions = ["memvfs", "rot13"]
42+
```
43+
44+
* (**breaking**) `deadpool` was updated to `0.13`.
45+
46+
* (**breaking**) The [`Config`](https://api.rocket.rs/v0.5/rocket_db_pools/struct.Config)
47+
structure has a new `extensions` field.
48+
49+
## [`rocket_dyn_templates`](https://api.rocket.rs/v0.5/rocket_dyn_templates/) `0.2.0`
50+
51+
* Support for `minijinja` `2.0` templates was introduced.
52+
53+
Templates with an extension of `.j2` are recognized and rendered with
54+
Minijinja.
55+
56+
* **(breaking)** `handlebars` was updated to `5.1`.
57+
58+
## [`rocket_ws`](https://api.rocket.rs/v0.5/rocket_ws/) `0.1.1`
59+
60+
* Introduced [`WebSocket::accept_key()`] method.
61+
62+
* `tungstenite` was updated to `0.21`.
63+
64+
## General Changes
65+
66+
* The `rust-version` for all crates was updated to `1.64`.
67+
68+
This reflects the correct MSRV required to build `rocket` `0.5.0`.
69+
70+
* License files are now present in all published crates.
71+
72+
[52de9a]: https://github.com/rwf2/Rocket/commit/52de9a
73+
[#2668]: https://github.com/rwf2/Rocket/pull/2668
74+
[deploying section]: https://rocket.rs/guide/v0.5/deploying/
75+
[`WebSocket::accept_key()`]: https://api.rocket.rs/v0.5/rocket_ws/struct.WebSocket#method.accept_key
76+
177
# Version 0.5.0 (Nov 17, 2023)
278

379
## Major Features and Improvements

0 commit comments

Comments
 (0)