mirror of https://github.com/rwf2/Rocket.git
Version all URLs to 'rocket.rs'.
This commit is contained in:
parent
38536b58b5
commit
556206e8b3
82
CHANGELOG.md
82
CHANGELOG.md
|
@ -278,7 +278,7 @@ This release includes the following new features:
|
||||||
* [`Response::content_type()`] was added to easily retrieve the Content-Type
|
* [`Response::content_type()`] was added to easily retrieve the Content-Type
|
||||||
header of a response.
|
header of a response.
|
||||||
* Size limits on incoming data are [now
|
* Size limits on incoming data are [now
|
||||||
configurable](https://rocket.rs/guide/configuration/#data-limits).
|
configurable](https://rocket.rs/v0.3/guide/configuration/#data-limits).
|
||||||
* [`Request::limits()`] was added to retrieve incoming data limits.
|
* [`Request::limits()`] was added to retrieve incoming data limits.
|
||||||
* Responders may dynamically adjust their response based on the incoming
|
* Responders may dynamically adjust their response based on the incoming
|
||||||
request.
|
request.
|
||||||
|
@ -302,31 +302,31 @@ This release includes the following new features:
|
||||||
* The [`NotFound`] responder was added for simple **404** response
|
* The [`NotFound`] responder was added for simple **404** response
|
||||||
construction.
|
construction.
|
||||||
|
|
||||||
[Fairings]: https://rocket.rs/guide/fairings/
|
[Fairings]: https://rocket.rs/v0.3/guide/fairings/
|
||||||
[Native TLS support]: https://rocket.rs/guide/configuration/#configuring-tls
|
[Native TLS support]: https://rocket.rs/v0.3/guide/configuration/#configuring-tls
|
||||||
[Private cookies]: https://rocket.rs/guide/requests/#private-cookies
|
[Private cookies]: https://rocket.rs/v0.3/guide/requests/#private-cookies
|
||||||
[can be renamed]: https://rocket.rs/guide/requests/#field-renaming
|
[can be renamed]: https://rocket.rs/v0.3/guide/requests/#field-renaming
|
||||||
[`MsgPack`]: https://api.rocket.rs/rocket_contrib/struct.MsgPack.html
|
[`MsgPack`]: https://api.rocket.rs/v0.3/rocket_contrib/struct.MsgPack.html
|
||||||
[`Rocket::launch()`]: https://api.rocket.rs/rocket/struct.Rocket.html#method.launch
|
[`Rocket::launch()`]: https://api.rocket.rs/v0.3/rocket/struct.Rocket.html#method.launch
|
||||||
[`LaunchError`]: https://api.rocket.rs/rocket/error/struct.LaunchError.html
|
[`LaunchError`]: https://api.rocket.rs/v0.3/rocket/error/struct.LaunchError.html
|
||||||
[Default rankings]: https://api.rocket.rs/rocket/struct.Route.html
|
[Default rankings]: https://api.rocket.rs/v0.3/rocket/struct.Route.html
|
||||||
[`Route`]: https://api.rocket.rs/rocket/struct.Route.html
|
[`Route`]: https://api.rocket.rs/v0.3/rocket/struct.Route.html
|
||||||
[`Accept`]: https://api.rocket.rs/rocket/http/struct.Accept.html
|
[`Accept`]: https://api.rocket.rs/v0.3/rocket/http/struct.Accept.html
|
||||||
[`Request::accept()`]: https://api.rocket.rs/rocket/struct.Request.html#method.accept
|
[`Request::accept()`]: https://api.rocket.rs/v0.3/rocket/struct.Request.html#method.accept
|
||||||
[`contrib`]: https://api.rocket.rs/rocket_contrib/
|
[`contrib`]: https://api.rocket.rs/v0.3/rocket_contrib/
|
||||||
[`Rocket::routes()`]: https://api.rocket.rs/rocket/struct.Rocket.html#method.routes
|
[`Rocket::routes()`]: https://api.rocket.rs/v0.3/rocket/struct.Rocket.html#method.routes
|
||||||
[`Response::body_string()`]: https://api.rocket.rs/rocket/struct.Response.html#method.body_string
|
[`Response::body_string()`]: https://api.rocket.rs/v0.3/rocket/struct.Response.html#method.body_string
|
||||||
[`Response::body_bytes()`]: https://api.rocket.rs/rocket/struct.Response.html#method.body_bytes
|
[`Response::body_bytes()`]: https://api.rocket.rs/v0.3/rocket/struct.Response.html#method.body_bytes
|
||||||
[`Response::content_type()`]: https://api.rocket.rs/rocket/struct.Response.html#method.content_type
|
[`Response::content_type()`]: https://api.rocket.rs/v0.3/rocket/struct.Response.html#method.content_type
|
||||||
[`Request::guard()`]: https://api.rocket.rs/rocket/struct.Request.html#method.guard
|
[`Request::guard()`]: https://api.rocket.rs/v0.3/rocket/struct.Request.html#method.guard
|
||||||
[`Request::limits()`]: https://api.rocket.rs/rocket/struct.Request.html#method.limits
|
[`Request::limits()`]: https://api.rocket.rs/v0.3/rocket/struct.Request.html#method.limits
|
||||||
[`Request::route()`]: https://api.rocket.rs/rocket/struct.Request.html#method.route
|
[`Request::route()`]: https://api.rocket.rs/v0.3/rocket/struct.Request.html#method.route
|
||||||
[`Config`]: https://api.rocket.rs/rocket/struct.Config.html
|
[`Config`]: https://api.rocket.rs/v0.3/rocket/struct.Config.html
|
||||||
[`Cookies`]: https://api.rocket.rs/rocket/http/enum.Cookies.html
|
[`Cookies`]: https://api.rocket.rs/v0.3/rocket/http/enum.Cookies.html
|
||||||
[`Config::get_datetime()`]: https://api.rocket.rs/rocket/struct.Config.html#method.get_datetime
|
[`Config::get_datetime()`]: https://api.rocket.rs/v0.3/rocket/struct.Config.html#method.get_datetime
|
||||||
[`LenientForm`]: https://api.rocket.rs/rocket/request/struct.LenientForm.html
|
[`LenientForm`]: https://api.rocket.rs/v0.3/rocket/request/struct.LenientForm.html
|
||||||
[configuration parameters]: https://api.rocket.rs/rocket/config/index.html#environment-variables
|
[configuration parameters]: https://api.rocket.rs/v0.3/rocket/config/index.html#environment-variables
|
||||||
[`NotFound`]: https://api.rocket.rs/rocket/response/status/struct.NotFound.html
|
[`NotFound`]: https://api.rocket.rs/v0.3/rocket/response/status/struct.NotFound.html
|
||||||
|
|
||||||
## Breaking Changes
|
## Breaking Changes
|
||||||
|
|
||||||
|
@ -462,18 +462,18 @@ applications.
|
||||||
Use `Json`, `Xml`, `Html`, and `Css` instead of `JSON`, `XML`, `HTML`, and
|
Use `Json`, `Xml`, `Html`, and `Css` instead of `JSON`, `XML`, `HTML`, and
|
||||||
`CSS`, respectively.
|
`CSS`, respectively.
|
||||||
|
|
||||||
[`&RawStr`]: https://api.rocket.rs/rocket/http/struct.RawStr.html
|
[`&RawStr`]: https://api.rocket.rs/v0.3/rocket/http/struct.RawStr.html
|
||||||
[`IntoOutcome`]: https://api.rocket.rs/rocket/outcome/trait.IntoOutcome.html
|
[`IntoOutcome`]: https://api.rocket.rs/v0.3/rocket/outcome/trait.IntoOutcome.html
|
||||||
[`local`]: https://api.rocket.rs/rocket/local/index.html
|
[`local`]: https://api.rocket.rs/v0.3/rocket/local/index.html
|
||||||
[`Rocket::config()`]: https://api.rocket.rs/rocket/struct.Rocket.html#method.config
|
[`Rocket::config()`]: https://api.rocket.rs/v0.3/rocket/struct.Rocket.html#method.config
|
||||||
[managed state]: https://rocket.rs/guide/state/
|
[managed state]: https://rocket.rs/v0.3/guide/state/
|
||||||
[`Responder`]: https://api.rocket.rs/rocket/response/trait.Responder.html
|
[`Responder`]: https://api.rocket.rs/v0.3/rocket/response/trait.Responder.html
|
||||||
[`Template::show()`]: https://api.rocket.rs/rocket_contrib/struct.Template.html#method.show
|
[`Template::show()`]: https://api.rocket.rs/v0.3/rocket_contrib/struct.Template.html#method.show
|
||||||
[`FromForm`]: https://api.rocket.rs/rocket/request/trait.FromForm.html
|
[`FromForm`]: https://api.rocket.rs/v0.3/rocket/request/trait.FromForm.html
|
||||||
[`ConfigError`]: https://api.rocket.rs/rocket/config/enum.ConfigError.html
|
[`ConfigError`]: https://api.rocket.rs/v0.3/rocket/config/enum.ConfigError.html
|
||||||
[`ContentType::from_extension()`]: https://api.rocket.rs/rocket/http/struct.ContentType.html#method.from_extension
|
[`ContentType::from_extension()`]: https://api.rocket.rs/v0.3/rocket/http/struct.ContentType.html#method.from_extension
|
||||||
[`rocket_contrib::Json`]: https://api.rocket.rs/rocket_contrib/struct.Json.html
|
[`rocket_contrib::Json`]: https://api.rocket.rs/v0.3/rocket_contrib/struct.Json.html
|
||||||
[`content`]: https://api.rocket.rs/rocket/response/content/index.html
|
[`content`]: https://api.rocket.rs/v0.3/rocket/response/content/index.html
|
||||||
|
|
||||||
## General Improvements
|
## General Improvements
|
||||||
|
|
||||||
|
@ -500,8 +500,8 @@ In addition to new features, Rocket saw the following improvements:
|
||||||
* The format of a request is always logged when available.
|
* The format of a request is always logged when available.
|
||||||
|
|
||||||
[`yansi`]: https://crates.io/crates/yansi
|
[`yansi`]: https://crates.io/crates/yansi
|
||||||
[`Request`]: https://api.rocket.rs/rocket/struct.Request.html
|
[`Request`]: https://api.rocket.rs/v0.3/rocket/struct.Request.html
|
||||||
[`State`]: https://api.rocket.rs/rocket/struct.State.html
|
[`State`]: https://api.rocket.rs/v0.3/rocket/struct.State.html
|
||||||
|
|
||||||
## Infrastructure
|
## Infrastructure
|
||||||
|
|
||||||
|
@ -606,7 +606,7 @@ In addition to new features, Rocket saw the following improvements:
|
||||||
# Version 0.2.0 (Feb 06, 2017)
|
# Version 0.2.0 (Feb 06, 2017)
|
||||||
|
|
||||||
Detailed release notes for v0.2 can also be found on
|
Detailed release notes for v0.2 can also be found on
|
||||||
[rocket.rs](https://rocket.rs/news/2017-02-06-version-0.2/).
|
[rocket.rs](https://rocket.rs/v0.3/news/2017-02-06-version-0.2/).
|
||||||
|
|
||||||
## New Features
|
## New Features
|
||||||
|
|
||||||
|
|
12
README.md
12
README.md
|
@ -39,11 +39,11 @@ Rocket is extensively documented:
|
||||||
* [Guide]: A detailed guide and reference to Rocket.
|
* [Guide]: A detailed guide and reference to Rocket.
|
||||||
* [API Documentation]: The "rustdocs".
|
* [API Documentation]: The "rustdocs".
|
||||||
|
|
||||||
[Quickstart]: https://rocket.rs/guide/quickstart
|
[Quickstart]: https://rocket.rs/v0.4/guide/quickstart
|
||||||
[Getting Started]: https://rocket.rs/guide/getting-started
|
[Getting Started]: https://rocket.rs/v0.4/guide/getting-started
|
||||||
[Overview]: https://rocket.rs/overview
|
[Overview]: https://rocket.rs/v0.4/overview
|
||||||
[Guide]: https://rocket.rs/guide
|
[Guide]: https://rocket.rs/v0.4/guide
|
||||||
[API Documentation]: https://api.rocket.rs/rocket
|
[API Documentation]: https://api.rocket.rs/v0.4/rocket
|
||||||
|
|
||||||
The official community support channels are the `#rocket` IRC channel on the
|
The official community support channels are the `#rocket` IRC channel on the
|
||||||
[Mozilla IRC Server](https://wiki.mozilla.org/IRC) at `irc.mozilla.org` and the
|
[Mozilla IRC Server](https://wiki.mozilla.org/IRC) at `irc.mozilla.org` and the
|
||||||
|
@ -111,7 +111,7 @@ for information on how to write compiler tests.
|
||||||
|
|
||||||
You can build the Rocket API documentation locally by running
|
You can build the Rocket API documentation locally by running
|
||||||
`./scripts/mk-docs.sh`. The resulting documentation is what gets uploaded to
|
`./scripts/mk-docs.sh`. The resulting documentation is what gets uploaded to
|
||||||
[api.rocket.rs](https://api.rocket.rs).
|
[api.rocket.rs](https://api.rocket.rs/v0.4/).
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ name = "rocket_contrib_codegen"
|
||||||
version = "0.4.0-dev"
|
version = "0.4.0-dev"
|
||||||
authors = ["Sergio Benitez <sb@sergio.bz>"]
|
authors = ["Sergio Benitez <sb@sergio.bz>"]
|
||||||
description = "Procedural macros for the Rocket contrib libraries."
|
description = "Procedural macros for the Rocket contrib libraries."
|
||||||
documentation = "https://api.rocket.rs/rocket_contrib_codegen/"
|
documentation = "https://api.rocket.rs/v0.4/rocket_contrib_codegen/"
|
||||||
homepage = "https://rocket.rs"
|
homepage = "https://rocket.rs"
|
||||||
repository = "https://github.com/SergioBenitez/Rocket"
|
repository = "https://github.com/SergioBenitez/Rocket"
|
||||||
readme = "../../../README.md"
|
readme = "../../../README.md"
|
||||||
|
|
|
@ -3,7 +3,7 @@ name = "rocket_contrib"
|
||||||
version = "0.4.0-dev"
|
version = "0.4.0-dev"
|
||||||
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/0.4.0-dev/rocket_contrib/"
|
documentation = "https://api.rocket.rs/v0.4/rocket_contrib/"
|
||||||
homepage = "https://rocket.rs"
|
homepage = "https://rocket.rs"
|
||||||
repository = "https://github.com/SergioBenitez/Rocket"
|
repository = "https://github.com/SergioBenitez/Rocket"
|
||||||
readme = "../../README.md"
|
readme = "../../README.md"
|
||||||
|
|
|
@ -174,7 +174,7 @@
|
||||||
//! Lastly, databases can be configured via environment variables by specifying
|
//! Lastly, databases can be configured via environment variables by specifying
|
||||||
//! the `databases` table as detailed in the [Environment Variables
|
//! the `databases` table as detailed in the [Environment Variables
|
||||||
//! configuration
|
//! configuration
|
||||||
//! guide](https://rocket.rs/guide/configuration/#environment-variables):
|
//! guide](https://rocket.rs/v0.4/guide/configuration/#environment-variables):
|
||||||
//!
|
//!
|
||||||
//! ```bash
|
//! ```bash
|
||||||
//! ROCKET_DATABASES={my_db={url="db.sqlite"}}
|
//! ROCKET_DATABASES={my_db={url="db.sqlite"}}
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
#![feature(never_type)]
|
#![feature(never_type)]
|
||||||
#![feature(doc_cfg)]
|
#![feature(doc_cfg)]
|
||||||
|
|
||||||
#![doc(html_root_url = "https://api.rocket.rs/0.4.0-dev")]
|
#![doc(html_root_url = "https://api.rocket.rs/v0.4")]
|
||||||
#![doc(html_favicon_url = "https://rocket.rs/favicon.ico")]
|
#![doc(html_favicon_url = "https://rocket.rs/v0.4/images/favicon.ico")]
|
||||||
#![doc(html_logo_url = "https://rocket.rs/images/logo-boxed.png")]
|
#![doc(html_logo_url = "https://rocket.rs/v0.4/images/logo-boxed.png")]
|
||||||
|
|
||||||
//! This crate contains officially sanctioned contributor libraries that provide
|
//! This crate contains officially sanctioned contributor libraries that provide
|
||||||
//! functionality commonly used by Rocket applications.
|
//! functionality commonly used by Rocket applications.
|
||||||
|
|
|
@ -57,8 +57,8 @@
|
||||||
//! template directory is configured via the `template_dir` configuration
|
//! template directory is configured via the `template_dir` configuration
|
||||||
//! parameter and defaults to `templates/`. The path set in `template_dir` is
|
//! parameter and defaults to `templates/`. The path set in `template_dir` is
|
||||||
//! relative to the Rocket configuration file. See the [configuration
|
//! relative to the Rocket configuration file. See the [configuration
|
||||||
//! chapter](https://rocket.rs/guide/configuration/#extras) of the guide for
|
//! chapter](https://rocket.rs/v0.4/guide/configuration/#extras) of the guide
|
||||||
//! more information on configuration.
|
//! for more information on configuration.
|
||||||
//!
|
//!
|
||||||
//! The corresponding templating engine used for a given template is based on a
|
//! The corresponding templating engine used for a given template is based on a
|
||||||
//! template's extension. At present, this library supports the following
|
//! template's extension. At present, this library supports the following
|
||||||
|
|
|
@ -3,7 +3,7 @@ name = "rocket_codegen"
|
||||||
version = "0.4.0-dev"
|
version = "0.4.0-dev"
|
||||||
authors = ["Sergio Benitez <sb@sergio.bz>"]
|
authors = ["Sergio Benitez <sb@sergio.bz>"]
|
||||||
description = "Procedural macros for the Rocket web framework."
|
description = "Procedural macros for the Rocket web framework."
|
||||||
documentation = "https://api.rocket.rs/0.4.0-dev/rocket_codegen/"
|
documentation = "https://api.rocket.rs/v0.4/rocket_codegen/"
|
||||||
homepage = "https://rocket.rs"
|
homepage = "https://rocket.rs"
|
||||||
repository = "https://github.com/SergioBenitez/Rocket"
|
repository = "https://github.com/SergioBenitez/Rocket"
|
||||||
readme = "../../README.md"
|
readme = "../../README.md"
|
||||||
|
|
|
@ -4,16 +4,16 @@
|
||||||
#![feature(rustc_private)]
|
#![feature(rustc_private)]
|
||||||
#![recursion_limit="128"]
|
#![recursion_limit="128"]
|
||||||
|
|
||||||
#![doc(html_root_url = "https://api.rocket.rs/0.4.0-dev")]
|
#![doc(html_root_url = "https://api.rocket.rs/v0.4")]
|
||||||
#![doc(html_favicon_url = "https://rocket.rs/favicon.ico")]
|
#![doc(html_favicon_url = "https://rocket.rs/v0.4/images/favicon.ico")]
|
||||||
#![doc(html_logo_url = "https://rocket.rs/images/logo-boxed.png")]
|
#![doc(html_logo_url = "https://rocket.rs/v0.4/images/logo-boxed.png")]
|
||||||
|
|
||||||
//! # Rocket - Code Generation
|
//! # Rocket - Code Generation
|
||||||
//!
|
//!
|
||||||
//! This crate implements the code generation portions of Rocket. This includes
|
//! This crate implements the code generation portions of Rocket. This includes
|
||||||
//! custom derives, custom attributes, and procedural macros. The documentation
|
//! custom derives, custom attributes, and procedural macros. The documentation
|
||||||
//! here is purely technical. The code generation facilities are documented
|
//! here is purely technical. The code generation facilities are documented
|
||||||
//! thoroughly in the [Rocket programming guide](https://rocket.rs/guide).
|
//! thoroughly in the [Rocket programming guide](https://rocket.rs/v0.4/guide).
|
||||||
//!
|
//!
|
||||||
//! # Debugging Codegen
|
//! # Debugging Codegen
|
||||||
//!
|
//!
|
||||||
|
|
|
@ -5,7 +5,7 @@ authors = ["Sergio Benitez <sb@sergio.bz>"]
|
||||||
description = """
|
description = """
|
||||||
Types, traits, and parsers for HTTP requests, responses, and headers.
|
Types, traits, and parsers for HTTP requests, responses, and headers.
|
||||||
"""
|
"""
|
||||||
documentation = "https://api.rocket.rs/rocket_http/"
|
documentation = "https://api.rocket.rs/v0.4/rocket_http/"
|
||||||
homepage = "https://rocket.rs"
|
homepage = "https://rocket.rs"
|
||||||
repository = "https://github.com/SergioBenitez/Rocket"
|
repository = "https://github.com/SergioBenitez/Rocket"
|
||||||
readme = "../../README.md"
|
readme = "../../README.md"
|
||||||
|
|
|
@ -5,7 +5,7 @@ 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.
|
||||||
"""
|
"""
|
||||||
documentation = "https://api.rocket.rs/0.4.0-dev/rocket/"
|
documentation = "https://api.rocket.rs/v0.4/rocket/"
|
||||||
homepage = "https://rocket.rs"
|
homepage = "https://rocket.rs"
|
||||||
repository = "https://github.com/SergioBenitez/Rocket"
|
repository = "https://github.com/SergioBenitez/Rocket"
|
||||||
readme = "../../README.md"
|
readme = "../../README.md"
|
||||||
|
|
|
@ -33,7 +33,7 @@ fn main() {
|
||||||
print_version_err(&*version, &*date);
|
print_version_err(&*version, &*date);
|
||||||
eprintln!("{}{}{}",
|
eprintln!("{}{}{}",
|
||||||
Blue.paint("See the getting started guide ("),
|
Blue.paint("See the getting started guide ("),
|
||||||
White.paint("https://rocket.rs/guide/getting-started/"),
|
White.paint("https://rocket.rs/v0.4/guide/getting-started/"),
|
||||||
Blue.paint(") for more information."));
|
Blue.paint(") for more information."));
|
||||||
panic!("Aborting compilation due to incompatible compiler.")
|
panic!("Aborting compilation due to incompatible compiler.")
|
||||||
}
|
}
|
||||||
|
|
|
@ -320,7 +320,7 @@ pub use self::info_kind::{Info, Kind};
|
||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
///
|
///
|
||||||
/// [request-local state]: https://rocket.rs/guide/state/#request-local-state
|
/// [request-local state]: https://rocket.rs/v0.4/guide/state/#request-local-state
|
||||||
|
|
||||||
pub trait Fairing: Send + Sync + 'static {
|
pub trait Fairing: Send + Sync + 'static {
|
||||||
/// Returns an [`Info`] structure containing the `name` and [`Kind`] of this
|
/// Returns an [`Info`] structure containing the `name` and [`Kind`] of this
|
||||||
|
|
|
@ -10,9 +10,9 @@
|
||||||
|
|
||||||
#![recursion_limit="256"]
|
#![recursion_limit="256"]
|
||||||
|
|
||||||
#![doc(html_root_url = "https://api.rocket.rs/0.4.0-dev")]
|
#![doc(html_root_url = "https://api.rocket.rs/v0.4")]
|
||||||
#![doc(html_favicon_url = "https://rocket.rs/favicon.ico")]
|
#![doc(html_favicon_url = "https://rocket.rs/v0.4/images/favicon.ico")]
|
||||||
#![doc(html_logo_url = "https://rocket.rs/images/logo-boxed.png")]
|
#![doc(html_logo_url = "https://rocket.rs/v0.4/images/logo-boxed.png")]
|
||||||
|
|
||||||
//! # Rocket - Core API Documentation
|
//! # Rocket - Core API Documentation
|
||||||
//!
|
//!
|
||||||
|
@ -28,10 +28,10 @@
|
||||||
//! automatic JSON (de)serialiazation, templating support, static file serving,
|
//! automatic JSON (de)serialiazation, templating support, static file serving,
|
||||||
//! and other useful features.
|
//! and other useful features.
|
||||||
//!
|
//!
|
||||||
//! [overview]: https://rocket.rs/overview
|
//! [overview]: https://rocket.rs/v0.4/overview
|
||||||
//! [full, detailed guide]: https://rocket.rs/guide
|
//! [full, detailed guide]: https://rocket.rs/v0.4/guide
|
||||||
//! [quickstart]: https://rocket.rs/guide/quickstart
|
//! [quickstart]: https://rocket.rs/v0.4/guide/quickstart
|
||||||
//! [getting started]: https://rocket.rs/guide/getting-started
|
//! [getting started]: https://rocket.rs/v0.4/guide/getting-started
|
||||||
//!
|
//!
|
||||||
//! ## Libraries
|
//! ## Libraries
|
||||||
//!
|
//!
|
||||||
|
@ -60,7 +60,7 @@
|
||||||
//! # fn main() { rocket::ignite().mount("/", routes![hello]); }
|
//! # fn main() { rocket::ignite().mount("/", routes![hello]); }
|
||||||
//! ```
|
//! ```
|
||||||
//!
|
//!
|
||||||
//! See the [guide](https://rocket.rs/guide) for more information on how to
|
//! See the [guide](https://rocket.rs/v0.4/guide) for more information on how to
|
||||||
//! write Rocket applications. Here's a simple example to get you started:
|
//! write Rocket applications. Here's a simple example to get you started:
|
||||||
//!
|
//!
|
||||||
//! ```rust
|
//! ```rust
|
||||||
|
@ -87,7 +87,7 @@
|
||||||
//! configure Rocket, see the [configuration section] of the guide as well as
|
//! configure Rocket, see the [configuration section] of the guide as well as
|
||||||
//! the [`config`] module documentation.
|
//! the [`config`] module documentation.
|
||||||
//!
|
//!
|
||||||
//! [configuration section]: https://rocket.rs/guide/configuration/
|
//! [configuration section]: https://rocket.rs/v0.4/guide/configuration/
|
||||||
//!
|
//!
|
||||||
//! ## Testing
|
//! ## Testing
|
||||||
//!
|
//!
|
||||||
|
@ -96,7 +96,7 @@
|
||||||
//! documentation and the [testing chapter of the guide] include detailed
|
//! documentation and the [testing chapter of the guide] include detailed
|
||||||
//! examples.
|
//! examples.
|
||||||
//!
|
//!
|
||||||
//! [testing chapter of the guide]: https://rocket.rs/guide/testing/#testing
|
//! [testing chapter of the guide]: https://rocket.rs/v0.4/guide/testing/#testing
|
||||||
|
|
||||||
#[allow(unused_imports)] #[macro_use] extern crate rocket_codegen;
|
#[allow(unused_imports)] #[macro_use] extern crate rocket_codegen;
|
||||||
#[doc(hidden)] pub use rocket_codegen::*;
|
#[doc(hidden)] pub use rocket_codegen::*;
|
||||||
|
|
|
@ -340,7 +340,7 @@ impl<S, E> IntoOutcome<S, (Status, E), ()> for Result<S, E> {
|
||||||
/// Notice that these request guards provide access to *borrowed* data (`&'a
|
/// Notice that these request guards provide access to *borrowed* data (`&'a
|
||||||
/// User` and `Admin<'a>`) as the data is now owned by the request's cache.
|
/// User` and `Admin<'a>`) as the data is now owned by the request's cache.
|
||||||
///
|
///
|
||||||
/// [request-local state]: https://rocket.rs/guide/state/#request-local-state
|
/// [request-local state]: https://rocket.rs/v0.4/guide/state/#request-local-state
|
||||||
|
|
||||||
pub trait FromRequest<'a, 'r>: Sized {
|
pub trait FromRequest<'a, 'r>: Sized {
|
||||||
/// The associated error to be returned if derivation fails.
|
/// The associated error to be returned if derivation fails.
|
||||||
|
|
|
@ -19,11 +19,21 @@ if ! git grep -c "${1}" > /dev/null; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
today=$(date "+%b %d, %Y")
|
function major() {
|
||||||
|
echo "${1}" | cut -d'.' -f1-2
|
||||||
|
}
|
||||||
|
|
||||||
find "${PROJECT_ROOT}" -name "lib.rs" | xargs sed -i.bak "s/${1}/${2}/g"
|
function do_replace() {
|
||||||
find "${PROJECT_ROOT}" -name "*.toml" | xargs sed -i.bak "s/${1}/${2}/g"
|
find "${PROJECT_ROOT}" -name "*.rs" | xargs sed -i.bak "s/${1}/${2}/g"
|
||||||
find "${SITE_ROOT}" -name "*.md" | xargs sed -i.bak "s/${1}/${2}/g"
|
find "${PROJECT_ROOT}" -name "*.toml" | xargs sed -i.bak "s/${1}/${2}/g"
|
||||||
sed -i.bak "s/^date.*/date = \"$today\"/" "${SITE_ROOT}/index.toml"
|
find "${SITE_ROOT}" -name "*.md" | xargs sed -i.bak "s/${1}/${2}/g"
|
||||||
sed -i.bak "s/${1}/${2}/g" "${SCRIPT_DIR}/config.sh"
|
sed -i.bak "s/${1}/${2}/g" "${SCRIPT_DIR}/config.sh"
|
||||||
|
sed -i.bak "s/${1}/${2}/g" "${PROJECT_ROOT}/README.md"
|
||||||
|
}
|
||||||
|
|
||||||
|
do_replace "v$(major ${1})" "v$(major ${2})"
|
||||||
|
do_replace "${1}" "${2}"
|
||||||
|
|
||||||
|
# today=$(date "+%b %d, %Y")
|
||||||
|
# sed -i.bak "s/^date.*/date = \"$today\"/" "${SITE_ROOT}/index.toml"
|
||||||
find ${PROJECT_ROOT} -name "*.bak" | xargs rm
|
find ${PROJECT_ROOT} -name "*.bak" | xargs rm
|
||||||
|
|
|
@ -13,7 +13,7 @@ This directory contains the following:
|
||||||
* `news/*.md` - News articles linked to from `news/index.toml`.
|
* `news/*.md` - News articles linked to from `news/index.toml`.
|
||||||
* `guide/*.md` - Guide pages linked to from `guide.md`.
|
* `guide/*.md` - Guide pages linked to from `guide.md`.
|
||||||
|
|
||||||
[Rocket Programming Guide]: https://rocket.rs/guide/
|
[Rocket Programming Guide]: https://rocket.rs/v0.4/guide/
|
||||||
|
|
||||||
### Guide Links
|
### Guide Links
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue