mirror of https://github.com/rwf2/Rocket.git
New version: 0.3.11.
This commit is contained in:
parent
44836aa2df
commit
05fe6c9e65
10
CHANGELOG.md
10
CHANGELOG.md
|
@ -1,3 +1,13 @@
|
||||||
|
# Version 0.3.11 (May 19, 2018)
|
||||||
|
|
||||||
|
## Core
|
||||||
|
|
||||||
|
* Core was updated for `2018-05-18` nightly.
|
||||||
|
|
||||||
|
## Infrastructure
|
||||||
|
|
||||||
|
* Fixed injection of dependencies for codegen compile-fail tests.
|
||||||
|
|
||||||
# Version 0.3.10 (May 05, 2018)
|
# Version 0.3.10 (May 05, 2018)
|
||||||
|
|
||||||
## Core
|
## Core
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "rocket_codegen"
|
name = "rocket_codegen"
|
||||||
version = "0.3.10"
|
version = "0.3.11"
|
||||||
authors = ["Sergio Benitez <sb@sergio.bz>"]
|
authors = ["Sergio Benitez <sb@sergio.bz>"]
|
||||||
description = "Code generation for the Rocket web framework."
|
description = "Code generation for the Rocket web framework."
|
||||||
documentation = "https://api.rocket.rs/rocket_codegen/"
|
documentation = "https://api.rocket.rs/rocket_codegen/"
|
||||||
|
@ -15,7 +15,7 @@ build = "build.rs"
|
||||||
plugin = true
|
plugin = true
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
rocket = { version = "0.3.10", path = "../lib/" }
|
rocket = { version = "0.3.11", path = "../lib/" }
|
||||||
log = "0.3"
|
log = "0.3"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "rocket_contrib"
|
name = "rocket_contrib"
|
||||||
version = "0.3.10"
|
version = "0.3.11"
|
||||||
authors = ["Sergio Benitez <sb@sergio.bz>"]
|
authors = ["Sergio Benitez <sb@sergio.bz>"]
|
||||||
description = "Community contributed libraries for the Rocket web framework."
|
description = "Community contributed libraries for the Rocket web framework."
|
||||||
documentation = "https://api.rocket.rs/rocket_contrib/"
|
documentation = "https://api.rocket.rs/rocket_contrib/"
|
||||||
|
@ -21,7 +21,7 @@ handlebars_templates = ["handlebars", "templates"]
|
||||||
templates = ["serde", "serde_json", "glob"]
|
templates = ["serde", "serde_json", "glob"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
rocket = { version = "0.3.10", path = "../lib/" }
|
rocket = { version = "0.3.11", path = "../lib/" }
|
||||||
log = "^0.3"
|
log = "^0.3"
|
||||||
|
|
||||||
# UUID dependencies.
|
# UUID dependencies.
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "rocket"
|
name = "rocket"
|
||||||
version = "0.3.10"
|
version = "0.3.11"
|
||||||
authors = ["Sergio Benitez <sb@sergio.bz>"]
|
authors = ["Sergio Benitez <sb@sergio.bz>"]
|
||||||
description = """
|
description = """
|
||||||
Web framework for nightly with a focus on ease-of-use, expressibility, and speed.
|
Web framework for nightly with a focus on ease-of-use, expressibility, and speed.
|
||||||
|
@ -39,7 +39,7 @@ isatty = "0.1"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
lazy_static = "0.2"
|
lazy_static = "0.2"
|
||||||
rocket_codegen = { version = "0.3.10", path = "../codegen" }
|
rocket_codegen = { version = "0.3.11", path = "../codegen" }
|
||||||
|
|
||||||
[build-dependencies]
|
[build-dependencies]
|
||||||
yansi = "0.4"
|
yansi = "0.4"
|
||||||
|
|
|
@ -22,7 +22,7 @@ guide.
|
||||||
|
|
||||||
The best way to learn Rocket is to _build something_. It should be fun and easy,
|
The best way to learn Rocket is to _build something_. It should be fun and easy,
|
||||||
and there's always someone to help. Alternatively, you can read through the
|
and there's always someone to help. Alternatively, you can read through the
|
||||||
[Rocket examples](https://github.com/SergioBenitez/Rocket/tree/v0.3.10/examples)
|
[Rocket examples](https://github.com/SergioBenitez/Rocket/tree/v0.3.11/examples)
|
||||||
or the [Rocket source
|
or the [Rocket source
|
||||||
code](https://github.com/SergioBenitez/Rocket/tree/v0.3.10/lib/src). Whatever you
|
code](https://github.com/SergioBenitez/Rocket/tree/v0.3.11/lib/src). Whatever you
|
||||||
decide to do next, we hope you have a blast!
|
decide to do next, we hope you have a blast!
|
||||||
|
|
|
@ -202,7 +202,7 @@ dependency in your `Cargo.toml` file:
|
||||||
|
|
||||||
```
|
```
|
||||||
[dependencies]
|
[dependencies]
|
||||||
rocket = { version = "0.3.10", features = ["tls"] }
|
rocket = { version = "0.3.11", features = ["tls"] }
|
||||||
```
|
```
|
||||||
|
|
||||||
TLS is configured through the `tls` configuration parameter. The value of `tls`
|
TLS is configured through the `tls` configuration parameter. The value of `tls`
|
||||||
|
|
|
@ -53,8 +53,8 @@ project by ensuring your `Cargo.toml` contains the following:
|
||||||
|
|
||||||
```
|
```
|
||||||
[dependencies]
|
[dependencies]
|
||||||
rocket = "0.3.10"
|
rocket = "0.3.11"
|
||||||
rocket_codegen = "0.3.10"
|
rocket_codegen = "0.3.11"
|
||||||
```
|
```
|
||||||
|
|
||||||
Modify `src/main.rs` so that it contains the code for the Rocket `Hello, world!`
|
Modify `src/main.rs` so that it contains the code for the Rocket `Hello, world!`
|
||||||
|
|
|
@ -179,7 +179,7 @@ we expected.
|
||||||
|
|
||||||
A version of this example's complete crate, ready to `cargo run`, can be found
|
A version of this example's complete crate, ready to `cargo run`, can be found
|
||||||
on
|
on
|
||||||
[GitHub](https://github.com/SergioBenitez/Rocket/tree/v0.3.10/examples/hello_world).
|
[GitHub](https://github.com/SergioBenitez/Rocket/tree/v0.3.11/examples/hello_world).
|
||||||
You can find dozens of other complete examples, spanning all of Rocket's
|
You can find dozens of other complete examples, spanning all of Rocket's
|
||||||
features, in the [GitHub examples
|
features, in the [GitHub examples
|
||||||
directory](https://github.com/SergioBenitez/Rocket/tree/v0.3.10/examples/).
|
directory](https://github.com/SergioBenitez/Rocket/tree/v0.3.11/examples/).
|
||||||
|
|
|
@ -43,8 +43,8 @@ Then add the usual Rocket dependencies to the `Cargo.toml` file:
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
[dependencies]
|
[dependencies]
|
||||||
rocket = "0.3.10"
|
rocket = "0.3.11"
|
||||||
rocket_codegen = "0.3.10"
|
rocket_codegen = "0.3.11"
|
||||||
```
|
```
|
||||||
|
|
||||||
And finally, create a skeleton Rocket application to work off of in
|
And finally, create a skeleton Rocket application to work off of in
|
||||||
|
@ -405,4 +405,4 @@ through some of them to get a better feel for Rocket. Here are some ideas:
|
||||||
cleans up idling old pastes in `upload/`.
|
cleans up idling old pastes in `upload/`.
|
||||||
|
|
||||||
You can find the full source code for the [completed pastebin tutorial on
|
You can find the full source code for the [completed pastebin tutorial on
|
||||||
GitHub](https://github.com/SergioBenitez/Rocket/tree/v0.3.10/examples/pastebin).
|
GitHub](https://github.com/SergioBenitez/Rocket/tree/v0.3.11/examples/pastebin).
|
||||||
|
|
|
@ -15,7 +15,7 @@ For instance, the following set of commands runs the `hello_world` example:
|
||||||
```sh
|
```sh
|
||||||
git clone https://github.com/SergioBenitez/Rocket
|
git clone https://github.com/SergioBenitez/Rocket
|
||||||
cd Rocket
|
cd Rocket
|
||||||
git checkout v0.3.10
|
git checkout v0.3.11
|
||||||
cd examples/hello_world
|
cd examples/hello_world
|
||||||
cargo run
|
cargo run
|
||||||
```
|
```
|
||||||
|
|
|
@ -56,7 +56,7 @@ request methods under certain conditions. If a `POST` request contains a body of
|
||||||
field has the name `_method` and a valid HTTP method name as its value (such as
|
field has the name `_method` and a valid HTTP method name as its value (such as
|
||||||
`"PUT"`), that field's value is used as the method for the incoming request.
|
`"PUT"`), that field's value is used as the method for the incoming request.
|
||||||
This allows Rocket applications to submit non-`POST` forms. The [todo
|
This allows Rocket applications to submit non-`POST` forms. The [todo
|
||||||
example](https://github.com/SergioBenitez/Rocket/tree/v0.3.10/examples/todo/static/index.html.tera#L47)
|
example](https://github.com/SergioBenitez/Rocket/tree/v0.3.11/examples/todo/static/index.html.tera#L47)
|
||||||
makes use of this feature to submit `PUT` and `DELETE` requests from a web form.
|
makes use of this feature to submit `PUT` and `DELETE` requests from a web form.
|
||||||
|
|
||||||
## Dynamic Segments
|
## Dynamic Segments
|
||||||
|
@ -380,7 +380,7 @@ be set and removed using the `Cookies` guard. The [cookies example] on GitHub
|
||||||
illustrates further use of the `Cookies` type to get and set cookies, while the
|
illustrates further use of the `Cookies` type to get and set cookies, while the
|
||||||
[`Cookies`] documentation contains complete usage information.
|
[`Cookies`] documentation contains complete usage information.
|
||||||
|
|
||||||
[cookies example]: https://github.com/SergioBenitez/Rocket/tree/v0.3.10/examples/cookies
|
[cookies example]: https://github.com/SergioBenitez/Rocket/tree/v0.3.11/examples/cookies
|
||||||
|
|
||||||
### Private Cookies
|
### Private Cookies
|
||||||
|
|
||||||
|
@ -621,8 +621,8 @@ struct Person {
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
The [forms validation](https://github.com/SergioBenitez/Rocket/tree/v0.3.10/examples/form_validation)
|
The [forms validation](https://github.com/SergioBenitez/Rocket/tree/v0.3.11/examples/form_validation)
|
||||||
and [forms kitchen sink](https://github.com/SergioBenitez/Rocket/tree/v0.3.10/examples/form_kitchen_sink)
|
and [forms kitchen sink](https://github.com/SergioBenitez/Rocket/tree/v0.3.11/examples/form_kitchen_sink)
|
||||||
examples on GitHub provide further illustrations.
|
examples on GitHub provide further illustrations.
|
||||||
|
|
||||||
### JSON
|
### JSON
|
||||||
|
@ -645,7 +645,7 @@ The only condition is that the generic type in `Json` implements the
|
||||||
`Deserialize` trait from [Serde](https://github.com/serde-rs/json). See the
|
`Deserialize` trait from [Serde](https://github.com/serde-rs/json). See the
|
||||||
[JSON example] on GitHub for a complete example.
|
[JSON example] on GitHub for a complete example.
|
||||||
|
|
||||||
[JSON example]: https://github.com/SergioBenitez/Rocket/tree/v0.3.10/examples/json
|
[JSON example]: https://github.com/SergioBenitez/Rocket/tree/v0.3.11/examples/json
|
||||||
|
|
||||||
### Streaming
|
### Streaming
|
||||||
|
|
||||||
|
@ -667,7 +667,7 @@ The route above accepts any `POST` request to the `/upload` path with
|
||||||
response if the upload succeeds. If the upload fails, an error response is
|
response if the upload succeeds. If the upload fails, an error response is
|
||||||
returned. The handler above is complete. It really is that simple! See the
|
returned. The handler above is complete. It really is that simple! See the
|
||||||
[GitHub example
|
[GitHub example
|
||||||
code](https://github.com/SergioBenitez/Rocket/tree/v0.3.10/examples/raw_upload)
|
code](https://github.com/SergioBenitez/Rocket/tree/v0.3.11/examples/raw_upload)
|
||||||
for the full crate.
|
for the full crate.
|
||||||
|
|
||||||
## Query Strings
|
## Query Strings
|
||||||
|
@ -723,7 +723,7 @@ fn new(task: Option<Task>) { ... }
|
||||||
|
|
||||||
For a concrete illustration on how to handle query parameters, see [the
|
For a concrete illustration on how to handle query parameters, see [the
|
||||||
`query_params`
|
`query_params`
|
||||||
example](https://github.com/SergioBenitez/Rocket/tree/v0.3.10/examples/query_params).
|
example](https://github.com/SergioBenitez/Rocket/tree/v0.3.11/examples/query_params).
|
||||||
|
|
||||||
## Error Catchers
|
## Error Catchers
|
||||||
|
|
||||||
|
@ -758,7 +758,7 @@ Unlike request handlers, error handlers can only take 0, 1, or 2 parameters of
|
||||||
types [`Request`](https://api.rocket.rs/rocket/struct.Request.html) and/or
|
types [`Request`](https://api.rocket.rs/rocket/struct.Request.html) and/or
|
||||||
[`Error`](https://api.rocket.rs/rocket/enum.Error.html). At present, the `Error`
|
[`Error`](https://api.rocket.rs/rocket/enum.Error.html). At present, the `Error`
|
||||||
type is not particularly useful, and so it is often omitted. The [error catcher
|
type is not particularly useful, and so it is often omitted. The [error catcher
|
||||||
example](https://github.com/SergioBenitez/Rocket/tree/v0.3.10/examples/errors) on
|
example](https://github.com/SergioBenitez/Rocket/tree/v0.3.11/examples/errors) on
|
||||||
GitHub illustrates their use in full.
|
GitHub illustrates their use in full.
|
||||||
|
|
||||||
Rocket has a default catcher for all of the standard HTTP error codes including
|
Rocket has a default catcher for all of the standard HTTP error codes including
|
||||||
|
|
|
@ -236,7 +236,7 @@ The [JSON example on GitHub] provides further illustration.
|
||||||
[`JSON`]: https://api.rocket.rs/rocket_contrib/struct.Json.html
|
[`JSON`]: https://api.rocket.rs/rocket_contrib/struct.Json.html
|
||||||
[`Serialize`]: https://docs.serde.rs/serde/trait.Serialize.html
|
[`Serialize`]: https://docs.serde.rs/serde/trait.Serialize.html
|
||||||
[`serde`]: https://docs.serde.rs/serde/
|
[`serde`]: https://docs.serde.rs/serde/
|
||||||
[JSON example on GitHub]: https://github.com/SergioBenitez/Rocket/tree/v0.3.10/examples/json
|
[JSON example on GitHub]: https://github.com/SergioBenitez/Rocket/tree/v0.3.11/examples/json
|
||||||
|
|
||||||
### Templates
|
### Templates
|
||||||
|
|
||||||
|
@ -279,7 +279,7 @@ fn main() {
|
||||||
The [`Template`] API
|
The [`Template`] API
|
||||||
documentation contains more information about templates, while the [Handlebars
|
documentation contains more information about templates, while the [Handlebars
|
||||||
Templates example on
|
Templates example on
|
||||||
GitHub](https://github.com/SergioBenitez/Rocket/tree/v0.3.10/examples/handlebars_templates)
|
GitHub](https://github.com/SergioBenitez/Rocket/tree/v0.3.11/examples/handlebars_templates)
|
||||||
is a fully composed application that makes use of Handlebars templates.
|
is a fully composed application that makes use of Handlebars templates.
|
||||||
|
|
||||||
[`Template`]: https://api.rocket.rs/rocket_contrib/struct.Template.html
|
[`Template`]: https://api.rocket.rs/rocket_contrib/struct.Template.html
|
||||||
|
|
|
@ -142,7 +142,7 @@ globally, add `#![allow(unmanaged_state)]` to your crate attributes.
|
||||||
|
|
||||||
You can find a complete example using the `HitCount` structure in the [state
|
You can find a complete example using the `HitCount` structure in the [state
|
||||||
example on
|
example on
|
||||||
GitHub](https://github.com/SergioBenitez/Rocket/tree/v0.3.10/examples/state) and
|
GitHub](https://github.com/SergioBenitez/Rocket/tree/v0.3.11/examples/state) and
|
||||||
learn more about the [`manage`
|
learn more about the [`manage`
|
||||||
method](https://api.rocket.rs/rocket/struct.Rocket.html#method.manage) and
|
method](https://api.rocket.rs/rocket/struct.Rocket.html#method.manage) and
|
||||||
[`State` type](https://api.rocket.rs/rocket/struct.State.html) in the API docs.
|
[`State` type](https://api.rocket.rs/rocket/struct.State.html) in the API docs.
|
||||||
|
@ -177,8 +177,8 @@ use the following dependencies:
|
||||||
|
|
||||||
```
|
```
|
||||||
[dependencies]
|
[dependencies]
|
||||||
rocket = "0.3.10"
|
rocket = "0.3.11"
|
||||||
rocket_codegen = "0.3.10"
|
rocket_codegen = "0.3.11"
|
||||||
diesel = { version = "1.1", features = ["sqlite", "r2d2"] }
|
diesel = { version = "1.1", features = ["sqlite", "r2d2"] }
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -179,7 +179,7 @@ mod test {
|
||||||
|
|
||||||
The tests can be run with `cargo test`. You can find the full source code to
|
The tests can be run with `cargo test`. You can find the full source code to
|
||||||
[this example on
|
[this example on
|
||||||
GitHub](https://github.com/SergioBenitez/Rocket/tree/v0.3.10/examples/testing).
|
GitHub](https://github.com/SergioBenitez/Rocket/tree/v0.3.11/examples/testing).
|
||||||
|
|
||||||
## Codegen Debug
|
## Codegen Debug
|
||||||
|
|
||||||
|
|
|
@ -4,8 +4,8 @@
|
||||||
|
|
||||||
[release]
|
[release]
|
||||||
url = "https://crates.io/crates/rocket"
|
url = "https://crates.io/crates/rocket"
|
||||||
version = "0.3.10"
|
version = "0.3.11"
|
||||||
date = "May 05, 2018"
|
date = "May 19, 2018"
|
||||||
|
|
||||||
[[top_features]]
|
[[top_features]]
|
||||||
title = "Type Safe"
|
title = "Type Safe"
|
||||||
|
|
Loading…
Reference in New Issue