mirror of https://github.com/rwf2/Rocket.git
New version: 0.0.11.
This commit is contained in:
parent
9e86fa2f81
commit
5fca86c84f
56
CHANGELOG.md
56
CHANGELOG.md
|
@ -1,3 +1,59 @@
|
||||||
|
# Version 0.0.11 (Dec 11, 2016)
|
||||||
|
|
||||||
|
## Streaming Requests
|
||||||
|
|
||||||
|
All incoming request data is now streamed. This resulted in a major change to
|
||||||
|
the Rocket APIs. They are summarized through the following API changes:
|
||||||
|
|
||||||
|
* The `form` route parameter has been removed.
|
||||||
|
* The `data` route parameter has been introduced.
|
||||||
|
* Forms are now handled via the `data` parameter and `Form` type.
|
||||||
|
* Removed the `data` parameter from `Request`.
|
||||||
|
* Added `FromData` conversion trait and default implementation.
|
||||||
|
* `FromData` is used to automatically derive the `data` parameter.
|
||||||
|
* `Responder`s are now final: they cannot forward to other requests.
|
||||||
|
* `Responser`s may only forward to catchers.
|
||||||
|
|
||||||
|
## Breaking
|
||||||
|
|
||||||
|
* Request `uri` parameter is private. Use `uri()` method instead.
|
||||||
|
* `form` module moved under `request` module.
|
||||||
|
* `response::data` was renamed to `response::content`.
|
||||||
|
* Introduced `Outcome` with `Success`, `Failure`, and `Forward` variants.
|
||||||
|
* `outcome` module moved to top-level.
|
||||||
|
* `Response` is now a type alias to `Outcome`.
|
||||||
|
* `Empty` `Responder` was removed.
|
||||||
|
* `StatusResponder` removed in favor of `response::status` module.
|
||||||
|
|
||||||
|
## Codegen
|
||||||
|
|
||||||
|
* Error handlers can now take 0, 1, or 2 parameters.
|
||||||
|
* `FromForm` derive now works on empty structs.
|
||||||
|
* Lifetimes are now properly stripped in code generation.
|
||||||
|
* Any valid ident is now allowed in single-parameter route parameters.
|
||||||
|
|
||||||
|
## Core
|
||||||
|
|
||||||
|
* Route is now cloneable.
|
||||||
|
* `Request` no longer has any lifetime parameters.
|
||||||
|
* `Handler` type now includes a `Data` parameter.
|
||||||
|
* `http` module is public.
|
||||||
|
* `Responder` implemented for `()` type as an empty response.
|
||||||
|
* Add `config::get()` for global config access.
|
||||||
|
* Introduced `testing` module.
|
||||||
|
* `Rocket.toml` allows global configuration via `[global]` table.
|
||||||
|
|
||||||
|
## Docs
|
||||||
|
|
||||||
|
* Added a `raw_upload` example.
|
||||||
|
* Added a `pastebin` example.
|
||||||
|
* Documented all public APIs.
|
||||||
|
|
||||||
|
## Testing
|
||||||
|
|
||||||
|
* Now building and running tests with `--all-features` flag.
|
||||||
|
* Added appveyor config for Windows CI testing.
|
||||||
|
|
||||||
# Version 0.0.10 (Oct 03, 2016)
|
# Version 0.0.10 (Oct 03, 2016)
|
||||||
|
|
||||||
## Breaking
|
## Breaking
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "rocket_codegen"
|
name = "rocket_codegen"
|
||||||
version = "0.0.10"
|
version = "0.0.11"
|
||||||
authors = ["Sergio Benitez <sb@sergio.bz>"]
|
authors = ["Sergio Benitez <sb@sergio.bz>"]
|
||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "rocket_contrib"
|
name = "rocket_contrib"
|
||||||
version = "0.0.10"
|
version = "0.0.11"
|
||||||
authors = ["Sergio Benitez <sb@sergio.bz>"]
|
authors = ["Sergio Benitez <sb@sergio.bz>"]
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "rocket"
|
name = "rocket"
|
||||||
version = "0.0.10"
|
version = "0.0.11"
|
||||||
authors = ["Sergio Benitez <sb@sergio.bz>"]
|
authors = ["Sergio Benitez <sb@sergio.bz>"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
|
Loading…
Reference in New Issue