Commit Graph

894 Commits

Author SHA1 Message Date
Sergio Benitez b5875cb10b Add a 'Binary' media type for 'application/octet-stream'. 2017-09-25 20:32:43 -07:00
Sergio Benitez ab519f2232 Document case-insensitivity of 'from_ext'. 2017-09-25 20:32:43 -07:00
Sergio Benitez 442b714dbb Document 'FromParam' impl for 'Cow<str>'. 2017-09-25 20:32:43 -07:00
Sergio Benitez 9e4e46fd12 Implement 'FromParam' for 'Cow<str>'. 2017-09-25 20:32:43 -07:00
Lukas Kalbertodt a6c5a7e31c Use 'debug_struct' to improve 'Config' 'Debug' impl.
Using the method `debug_struct()` of `fmt::Formatter` takes care of
the exact formatting for us. Additionally, it also handles the
"alternate" form of printing enabled with '#'. In the struct case it
prints the struct on multiple lines instead of just one.

This commit also changes the output slightly. Before, the field
`log_level` was printed with `log: {}`. This commit replaces "log"
with "log_level". Additionally, the value of `environment` is now
printed as a struct field instead of being combined with the struct
name.
2017-09-25 20:32:43 -07:00
David Hotham 303e23f720 Remove reliance on 'lookup_host'. 2017-09-25 20:32:43 -07:00
Ram 0d7c0ffd1b Implement 'From<Status>' for 'Failure'.
Resolves #399.
2017-09-25 20:32:43 -07:00
QuietMisdreavus 2a967fca15 Indent comments to prevent being commonmark code blocks. 2017-09-25 20:32:43 -07:00
Sergio Benitez 02554fe225 Only log nonempty fairing collections. 2017-09-25 20:32:43 -07:00
Sergio Benitez d82c2d30d0 Improve I/O and BadType config error messages. 2017-09-25 20:32:43 -07:00
Linus Heckemann b4517461cf Avoid sorting routes on every add. 2017-09-25 20:32:43 -07:00
Sergio Benitez a1193ba454 Improve missing argument compile-time error. 2017-09-25 20:32:43 -07:00
Lee Baillie aec7fee4aa Fix typo in site overview: 'Reponder' -> 'Responder'. 2017-09-25 20:32:43 -07:00
Pascal Brandt 7c20604493 Fix typo in site overview: by -> be. 2017-09-25 20:32:42 -07:00
Sergio Benitez 7ea05c3d3e Remove 'drop_types_in_const' feature: stabilized. 2017-09-25 20:32:42 -07:00
Sergio Benitez 6e3c54f475 Remove unused 'extern crate's. 2017-09-25 20:32:42 -07:00
Sergio Benitez 9668839cde Run 'cargo update' in 'mk-docs.sh' script. 2017-09-04 19:07:21 -07:00
Sergio Benitez 5dabb00f2d New version: 0.3.2. 2017-08-15 12:00:02 -07:00
Sergio Benitez ff8e4c73a8 Remove lints and associated code from 'rocket_codegen'.
Rust's linting API is incredibly unstable, resulting in unnecessary
breakage to `rocket_codegen`. Rocket's lints are also not as
conservative as would be desired, resulting in spurious warnings. For
these reasons, this commit removes linting from `rocket_codegen`.

These lints will likely be reintroduced as part of a 'rocket_lints'
crate. Factoring the lints out to a separate crate means that lint
breakage can be dealt with by uncommenting the dependency instead of
waiting for a new release or backtracking nightlies. In the same vein,
it will likely improve stability of the 'rocket_codegen' crate.
2017-08-15 11:44:50 -07:00
adrian5 8e28ecc1f1 Add missing comma in 'FromParam' docs. 2017-08-14 13:10:03 -07:00
Sergio Benitez 9e5db81d31 Fix example in 'Request::guard()' documentation.
Resolves #378.
2017-08-14 13:10:03 -07:00
Rolf Sievers 54f8067538 Improve commentary on collisions in pastebin example. 2017-08-14 13:10:03 -07:00
Katrina Brock 1b5ba63fd0 Improve bootstrapping instructions in todo example. 2017-08-14 13:10:03 -07:00
Daiki Mizukami 8c2e435298 Add 'Box' conversion methods to 'UncasedStr'. 2017-08-14 13:10:03 -07:00
Sergio Benitez 4d7f60c1d6 Additional changes to fairings guide overview. 2017-08-14 13:10:03 -07:00
Lori Holden 824240dd30 Improve overview in fairings guide. 2017-08-14 13:10:03 -07:00
Arne Bahlo d19ebca685 Fix database usage code in state guide: '&*conn'. 2017-08-14 13:10:03 -07:00
Sergio Benitez 8ee2fafdef New version: 0.3.1. 2017-08-11 10:19:56 -07:00
Sergio Benitez 3fd0bb14fb Require 'yansi' 0.3.3. 2017-08-11 10:08:58 -07:00
Sergio Benitez 721f6204ea Update lints for latest nightly, '2017-08-10'. 2017-08-11 09:14:54 -07:00
Sergio Benitez 9108e79fb9 Fix typo in 'Limits' docs: anf -> and. 2017-08-04 20:21:21 -07:00
Sergio Benitez 86c7a67b02 Allow named parameters to be ignored. 2017-08-02 18:44:31 -07:00
Sergio Benitez 0b7d9f4602 Remove unused doc comments. 2017-08-02 17:48:00 -07:00
Sergio Benitez 95452af449 Improve form field name error message. 2017-08-02 17:41:10 -07:00
Sergio Benitez 952c98fc04 Allow the full range of valid form field renames.
Closes #337.
2017-08-02 17:37:20 -07:00
Sergio Benitez 944eaa3e3c Emit all error messages from Tera on init failure.
Resolves #369.
2017-08-02 16:58:55 -07:00
Sergio Benitez 72bed509b9 Handle 'TypeRelative' qualified paths in lints.
Fixes #367.
2017-08-02 02:40:37 -07:00
Ian Létourneau 84fe23a9fb Fix spelling of "corresponding" in 'status' docs. 2017-07-27 01:58:25 -04:00
Alex Burka 02794db2cd Allow unreachable patterns in generated matches. 2017-07-27 00:09:54 -04:00
Laurentiu Nicola 5f0583eb04 Don't skip over the first Tera error.
The first line in the Tera error messages is sometimes less useful,
but in other cases, like when the context is not a map or struct,
contains the complete description. As such, always include it, even if
the output is slightly uglier. Also don't append periods at the end
since some Tera messages already have them.
2017-07-26 23:32:35 -04:00
Sergio Benitez b276e1d51f Enable ASCII escape sequences in Windows consoles. 2017-07-26 22:54:45 -04:00
Sergio Benitez 3abc813605 Use 'AtomicIsize', not 'Cell', in URI. 2017-07-21 17:00:38 -04:00
Sergio Benitez 6d3cd374ac Fix the 'user_id' route in cookies guide. 2017-07-18 14:27:10 -04:00
Christian Legnitto 362afdc445 Fix spelling of "instantiated" in rustdocs. 2017-07-18 09:35:37 -04:00
Karuna Murti 5720748557 Add missing semicolon to pastebin tutorial code. 2017-07-17 14:12:29 -04:00
Flarp 69afb5c4a3 Fix typo in 'NotFound' docs: 404, not 400. 2017-07-17 14:10:52 -04:00
Sergio Benitez f87746d211 Post-release 0.3 news article updates. 2017-07-15 02:31:20 -07:00
Sergio Benitez aa91daf71f Add 'Data Limits' section to config guide. 2017-07-15 02:29:36 -07:00
Tommy Ip ae406cf0ca Fix 'clusure' typo in fairings guide and ad_hoc.rs.
Fixes #348.
2017-07-15 00:36:41 -07:00
Stuart Hinson b3f41f248c Update 'Fairing' example to reflect doc's content. 2017-07-15 00:35:25 -07:00