Manuel Transfeld
aa7805a5f8
Update 'sqlx' to '0.7'.
2023-08-25 14:02:44 -07:00
Sergio Benitez
b4c8597194
Update UI test expected results.
2023-08-11 15:14:37 -04:00
Sergio Benitez
c2936fcb1e
Update 'yansi' to 1.0.0-rc.
2023-07-11 13:18:35 -07:00
Sergio Benitez
9a9cd76c01
Add support for 'diesel-async' to 'db_pools'.
2023-06-09 16:47:06 -07:00
Sergio Benitez
792bab251e
Update 'deadpool-redis' to '0.12'.
2023-06-09 16:47:06 -07:00
BlackDex
f1a95ce1d9
Update 'tungstenite' to 0.19 in 'rocket-ws'.
2023-05-22 14:39:10 -07:00
Benedikt Weber
055ad107df
Allow status customization in 'Forward' outcomes.
...
Prior to this commit, all forward outcomes resulted in a 404. This
commit changes request and data guards so that they are able to provide
a `Status` on `Forward` outcomes. The router uses this status, if the
final outcome is to forward, to identify the catcher to invoke.
The net effect is that guards can now customize the status code of a
forward and thus the error catcher invoked if the final outcome of a
request is to forward.
Resolves #1560 .
2023-04-11 12:47:20 -07:00
Sergio Benitez
07ea3df0c2
Fix links to 'Stream!' in 'ws' rustdocs.
2023-04-05 09:58:21 -07:00
Sergio Benitez
db96f670b7
Fix contrib 'ws' README formatting.
2023-04-04 15:37:22 -07:00
Sergio Benitez
c3520fb4a1
Pin I/O handlers. Allow 'FnOnce' in 'ws' handlers.
...
This modifies the 'IoHandler::io()' method so that it takes a
'Pin<Box<Self>>', allowing handlers to move internally and assume that
the data is pinned.
The change is then used in the 'ws' contrib crate to allow 'FnOnce'
handlers instead of 'FnMut'. The net effect is that streams, such as
those crated by 'Stream!', are now allowed to move internally.
2023-04-04 15:33:46 -07:00
Sergio Benitez
d9f86d8647
Fully document the 'ws' contrib crate.
2023-04-03 16:09:45 -07:00
Sergio Benitez
7d895eb9f6
Add initial implementation of 'rocket_ws'.
...
This provides WebSocket support in Rocket's official 'contrib'.
2023-04-01 15:02:24 -07:00
Sergio Benitez
5f232d147c
Fix, clarify driver version numbers in 'db_pools'.
2023-03-25 08:30:01 -07:00
Sergio Benitez
91f6288ea4
New version: 0.5.0-rc.3.
...
New contrib versions: 0.1.0-rc.3.
2023-03-23 16:56:17 -07:00
Sergio Benitez
219a8a5468
Fix a bunch of typos.
2023-03-23 16:27:08 -07:00
Kian-Meng Ang
06d255b52b
Fix a whole bunch of typos.
...
Found via `codespell -L crate,ser,fo,noo,nd,cappable,pard,te,ans`.
2023-03-23 14:57:54 -07:00
Nya
5723f127c1
Fix panic when dropping sync 'ConnectionPool'.
...
Fixes #2375 .
2023-03-23 14:57:54 -07:00
Sergio Benitez
322f88e61a
Update syn, transitively, to 2.0.
2023-03-22 20:11:22 -07:00
Sergio Benitez
bbbb927ac2
Update dependencies without observable breakages.
...
The following dependencies were updated:
* `criterion` from 0.3 to 0.4
* `deadpool-redis` from 0.10 to 0.11
* `normpath` from 0.3 to 1
* `cookie` from 0.16 to 0.17
2023-03-22 13:44:16 -07:00
Sergio Benitez
d628afddd0
Update UI tests for latest rustc.
2023-03-20 14:14:08 -07:00
Sergio Benitez
e468a98333
Update UI tests for latest stable, nightly.
2023-01-30 16:10:59 -08:00
Sergio Benitez
ca4b38c0d0
Allow UI tests to fail in CI.
...
This commit makes passing compile UI tests optional, allowing the CI to
succeed even when UI tests fail. This change was made because UI tests
are highly susceptible to false negatives due to benign rustc compiler
output changes. A failure resulting from such a benign change inhibits
progress in the main branch due to failing PR testing which would have
otherwise passed.
2023-01-30 16:06:18 -08:00
Sergio Benitez
7e913eb8ac
Report as many form errors as possible.
2022-11-12 04:11:18 -08:00
Jacob Simpson
6c3d35e7e5
Update notify to 5.0.
...
Resolves #2337 .
2022-09-18 01:49:15 -07:00
Sergio Benitez
682c2d9acf
Update database driver version numbers in docs.
2022-09-18 01:27:36 -07:00
Tilen Pintarič
f0d678d464
Update diesel to 2.0, sqlx to 0.6.
...
Closes #2209 .
Closes #2335 .
Closes #2249 .
2022-09-18 01:24:57 -07:00
Sergio Benitez
707936177a
Update 'sync_db_pools' UI tests.
2022-09-14 13:59:32 -07:00
Sergio Benitez
8d8367e32b
Update UI tests for latest nightly, stable.
2022-07-13 18:23:39 -07:00
Sergio Benitez
a933e7234d
Gracefully shutdown database pools in 'db_pools'.
2022-07-13 14:16:14 -07:00
Sergio Benitez
08ef285f37
Update 'sync_db_pools' UI tests for stable.
2022-05-24 21:36:32 -07:00
Sergio Benitez
04819d8cfd
Add pool retrieval to sync_db_pools.
...
Generates a new method on attributed types, `pool()`, which returns an
opaque reference to a type that can be used to get pooled connections.
Also adds a code-generated example to the crate docs which includes
real, proper function signatures and fully checked examples.
Resolves #1884 .
Closes #1972 .
2022-05-24 16:47:09 -07:00
Sergio Benitez
9b3c83eb70
Add 'Metadata::render()': direct template render.
...
Resolves #1177 .
2022-05-20 16:18:17 -07:00
Sergio Benitez
4dcd92837f
New version: 0.5.0-rc.2.
...
New contrib versions: 0.1.0-rc.2.
2022-05-09 06:32:46 -05:00
Sergio Benitez
f12788dbf9
Synchronize 'db_pools' docs with libraries.
...
Also adds an integration test designed to break if upstream types change
in a manner incompatible with docs.
2022-05-04 12:38:29 -07:00
Konrad Borowski
4d258739f5
Migrate Rocket to Rust 2021 edition.
2022-04-19 18:35:38 -07:00
Sergio Benitez
fc633dfcd8
Fix UI tests for latest stable, nightly.
2022-04-18 21:15:54 -07:00
Sergio Benitez
2cbaf05153
Update UI tests for latest stable.
2022-03-07 12:16:21 -08:00
Juraj Fiala
71e96d0d0d
Fix typo: 'Tera' -> 'Handlebars'.
2022-03-03 15:48:00 -08:00
Sergio Benitez
b5b842f0bf
Use fully working examples in dyn_templates.
...
Closes #1992 .
2022-03-03 15:41:29 -08:00
Gabriel Fontes
66d18bf665
Explicitly import 'Result' in 'context!'.
2022-02-17 16:33:36 -08:00
Sergio Benitez
d25a8308e5
Update 'mongodb' to '2' in 'db_pools'.
2022-02-16 11:07:05 -08:00
Sergio Benitez
543560a1f2
Update 'deadpool' dependencies in 'db_pools'.
2022-02-16 11:07:00 -08:00
Sergio Benitez
0ba5aac53e
Update codebase for latest nightly and stable.
2022-02-16 10:08:55 -08:00
Sergio Benitez
8cae077ba1
Add 'Connection::into_inner()' in 'db_pools'.
...
Resolves #1790 .
2021-08-30 04:02:13 -07:00
Sergio Benitez
9bc6c25d2d
Fix docs for handlebars update.
2021-08-30 03:44:08 -07:00
Ning Sun
831ffc6c09
Update 'handlebars' to 4.0.
2021-08-30 03:42:57 -07:00
Sergio Benitez
15e74fe184
Update UI tests for latest nightly.
2021-08-19 20:07:10 -07:00
Sergio Benitez
a16c66eae9
Propagate 'log_level' to SQLx logs.
...
Closes #1798 .
2021-08-19 19:49:20 -07:00
Jeb Rosen
5cb243fc24
Update UI tests for latest stable.
2021-08-01 12:24:49 -07:00
Sergio Benitez
179be25866
Add 'rocket_db_pools' UI tests.
2021-07-18 13:14:13 -07:00