Skip to content

Commit

Permalink
New version: 0.5.0-rc.2.
Browse files Browse the repository at this point in the history
New contrib versions: 0.1.0-rc.2.
  • Loading branch information
SergioBenitez committed May 9, 2022
1 parent 29fc7f5 commit 4dcd928
Show file tree
Hide file tree
Showing 31 changed files with 110 additions and 70 deletions.
2 changes: 1 addition & 1 deletion contrib/db_pools/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ full usage details.

```toml
[dependencies.rocket_db_pools]
version = "0.1.0-rc"
version = "0.1.0-rc.2"
features = ["sqlx_sqlite"]
```

Expand Down
2 changes: 1 addition & 1 deletion contrib/db_pools/codegen/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rocket_db_pools_codegen"
version = "0.1.0-rc"
version = "0.1.0-rc.2"
authors = ["Sergio Benitez <[email protected]>", "Jeb Rosen <[email protected]>"]
description = "Procedural macros for rocket_db_pools."
repository = "https://github.com/SergioBenitez/Rocket/contrib/db_pools"
Expand Down
6 changes: 3 additions & 3 deletions contrib/db_pools/lib/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rocket_db_pools"
version = "0.1.0-rc"
version = "0.1.0-rc.2"
authors = ["Sergio Benitez <[email protected]>", "Jeb Rosen <[email protected]>"]
description = "Rocket async database pooling support"
repository = "https://github.com/SergioBenitez/Rocket/contrib/db_pools"
Expand All @@ -27,12 +27,12 @@ sqlx_macros = ["sqlx/macros"]

[dependencies.rocket]
path = "../../../core/lib"
version = "0.5.0-rc.1"
version = "0.5.0-rc.2"
default-features = false

[dependencies.rocket_db_pools_codegen]
path = "../codegen"
version = "0.1.0-rc"
version = "0.1.0-rc.2"

[dependencies.deadpool]
version = "0.9"
Expand Down
4 changes: 2 additions & 2 deletions contrib/db_pools/lib/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//!
//! ```toml
//! [dependencies.rocket_db_pools]
//! version = "0.1.0-rc"
//! version = "0.1.0-rc.2"
//! features = ["sqlx_sqlite"]
//! ```
//!
Expand Down Expand Up @@ -146,7 +146,7 @@
//! features = ["macros", "offline", "migrate"]
//!
//! [dependencies.rocket_db_pools]
//! version = "0.1.0-rc"
//! version = "0.1.0-rc.2"
//! features = ["sqlx_sqlite"]
//! ```
//!
Expand Down
4 changes: 2 additions & 2 deletions contrib/dyn_templates/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rocket_dyn_templates"
version = "0.1.0-rc.1"
version = "0.1.0-rc.2"
authors = ["Sergio Benitez <[email protected]>"]
description = "Dynamic templating engine integration for Rocket."
documentation = "https://api.rocket.rs/v0.5-rc/rocket_dyn_templates/"
Expand All @@ -22,7 +22,7 @@ notify = "4.0.6"
normpath = "0.3"

[dependencies.rocket]
version = "0.5.0-rc.1"
version = "0.5.0-rc.2"
path = "../../core/lib"
default-features = false

Expand Down
2 changes: 1 addition & 1 deletion contrib/dyn_templates/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ supports [Handlebars] and [Tera].

```toml
[dependencies.rocket_dyn_templates]
version = "0.1.0-rc.1"
version = "0.1.0-rc.2"
features = ["handlebars", "tera"]
```

Expand Down
2 changes: 1 addition & 1 deletion contrib/dyn_templates/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
//!
//! ```toml
//! [dependencies.rocket_dyn_templates]
//! version = "0.1.0-rc.1"
//! version = "0.1.0-rc.2"
//! features = ["handlebars", "tera"]
//! ```
//!
Expand Down
2 changes: 1 addition & 1 deletion contrib/sync_db_pools/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ First, enable the feature corresponding to your database type:

```toml
[dependencies.rocket_sync_db_pools]
version = "0.1.0-rc.1"
version = "0.1.0-rc.2"
features = ["diesel_sqlite_pool"]
```

Expand Down
2 changes: 1 addition & 1 deletion contrib/sync_db_pools/codegen/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rocket_sync_db_pools_codegen"
version = "0.1.0-rc.1"
version = "0.1.0-rc.2"
authors = ["Sergio Benitez <[email protected]>"]
description = "Procedural macros for rocket_sync_db_pools."
repository = "https://github.com/SergioBenitez/Rocket/contrib/sync_db_pools"
Expand Down
6 changes: 3 additions & 3 deletions contrib/sync_db_pools/lib/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rocket_sync_db_pools"
version = "0.1.0-rc.1"
version = "0.1.0-rc.2"
authors = ["Sergio Benitez <[email protected]>"]
description = "Rocket async database pooling support for sync database drivers."
repository = "https://github.com/SergioBenitez/Rocket/tree/v0.5-rc/contrib/sync_db_pools"
Expand Down Expand Up @@ -35,11 +35,11 @@ memcache = { version = "0.15", optional = true }
r2d2-memcache = { version = "0.6", optional = true }

[dependencies.rocket_sync_db_pools_codegen]
version = "0.1.0-rc.1"
version = "0.1.0-rc.2"
path = "../codegen"

[dependencies.rocket]
version = "0.5.0-rc.1"
version = "0.5.0-rc.2"
path = "../../../core/lib"
default-features = false

Expand Down
2 changes: 1 addition & 1 deletion contrib/sync_db_pools/lib/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
//!
//! ```toml
//! [dependencies.rocket_sync_db_pools]
//! version = "0.1.0-rc.1"
//! version = "0.1.0-rc.2"
//! features = ["diesel_sqlite_pool"]
//! ```
//!
Expand Down
6 changes: 3 additions & 3 deletions core/codegen/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rocket_codegen"
version = "0.5.0-rc.1"
version = "0.5.0-rc.2"
authors = ["Sergio Benitez <[email protected]>"]
description = "Procedural macros for the Rocket web framework."
documentation = "https://api.rocket.rs/v0.5-rc/rocket_codegen/"
Expand All @@ -21,12 +21,12 @@ quote = "1.0"
syn = { version = "1.0.72", features = ["full", "visit", "visit-mut", "extra-traits"] }
proc-macro2 = "1.0.27"
devise = "0.3.1"
rocket_http = { version = "0.5.0-rc.1", path = "../http/" }
rocket_http = { version = "0.5.0-rc.2", path = "../http/" }
unicode-xid = "0.2"
glob = "0.3"

[dev-dependencies]
rocket = { version = "0.5.0-rc.1", path = "../lib", features = ["json", "msgpack"] }
rocket = { path = "../lib", features = ["json", "msgpack"] }
time = { version = "0.3", features = ["macros"] }
pretty_assertions = "1"
version_check = "0.9"
Expand Down
2 changes: 1 addition & 1 deletion core/codegen/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
//!
//! ```toml
//! [dependencies]
//! rocket = "0.5.0-rc.1"
//! rocket = "0.5.0-rc.2"
//! ```
//!
//! And to import all macros, attributes, and derives via `#[macro_use]` in the
Expand Down
4 changes: 2 additions & 2 deletions core/http/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rocket_http"
version = "0.5.0-rc.1"
version = "0.5.0-rc.2"
authors = ["Sergio Benitez <[email protected]>"]
description = """
Types, traits, and parsers for HTTP requests, responses, and headers.
Expand Down Expand Up @@ -69,4 +69,4 @@ optional = true
default-features = false

[dev-dependencies]
rocket = { version = "0.5.0-rc.1", path = "../lib", features = ["mtls"] }
rocket = { path = "../lib", features = ["mtls"] }
6 changes: 3 additions & 3 deletions core/lib/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rocket"
version = "0.5.0-rc.1"
version = "0.5.0-rc.2"
authors = ["Sergio Benitez <[email protected]>"]
description = """
Web framework with a focus on usability, security, extensibility, and speed.
Expand Down Expand Up @@ -62,11 +62,11 @@ tokio-stream = { version = "0.1.6", features = ["signal", "time"] }
state = "0.5.1"

[dependencies.rocket_codegen]
version = "0.5.0-rc.1"
version = "0.5.0-rc.2"
path = "../codegen"

[dependencies.rocket_http]
version = "0.5.0-rc.1"
version = "0.5.0-rc.2"
path = "../http"
features = ["serde"]

Expand Down
6 changes: 3 additions & 3 deletions core/lib/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
//!
//! ```toml
//! [dependencies]
//! rocket = "0.5.0-rc.1"
//! rocket = "0.5.0-rc.2"
//! ```
//!
//! <small>Note that development versions, tagged with `-dev`, are not published
Expand Down Expand Up @@ -73,14 +73,14 @@
//!
//! ```toml
//! [dependencies]
//! rocket = { version = "0.5.0-rc.1", features = ["secrets", "tls", "json"] }
//! rocket = { version = "0.5.0-rc.2", features = ["secrets", "tls", "json"] }
//! ```
//!
//! Conversely, HTTP/2 can be disabled:
//!
//! ```toml
//! [dependencies]
//! rocket = { version = "0.5.0-rc.1", default-features = false }
//! rocket = { version = "0.5.0-rc.2", default-features = false }
//! ```
//!
//! [JSON (de)serialization]: crate::serde::json
Expand Down
2 changes: 1 addition & 1 deletion core/lib/src/serde/json.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
//!
//! ```toml
//! [dependencies.rocket]
//! version = "0.5.0-rc.1"
//! version = "0.5.0-rc.2"
//! features = ["json"]
//! ```
//!
Expand Down
2 changes: 1 addition & 1 deletion core/lib/src/serde/msgpack.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
//!
//! ```toml
//! [dependencies.rocket]
//! version = "0.5.0-rc.1"
//! version = "0.5.0-rc.2"
//! features = ["msgpack"]
//! ```
//!
Expand Down
2 changes: 1 addition & 1 deletion core/lib/src/serde/uuid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//!
//! ```toml
//! [dependencies.rocket]
//! version = "0.5.0-rc.1"
//! version = "0.5.0-rc.2"
//! features = ["uuid"]
//! ```
//!
Expand Down
20 changes: 0 additions & 20 deletions scripts/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,6 @@ set -e
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source "${SCRIPT_DIR}/config.sh"

function strip_dev_dependencies() {
perl -i.bak -p0e 's/\[dev-dependencies\].*//smg' "${1}/Cargo.toml"
}

function restore_dev_dependencies() {
mv "${1}/Cargo.toml.bak" "${1}/Cargo.toml"
}

if ! [ -z "$(git status --porcelain)" ]; then
echo "There are uncommitted changes! Aborting."
exit 1
Expand All @@ -28,12 +20,6 @@ cargo clean
bash "${SCRIPT_DIR}/test.sh" +stable --all
bash "${SCRIPT_DIR}/test.sh" +stable --all --release

# Temporarily remove dev-dependencies so crates.io verifies.
echo ":::: Stripping [dev-dependencies]..."
for dir in "${ALL_CRATE_ROOTS[@]}"; do
strip_dev_dependencies "${dir}"
done

# Publish all the things.
for dir in "${ALL_CRATE_ROOTS[@]}"; do
pushd "${dir}"
Expand All @@ -44,9 +30,3 @@ for dir in "${ALL_CRATE_ROOTS[@]}"; do
sleep 5
popd
done

# Restore dev-dependencies.
echo ":::: Restoring [dev-dependencies]..."
for dir in "${ALL_CRATE_ROOTS[@]}"; do
restore_dev_dependencies "${dir}"
done
6 changes: 3 additions & 3 deletions site/guide/01-upgrading-from-0.4.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ private cookies, you _must_ enable the `secrets` feature in `Cargo.toml`:

```toml
[dependencies]
rocket = { version = "0.5.0-rc.1", features = ["secrets"] }
rocket = { version = "0.5.0-rc.2", features = ["secrets"] }
```

### Contrib Deprecation
Expand All @@ -60,8 +60,8 @@ to `Cargo.toml`:
[dependencies]
- rocket = "0.4"
- rocket_contrib = { version = "0.4", features = ["json"], default-features = false }
+ rocket = { version = "0.5.0-rc.1", features = ["json"] }
+ rocket_dyn_templates = { version = "0.1.0-rc.1", features = ["tera"] }
+ rocket = { version = "0.5.0-rc.2", features = ["json"] }
+ rocket_dyn_templates = { version = "0.1.0-rc.2", features = ["tera"] }
```

! note: `rocket_dyn_templates` (and co.) _does not_ follow in version lock-step
Expand Down
2 changes: 1 addition & 1 deletion site/guide/10-pastebin.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Then add the usual Rocket dependencies to the `Cargo.toml` file:

```toml
[dependencies]
rocket = "0.5.0-rc.1"
rocket = "0.5.0-rc.2"
```

And finally, create a skeleton Rocket application to work off of in
Expand Down
2 changes: 1 addition & 1 deletion site/guide/12-faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ is to depend on a `contrib` library from git while also depending on a
`crates.io` version of Rocket or vice-versa:

```toml
rocket = "0.5.0-rc.1"
rocket = "0.5.0-rc.2"
rocket_db_pools = { git = "https://github.com/SergioBenitez/Rocket.git" }
```

Expand Down
2 changes: 1 addition & 1 deletion site/guide/2-getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Now, add Rocket as a dependency in your `Cargo.toml`:

```toml
[dependencies]
rocket = "0.5.0-rc.1"
rocket = "0.5.0-rc.2"
```

! warning: Development versions must be _git_ dependencies.
Expand Down
4 changes: 2 additions & 2 deletions site/guide/4-requests.md
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ feature:

```toml
## in Cargo.toml
rocket = { version = "0.5.0-rc.1", features = ["secrets"] }
rocket = { version = "0.5.0-rc.2", features = ["secrets"] }
```

The API for retrieving, adding, and removing private cookies is identical except
Expand Down Expand Up @@ -705,7 +705,7 @@ complete example.
feature can be enabled in the `Cargo.toml`:

`
rocket = { version = "0.5.0-rc.1", features = ["json"] }
rocket = { version = "0.5.0-rc.2", features = ["json"] }
`

### Temporary Files
Expand Down
2 changes: 1 addition & 1 deletion site/guide/5-responses.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ generated by `Status` for these and other codes:
| 100, [200, 205] | Empty with given status. |
| All others. | Invalid. Errors to `500` catcher. |

[`Status`]: https://api.rocket.rs/v0.5-rc/rocket/http/struct.Status.html
[`Status`]: @api/rocket/http/struct.Status.html

## Custom Responders

Expand Down
4 changes: 2 additions & 2 deletions site/guide/9-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ Security). To enable TLS support:

```toml,ignore
[dependencies]
rocket = { version = "0.5.0-rc.1", features = ["tls"] }
rocket = { version = "0.5.0-rc.2", features = ["tls"] }
```

2. Configure a TLS certificate chain and private key via the `tls.key` and
Expand Down Expand Up @@ -293,7 +293,7 @@ enabled and support configured via the `tls.mutual` config parameter:

```toml,ignore
[dependencies]
rocket = { version = "0.5.0-rc.1", features = ["mtls"] }
rocket = { version = "0.5.0-rc.2", features = ["mtls"] }
```

This implicitly enables the `tls` feature.
Expand Down
Loading

0 comments on commit 4dcd928

Please sign in to comment.