Michael Melanson
ca9648c95d
Improve minijinja and tera template error logs.
2024-05-22 20:31:19 -05:00
Bill
002f13510c
Remove double semicolon in SSE example
2024-05-22 20:31:19 -05:00
Sergio Benitez
2ef1e2f94b
Update yansi to 1.0.1.
2024-05-22 20:31:19 -05:00
Sergio Benitez
29e7093ef4
Impl 'FromForm' for char, 'Range' types.
...
Implements 'FromForm' for:
* `char`
* `Range<T: FromForm>`
* `RangeFrom<T: FromForm>`
* `RangeTo<T: FromForm>`
* `RangeToInclusive<T: FromForm>`
Resolves #2759 .
2024-05-22 14:12:45 -05:00
Sergio Benitez
4c483dcea9
Improve 'sync_db_pools' codegen. Update UI tests.
2024-05-22 13:44:45 -05:00
Sergio Benitez
53c3bc59e2
Support sqlx_sqlite extensions in db_pools.
...
Resolves #2762 .
2024-05-22 13:44:17 -05:00
Sergio Benitez
dfc118f279
Use call site hygiene in FromForm derive.
...
This commit changes the `FromForm` derive codegen so that it
consistently emits tokens with call site hygiene. This allows `FromForm`
derives to be emitted my macros more reliably.
2024-05-22 13:43:53 -05:00
Sergio Benitez
e942011974
Fix macOS CI native deps install step.
2024-05-22 13:42:59 -05:00
Sergio Benitez
b203ab7a2d
Add deploying guide.
...
Resolves #171 .
2024-05-22 13:42:53 -05:00
Sergio Benitez
3a7a67ff09
Restrict CI trigger job to 'rwf2/Rocket'.
2024-05-22 13:41:49 -05:00
Łukasz Wojniłowicz
ae439fae54
Symlink license files in all crate directories.
...
Resolves #2760 .
2024-05-22 13:41:37 -05:00
Sergio Benitez
57b6b8007c
Support minijinja in 'dyn_templates'.
2024-05-22 13:40:40 -05:00
Sergio Benitez
8c273edb44
Make all nightly CI jobs fallible.
2024-05-22 13:37:17 -05:00
Sergio Benitez
a2c796b84d
Allow CI on nightly to fail.
2024-05-22 13:37:04 -05:00
高奕GaoYi
fd446a8ef4
Add 'WebSocket::accept_key()'.
2024-05-22 13:36:05 -05:00
Sergio Benitez
5398dfb34e
Allow displaying [T; N], Vec<T>, [u8] via 'uri!'.
...
Resolves #2750 .
2024-05-22 13:35:48 -05:00
Sergio Benitez
cacd4578a2
Fix incorrect 'Accept' swap in rustdocs.
...
Resolves #2743 .
2024-05-22 13:29:55 -05:00
Sergio Benitez
c8b945c982
Update vcpkg blob URL in Windows CI step.
2024-03-04 18:28:47 -08:00
Sergio Benitez
1681646b58
Update README link to API docs.
2024-03-04 12:56:40 -08:00
Sergio Benitez
e4152abd44
Fix WebSocket FAQ entry.
...
Co-authored-by: John Bampton <jbampton@gmail.com>
2024-03-04 12:41:43 -08:00
Sergio Benitez
546c7c7684
Add action to trigger API docs deploy.
2024-03-01 20:51:42 -08:00
Sergio Benitez
3fefbb24f8
Remove redirect creation in mk-docs.sh.
2024-02-29 23:46:14 -08:00
Sergio Benitez
ab028a7894
Trim unneeded code in scripts.
2024-02-28 23:48:59 -08:00
Sergio Benitez
e4d8a8e377
Reorganize and upgrade markup in site docs.
...
The guide is now in docs/guide. All other site assets are being migrated
to a separate repository.
The guide markup has been upgraded to take advantages of improvements in
the static site generator used to build the Rocket website.
2024-02-28 23:43:49 -08:00
Sergio Benitez
48d1305651
Avoid generating unused docs index page.
...
The unstable flag also results in rustdoc emitting absolute links, which
breaks versioned documentation.
2024-02-28 12:50:52 -08:00
Sergio Benitez
c54a6ed05e
Improve doc building scripts.
...
Also removes unused 'bump_version' script.
2024-02-28 12:50:05 -08:00
Sergio Benitez
1dddb37a1b
Add code of conduct.
2024-02-28 12:47:21 -08:00
Sergio Benitez
eee3fa23e8
Update "Getting Help" guide subsection.
...
- Remove mention of IRC channel: it is no longer bridged on Matrix.
- Mention and link to GitHub discussions.
Closes #2692 .
Co-authored-by: Siddharth1605 <Siddhashokan@gmail.com>
2024-02-28 12:47:21 -08:00
Sergio Benitez
d7b2a85fa9
Update handlebars version in dyn_templates docs.
2024-01-17 21:53:12 -08:00
Alessandro Campeis
b812799f7e
Update 'handlebars' to v5.1.
2024-01-17 21:53:12 -08:00
Sergio Benitez
e493be8d3c
Forward whole-form errors in 'FromForm' derive.
...
Resolves #2672 .
2024-01-17 21:53:12 -08:00
Sergio Benitez
9d56249d86
Clarify route ranking in requests guide.
...
Closes #2687 .
2024-01-17 21:53:12 -08:00
Sergio Benitez
82362b1350
Upgrade 'smallvec' to simplify 'Accept' impl.
2024-01-17 21:53:12 -08:00
Sergio Benitez
b10702bf20
Remove custom 'docify!' macro: use '#[doc]`.
2024-01-17 21:53:12 -08:00
Paul Lietar
52de9a1fa6
Ensure 'TempFile' flushes when persisted.
...
Tokio's `File::write_all()` method has an unexpected quirk: it doesn't
actually write all the requested content to the file when the returned
future resolves. Instead, the write is attempted and queued. This means
that the `persist()` method can resolve without the data being persisted
to the file system. Subsequent reads of the ostensibly written-to file
can thus fail to contain the expected data.
An call to `flush()` following `write_all()` would circumvent the issue.
Alternatively, calling `fs::write()` actually writes to the file system
before returning and requires fewer lines of code. This commit thus
swaps the call to `write_all()` with `fs::write()`.
2024-01-17 21:53:12 -08:00
Martyn
61e77c5e13
Document "reconnect ad-infinitum" SSE pitfall.
2024-01-17 21:53:12 -08:00
Failpark
10b5da7035
Fix fairing naming in database MySQL example.
2024-01-17 21:53:12 -08:00
Mathew Horner
fa79610bcd
Fix git repository URLs in contrib crates.
2024-01-17 21:53:12 -08:00
Sergio Benitez
3bcdd076c3
Update 'deadpool' to 0.10.
...
Also updates:
* 'deadpool-postgres' to 0.12
* 'deadpool-redis' to 0.14
2024-01-17 21:53:12 -08:00
Sergio Benitez
9544715103
Update 'tungstenite' to '0.21'.
2024-01-17 21:53:12 -08:00
Sergio Benitez
f2730fb509
Fix min dependency versions. Update MSRV to 1.64.
...
Also includes a work-around for a buggy `format_args!` macro found in
rustc 1.67 and 1.68.
Resolves #2670 .
2024-01-17 21:42:08 -08:00
Sergio Benitez
b23740f2a2
Update project sponsors.
2023-12-12 18:10:49 -08:00
Sergio Benitez
97992b69b4
Set 'img' width, height to decrease layout jitter.
2023-12-08 14:00:20 -08:00
Sergio Benitez
599d824940
Enable templateless issue creation.
2023-12-08 14:00:17 -08:00
Sergio Benitez
f5dbcde484
Upgrade to GitHub issue forms.
2023-12-08 14:00:14 -08:00
Sergio Benitez
2ce7545f7e
Silence more warnings in generated code.
2023-12-05 17:29:30 -08:00
Sergio Benitez
5d08294667
Add '.rustfmt.toml' disabling formatting.
2023-11-28 10:48:50 +01:00
Sergio Benitez
b70fcc415d
Add GitHub FUNDING file.
2023-11-28 10:48:48 +01:00
Sergio Benitez
a24df46148
Update data for site refresh.
2023-11-27 15:00:55 +01:00
Sergio Benitez
ab82064354
Update 'SergioBenitez/Rocket' to 'rwf2/Rocket'.
...
Resolves rwf2/rwf2#5 .
2023-11-22 21:41:51 +01:00