Commit Graph

189 Commits

Author SHA1 Message Date
Sergio Benitez 30290e47d7 Update codegen for 2018-04-14 nightly. 2018-04-14 19:37:04 -07:00
Sergio Benitez 5b4a35d508 Update codegen for 2018-04-06 nightly. 2018-04-07 13:51:57 -07:00
Sergio Benitez 9dcb285799 Remove stabilized feature gates.
These are:

  * i128_type
  * conservative_impl_trait
  * never_type
2018-04-03 21:52:33 -07:00
Sergio Benitez 0146d31cf1 Update codegen for 2018-04-03 nightly. 2018-04-03 21:51:13 -07:00
Songbird0 4862dd2161 Replace 'above' with 'below' in route parse error message. 2018-03-28 07:49:40 -05:00
messense b0fc8b31f6 Update 'indexmap' to 1.0. 2018-03-22 04:03:54 -05:00
Sergio Benitez 362f0ccdac Allow shorthand for route format specifiers. 2018-03-22 04:02:37 -05:00
Sergio Benitez 29d56900c6 Remove unused bounds in type alias. 2018-03-04 13:35:37 -08:00
Sergio Benitez 845b0470a6 Fix UI test for latest nightly. 2018-03-04 13:34:30 -08:00
Sergio Benitez 987f2d6afa Fix 'typed-uri' UI test for latest nightly. 2018-02-27 00:29:21 -08:00
Sergio Benitez c3b6c542e8 Update from 'ordermap' to 'indexmap' 0.4. 2018-02-25 20:32:10 -08:00
Sergio Benitez 63ebe7d06a Update yansi and pear dependencies. 2018-02-21 00:37:31 -08:00
Sergio Benitez 3a8d0e8a9a Dynamically increase/decrease log level at launch.
This commit modifies the internal logger so that launch messages are
emitted with the proper "info" level. The approach is to temporarily
weaken the log level to "normal" during launch and reset it to the
user's setting after launching.

This commit also upgrades to 'log' 0.4.

Fixes #553.
2018-01-29 13:16:04 -08:00
Sergio Benitez 446181e5a6 Fix 'typed-uris-invalid-syntax' UI test for latest nightly. 2018-01-14 09:37:45 -08:00
Sergio Benitez 68b49f5d74 Fix compiletest linker flags for release builds. 2018-01-13 10:18:11 -08:00
Sergio Benitez b352f7c24a Update 'compiletest' to 0.3.5. 2018-01-03 02:46:11 -08:00
Sergio Benitez b8367d52f8 Update codegen for 2017-12-22 nightly.
This works around #513 by patching 'ring' globally using the new
'[patch]' Cargo section.
2017-12-27 19:37:15 -08:00
Sergio Benitez 3c2db1c7aa Pin 'compiletest_rs' to compatible versions. 2017-12-27 00:33:51 -08:00
Sergio Benitez 94534c3895 List all valid methods in codegen error message. 2017-12-26 10:11:01 -08:00
Sergio Benitez a9c66c9426 Update codegen and pear_codegen for 2017-12-17 nightly. 2017-12-18 06:50:27 -08:00
Sergio Benitez d22dbfbded Update codegen for 2017-12-14 nightly. 2017-12-14 23:09:59 -08:00
Sergio Benitez fabe7ef06e Bump codegen nightly requirement to 2017-12-13. 2017-12-14 18:12:45 +07:00
Sergio Benitez 4ea9b046cd Update codegen for 2017-12-11 nightly. 2017-12-14 15:09:48 +07:00
Sergio Benitez aad97e6be0 Use correct rustdoc 'html_root_url'.
Fixes #474.
2017-11-22 10:58:20 -08:00
Tobias Stolzmann af58f72018 Use absolute path in 'catchers!' generated code. 2017-11-17 12:37:56 -08:00
Sergio Benitez d136332e91 Update 'stderr' messages for latest nightly. 2017-11-09 10:21:01 +01:00
Sergio Benitez 07d4d23cc8 Update dependencies. 2017-10-09 20:15:18 -07:00
Sergio Benitez e8ada89197 Remove unneeded 'SpanExt::expand' method. 2017-09-25 21:19:50 -07:00
Sergio Benitez 651a245bd5 Update codegen for 2017-09-25 nightly. 2017-09-25 19:31:46 -07:00
Sergio Benitez 237c673be4 Rename '#[error]' to '#[catch]', 'errors!' to 'catchers!'. 2017-09-22 19:04:14 -07:00
Sergio Benitez 63169599a7 Convert several 'compilefail' tests to 'ui' tests. 2017-09-21 18:01:56 -07:00
Sergio Benitez 78cc1bda7e Upgrade to 'compiletest' 0.3. 2017-09-21 17:17:40 -07:00
Sergio Benitez f9f4822941 Remove now unneeded 'syntax_pos' import. 2017-09-21 16:57:29 -07:00
Sergio Benitez 16feedd563 Remove 'drop_types_in_const' feature: stabilized. 2017-09-14 22:39:19 -07:00
Sergio Benitez eeef8a44ce Document the 'uri!' macro. 2017-09-14 22:13:07 -07:00
Sergio Benitez 17b8ab694c Use 'FromUriParam' trait for better ergonomics in 'uri!'. 2017-09-14 22:13:07 -07:00
Sergio Benitez 3bf577db6e Handle segments parameters in 'uri!'.
This commit also moves the 'uri' module into its own directory,
includes the beginning of the 'FromUriParam' trait, and abandons the
'url' crate in favor of 'percent_encoding' for percent encoding.
2017-09-14 22:13:07 -07:00
Sergio Benitez 5efc4b1096 Rename 'URI' to 'Uri'. 2017-09-14 22:13:07 -07:00
Sergio Benitez 909eae894a Don't implement 'UriDisplay' for all 'T: Display'.
We don't know if that 'Display' implementation is URI safe, so using
it blindly could result in generating bad URIs.
2017-09-14 22:12:54 -07:00
Sergio Benitez 24f7734c00 Check mount point validity in 'uri!' macro. 2017-09-14 22:12:54 -07:00
Sergio Benitez bbeb95357b Add compile-fail tests for 'uri!' macro. 2017-09-14 22:12:47 -07:00
Sergio Benitez 02cff01e17 Give a nice error when uri! macro is empty. 2017-09-14 22:12:46 -07:00
Sergio Benitez c4524400b2 Add suite of positive tests for typed URIs. 2017-09-14 22:12:46 -07:00
Sergio Benitez a291c9b42e Improve 'uri!' macro internal code. 2017-09-14 22:12:03 -07:00
Sergio Benitez 96b3d81882 Make all run-pass tests regular tests. 2017-09-14 22:12:03 -07:00
Sergio Benitez 084481a84e Initial implementation of typed URIs.
This is a breaking change. All Rocket applications using code
generation must now additionally declare usage of the 'decl_macro'
feature.
2017-09-14 22:10:25 -07:00
Sergio Benitez 3ed0201c6e Remove unused 'extern crate's. 2017-08-31 17:03:47 -07:00
Sergio Benitez c5890934c0 Improve missing argument compile-time error. 2017-08-22 01:01:57 -07:00
Sergio Benitez 89443bcdf0 Remove unnecessary 'RouteGenerateExt' trait. 2017-08-20 11:13:45 -07:00
Sergio Benitez 4df7ce6bf5 Propogate route names through codegen to runtime.
This commit modifies `codegen` so that a route's name (the name of the
route handler) is stored in the generated static route information
structure and later propogated into the corresponding `Route`
structure.

The primary advantage of this change is an improvement to debug and
error messages which now include route names. The collision error
message, in particular, has been improved dramatically in this commit.
Additionally, the `LaunchError::Collision` variant now contains a
vector of the colliding routes.
2017-08-20 10:55:23 -07:00