Commit Graph

1298 Commits

Author SHA1 Message Date
Jeb Rosen b29b2db35e Adjust '#[catch]' codegen output to fix a UI test regression in latest nightly. 2020-02-27 16:03:54 -08:00
adrian5 c40276e8d2 Fix typo in databases documentation: extraneous word 'database'. 2020-02-27 16:02:36 -08:00
Sergio Benitez 3a8e23f7f2 Make references to core types absolute in codegen.
Prior to this commit, codegen emitted tokens containing bare types like
'Result' and 'Box' as well as presumed imported variants such as 'None'
and 'Ok'.  However, users are free to shadow these, and if they do, the
generated code will fail to compile, or worse, be incorrect. To avoid
this, this commit makes all references to these core types and imports
absolute.
2020-02-27 16:00:57 -08:00
Sergio Benitez cb5c02064b Remove use of deprecated 'into_iter()'. 2020-02-27 15:52:40 -08:00
Sergio Benitez 070c5cbcfa Update UI tests for latest nightly. 2020-02-27 15:48:50 -08:00
Sergio Benitez 60cba26f65 Fix guide examples for 0.4. 2020-02-27 15:35:56 -08:00
Sergio Benitez 878a73b6f0 Provide more details for opaque examples in guide.
Closes #1100.
2020-02-27 14:43:08 -08:00
Sergio Benitez 4618bd0a5e Test all guide code examples.
Every code example is now fully runnable and testable. As a result, all
examples are now tested and include imports. Relevant imports are shown
by default. Code examples can be expanded to show all imports.

Fixes #432.
2020-02-27 14:43:06 -08:00
Sergio Benitez 996694aefb Update UI tests for latest nightly. 2020-02-27 14:41:21 -08:00
Sergio Benitez ce95839843 Update references to chat channels. 2020-02-27 14:40:57 -08:00
Sergio Benitez 368f387c21 Fix tests for latest nightly. 2020-02-09 01:53:09 -08:00
Sergio Benitez fe4ac8e74d Hide generated macro docs. 2020-02-09 01:53:09 -08:00
Sergio Benitez 0c56ecc181 Set cookies even on error responses.
Fixes #1213.
2020-02-09 01:53:05 -08:00
Sergio Benitez 86427e1158 Update build badge for Azure Pipelines. 2019-07-06 01:16:33 -07:00
Sergio Benitez bc7d9bac7c Migrate from Travis to Azure Pipelines for CI.
Resolves #801.
2019-07-06 01:15:47 -07:00
Sergio Benitez 35753c4d53 Fix tests for Windows. 2019-07-06 01:15:47 -07:00
Sergio Benitez dab891dfa1 Stop caching for a working Travis CI. 2019-07-03 12:34:48 -07:00
Sergio Benitez 2d4dc5ae58 New version: 0.4.2. 2019-06-28 17:50:57 -07:00
Sergio Benitez ab2c012c26 Fix link to 'Rustqlite' in databases docs. 2019-06-28 17:38:54 -07:00
Jeb Rosen 225218de3f Document contrib database library versions.
This commit also adds a note to the contrib database documentation
describing how to enable features in upstream database crates.
2019-06-28 12:20:51 -07:00
Thomas Lent b00423d7ac Fix type in 'Data' rustdocs: 'T' -> 'DataGuard'. 2019-06-28 12:20:39 -07:00
Sergio Benitez aaaecd10cd Fix route path rendering in pastebin guide.
Resolves #1027.
2019-06-28 12:20:39 -07:00
Jeb Rosen b7afade412 Allow 'non_snake_case' for generated query params.
Also adds '#[deny(non_snake_case)]' to the complete route generation
test for regressions.

Fixes #1003.
2019-06-28 12:20:13 -07:00
Sergio Benitez de076895db Update 'glob' dependency to 0.3. 2019-06-28 12:20:02 -07:00
Sergio Benitez 8afe5d3eaf Update 'crossbeam' to 0.7 in 'managed_queue' example. 2019-06-28 12:19:00 -07:00
Sergio Benitez f4548f09af Update 'parking_lot' to 0.8 in 'todo' example. 2019-06-28 12:18:23 -07:00
Sergio Benitez 2d4eec8f7e Update 'version_check' to 0.9. 2019-06-28 12:17:28 -07:00
Sergio Benitez be829bd891 Set Content-Type on 'MsgPack' responses.
Fixes #1009.
2019-06-28 12:11:23 -07:00
jeb 8e7100f8f7 Reexport derive macros alongside derived traits. 2019-06-28 12:11:18 -07:00
Sergio Benitez ca1e6e0cf7 Set 'StaticFiles' rank with method, not bit-flags. 2019-06-28 12:11:07 -07:00
Sergio Benitez 4ad1813772 Allow setting a custom rank on 'StaticFiles'.
Resolves #965.
2019-06-28 12:11:04 -07:00
Adam 233121b6dc Implement 'FromIterator' for 'JsonValue'. 2019-06-28 12:09:32 -07:00
Jacob Pratt 3e3fe56e6a Remove stabilized feature gates.
* try_from
* transpose_result
2019-06-28 12:08:49 -07:00
Sergio Benitez dd06d7ba80 Clean up 'AdHoc' fairing implementation. 2019-06-28 12:08:49 -07:00
Konrad Borowski 8574dbf841 Replace uses of `FnBox`; `Box<dyn FnOnce>` now implements `FnOnce`. 2019-06-28 12:06:10 -07:00
Sergio Benitez f1f09f17ca New version: 0.4.1. 2019-05-11 16:51:38 -07:00
Sergio Benitez 317ee76990 Document mounting multiple routes in guide.
Also mention that a route's rank is displayed in brackets.

Closes #983.
Closes #981.
2019-05-10 19:50:58 -07:00
Jeb Rosen 0bf11fecf9 Update 'Rocket source code' link in the guide. 2019-05-10 19:50:58 -07:00
Richard Petrie 2cb35e2544 Replace deprecated 'isatty' with 'atty'. 2019-05-10 19:50:58 -07:00
Sergio Benitez f81bdd90fc Update copyright year in LICENSE-MIT. 2019-05-10 19:50:58 -07:00
Sergio Benitez 82da917055 Clarify defaults in 'Config' documentation. 2019-05-10 19:50:58 -07:00
Sergio Benitez 9dce86744c Clean up 'Server' header commentary. 2019-05-09 09:11:51 -07:00
Sergio Benitez cb359fe38b Clean up 'conditionally-set-server-header' test. 2019-05-09 09:11:51 -07:00
lu4nm3 0a068b0dd6 Set default 'Server' header only if it isn't set.
Closes #996.
2019-05-09 09:11:51 -07:00
Unknown 99afa7d5f7 Fix missing '```' at end of template example code. 2019-05-09 09:11:51 -07:00
Jeb Rosen bb0af5423d Update compiler tests for 2019-04-19 nightly. 2019-05-09 09:11:51 -07:00
Yazid 7833ee1b76 Correction to requests guide: 'route' -> 'guard'. 2019-04-12 17:58:24 -07:00
Bryan Jennings c776c59e6a Fix typo in requests guide: missing ')'. 2019-04-12 17:57:02 -07:00
Denis Andrejew 06edd5fab5 Clarify form method rewriting in requests guide. 2019-03-30 10:16:25 -07:00
Blake Smith fcd64342fd Fix typo in 'databases' documentation: 'pg_db' -> 'my_db'. 2019-03-13 06:32:28 -07:00