Commit Graph

869 Commits

Author SHA1 Message Date
Sergio Benitez 4519de7860 New version: 0.3.5. 2017-12-18 06:59:44 -08:00
Sergio Benitez 4f2ab0d2d2 Update codegen and pear_codegen for 2017-12-17 nightly. 2017-12-18 06:57:04 -08:00
Sergio Benitez f5a83c4d1f Automatically set release date in 'bump_version.sh'. 2017-12-14 23:11:50 -08:00
Sergio Benitez e12fbe0b8d Fix 0.3.4 release date on site index. 2017-12-14 19:30:04 +07:00
Sergio Benitez cfcfd2d65f New version: 0.3.4. 2017-12-14 19:17:04 +07:00
Wilson Birney 60a01a1c65 Emit sized body when file length is known in 'NamedFile'. 2017-12-14 18:46:37 +07:00
Sergio Benitez b744a58ce0 Use correct rustdoc 'html_root_url'.
Fixes #474.
2017-12-14 18:45:23 +07:00
Lukas Kalbertodt 5bf2e0c6be Remove incorrect statement in 'RawStr' docs. 2017-12-14 18:42:02 +07:00
Ian Létourneau 937c5fb031 Add a 'status::BadRequest' responder. 2017-12-14 18:41:03 +07:00
Tobias Stolzmann 0a0bfceaa8 Fix typo in 'Outcome' docs: 'users' -> 'Users'. 2017-12-14 18:40:18 +07:00
Cole R Lawrence 0be4f4b937 Fix typo in fairings guide: 'event' -> 'events'. 2017-12-14 18:39:48 +07:00
Sergio Benitez f056ac3e20 Bump codegen nightly requirement to 2017-12-13. 2017-12-14 18:22:08 +07:00
Sergio Benitez 6460be62c3 Use '#[repr(C)]' on 'str' wrappers to guarantee correct layout.
Closes #494.
2017-12-14 18:21:57 +07:00
Sergio Benitez 94c7a1997e Update codegen for 2017-12-11 nightly. 2017-12-14 15:28:48 +07:00
Sergio Benitez fa65835ed1 Update 'compiletest_rs' dependency. 2017-12-14 15:28:48 +07:00
toddWannaCode ab9dc38b2b Fix link to forms example in requests guide. 2017-11-17 13:13:36 -08:00
Sergio Benitez 308dbd76a0 Remove use of now unneeded 'AsciiExt' trait. 2017-11-09 10:21:45 +01:00
Sergio Benitez 028a00becc New version: 0.3.3. 2017-09-25 21:00:08 -07:00
Sergio Benitez 9f4daf4474 Update codegen for 2017-09-25 nightly. 2017-09-25 20:32:43 -07:00
Sergio Benitez 805b24e60a Use a 'BufReader' for file-based bodies. 2017-09-25 20:32:43 -07:00
Lucas Kolstad 634447b3b8 Properly handle paths with spaces in shell scripts. 2017-09-25 20:32:43 -07:00
Sergio Benitez 38895fce13 Don't print emojis when colors are disabled. 2017-09-25 20:32:43 -07:00
Joshua Rombauer 42f32351a8 Clarify 'on_request' Fairing documentation. 2017-09-25 20:32:43 -07:00
Sergio Benitez ef44fc9497 Move handler definitions to top of file. 2017-09-25 20:32:43 -07:00
Sergio Benitez 8faddc118a Add a 'Responder' impl for 'Vec<u8>'. 2017-09-25 20:32:43 -07:00
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