Skip to content

Commit 3ae353c

Browse files
committed
Release v0.16.0
This release contains some changes to how joins work with Diesel, which we wanted to release as far in advance of 1.0 as possible. With this release, `#[belongs_to]` no longer generates the code required to join between two tables. The macro `joinable!` must be invoked instead. However, if you are using `infer_schema!` or `diesel print-schema`, these invocations will be generated based on the foreign keys in your database. Also included in this release is the ability to rename columns. This is most useful when your columns conflict with Rust keywords. See the changelog for details. In addition to the Diesel core team, 11 people contributed to this release. A huge thank you to: - Alex Alvarez dominalexican@gmail.com - Georg Semmler georg_semmler_05@web.de - Graham Grochowski ggrochow@gmail.com - JD Gonzales jd_gonzales@icloud.com - Lance Carlson lancecarlson@gmail.com - Maciej fiedzia@gmail.com - Robert Balicki robert.balicki@gmail.com - Sharad Chand sharad.d.chand@gmail.com - Taryn Hill taryn@phrohdoh.com - debris marek.kotewicz@gmail.com - klieth klieth@users.noreply.github.com
1 parent ff84e53 commit 3ae353c

18 files changed

Lines changed: 40 additions & 39 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ All user visible changes to this project will be documented in this file.
44
This project adheres to [Semantic Versioning](http://semver.org/), as described
55
for Rust libraries in [RFC #1105](https://github.com/rust-lang/rfcs/blob/master/text/1105-api-evolution.md)
66

7-
## Unreleased
7+
## [0.16.0] - 2017-08-24
88

99
### Added
1010

@@ -992,3 +992,4 @@ for Rust libraries in [RFC #1105](https://github.com/rust-lang/rfcs/blob/master/
992992
[0.15.0]: https://github.com/diesel-rs/diesel/compare/v0.14.1...v0.15.0
993993
[0.15.1]: https://github.com/diesel-rs/diesel/compare/v0.15.0...v0.15.1
994994
[0.15.2]: https://github.com/diesel-rs/diesel/compare/v0.15.1...v0.15.2
995+
[0.16.0]: https://github.com/diesel-rs/diesel/compare/v0.15.2...v0.16.0

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ members = [
2020
]
2121

2222
[replace]
23-
"diesel:0.15.2" = { path = "diesel" }
24-
"diesel_codegen:0.15.0" = { path = "diesel_codegen" }
25-
"diesel_infer_schema:0.15.0" = { path = "diesel_infer_schema" }
23+
"diesel:0.16.0" = { path = "diesel" }
24+
"diesel_codegen:0.16.0" = { path = "diesel_codegen" }
25+
"diesel_infer_schema:0.16.0" = { path = "diesel_infer_schema" }

diesel/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "diesel"
3-
version = "0.15.2"
3+
version = "0.16.0"
44
authors = ["Sean Griffin <sean@seantheprogrammer.com>"]
55
license = "MIT OR Apache-2.0"
66
description = "A safe, extensible ORM and Query builder"

diesel_cli/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "diesel_cli"
3-
version = "0.15.0"
3+
version = "0.16.0"
44
authors = ["Sean Griffin <sean@seantheprogrammer.com>"]
55
license = "MIT OR Apache-2.0"
66
description = "Provides the CLI for the Diesel crate"
@@ -17,9 +17,9 @@ path = "src/main.rs"
1717
[dependencies]
1818
chrono = "0.4"
1919
clap = "2.20.3"
20-
diesel = { version = "0.15.0", default-features = false }
20+
diesel = { version = "0.16.0", default-features = false }
2121
dotenv = ">=0.8, <0.11"
22-
diesel_infer_schema = "0.15.0"
22+
diesel_infer_schema = "0.16.0"
2323
clippy = { optional = true, version = "=0.0.138" }
2424

2525
[dev-dependencies]

diesel_codegen/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "diesel_codegen"
3-
version = "0.15.0"
3+
version = "0.16.0"
44
authors = ["Sean Griffin <sean@seantheprogrammer.com>"]
55
license = "MIT OR Apache-2.0"
66
description = "Custom derive and procedural macros for Diesel"
@@ -14,8 +14,8 @@ keywords = ["orm", "database", "postgres", "sql", "codegen"]
1414
syn = { version = "0.11.4", features = ["aster"] }
1515
quote = "0.3.12"
1616
dotenv = { version = ">=0.8, <0.11", optional = true, default-features = false }
17-
diesel = { version = "0.15.0", default-features = false }
18-
diesel_infer_schema = { version = "0.15.0", default-features = false, optional = true }
17+
diesel = { version = "0.16.0", default-features = false }
18+
diesel_infer_schema = { version = "0.16.0", default-features = false, optional = true }
1919
clippy = { optional = true, version = "=0.0.138" }
2020

2121
[dev-dependencies]

diesel_codegen/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ It also provides the macros [`infer_schema!`][infer-schema],
2525
First, add this crate to Cargo.toml as so:
2626

2727
```toml
28-
diesel_codegen = { version = "0.15.0", features = ["postgres"] }
28+
diesel_codegen = { version = "0.16.0", features = ["postgres"] }
2929
```
3030

3131
If you are using SQLite, be sure to specify `sqlite` instead of `postgres` in

diesel_compile_tests/Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ authors = ["Sean Griffin <sean@seantheprogrammer.com>"]
66
[workspace]
77

88
[dependencies]
9-
diesel = { version = "0.15.0", features = ["extras", "sqlite", "postgres", "mysql"] }
10-
diesel_codegen = { version = "0.15.0" }
9+
diesel = { version = "0.16.0", features = ["extras", "sqlite", "postgres", "mysql"] }
10+
diesel_codegen = { version = "0.16.0" }
1111
compiletest_rs = "=0.2.7"
1212

1313
[replace]
14-
"diesel:0.15.2" = { path = "../diesel" }
15-
"diesel_codegen:0.15.0" = { path = "../diesel_codegen" }
16-
"diesel_infer_schema:0.15.0" = { path = "../diesel_infer_schema" }
14+
"diesel:0.16.0" = { path = "../diesel" }
15+
"diesel_codegen:0.16.0" = { path = "../diesel_codegen" }
16+
"diesel_infer_schema:0.16.0" = { path = "../diesel_infer_schema" }

diesel_infer_schema/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "diesel_infer_schema"
3-
version = "0.15.0"
3+
version = "0.16.0"
44
authors = ["Sean Griffin <sean@seantheprogrammer.com>"]
55
license = "MIT OR Apache-2.0"
66
description = "Provides functionality to infer the schema of a database"
@@ -10,7 +10,7 @@ repository = "https://github.com/diesel-rs/diesel"
1010
keywords = ["orm", "database", "postgres", "postgresql", "sql"]
1111

1212
[dependencies]
13-
diesel = { version = "0.15.0", default-features = false }
13+
diesel = { version = "0.16.0", default-features = false }
1414
clippy = { optional = true, version = "=0.0.138" }
1515

1616
[dev-dependencies]

examples/mysql/getting_started_step_1/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ version = "0.1.0"
44
authors = ["Sean Griffin <sean@seantheprogrammer.com>"]
55

66
[dependencies]
7-
diesel = { version = "0.15.0", features = ["mysql"] }
8-
diesel_codegen = { version = "0.15.0", features = ["mysql"] }
7+
diesel = { version = "0.16.0", features = ["mysql"] }
8+
diesel_codegen = { version = "0.16.0", features = ["mysql"] }
99
dotenv = "0.8.0"

examples/mysql/getting_started_step_2/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ version = "0.1.0"
44
authors = ["Sean Griffin <sean@seantheprogrammer.com>"]
55

66
[dependencies]
7-
diesel = { version = "0.15.0", features = ["mysql"] }
8-
diesel_codegen = { version = "0.15.0", features = ["mysql"] }
7+
diesel = { version = "0.16.0", features = ["mysql"] }
8+
diesel_codegen = { version = "0.16.0", features = ["mysql"] }
99
dotenv = "0.8.0"

0 commit comments

Comments
 (0)