Skip to content

Commit 91033b5

Browse files
committed
Don't enable the postgres feature by default
I've stopped documenting that it's enabled by default for a while, but I left it there for backwards compat reasons with the intention of eventually removing it. I think it's that time.
1 parent 025e359 commit 91033b5

7 files changed

Lines changed: 13 additions & 6 deletions

File tree

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ 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
8+
9+
### Changed
10+
11+
* The `postgres` feature is no longer enabled by default by `diesel` or
12+
`diesel_codegen_syntex`. Add `features = ["postgres"]` to your `Cargo.toml`.
13+
714
## [0.9.1] - 2016-12-09
815

916
### Fixed

diesel/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ dotenv = "0.8.0"
2424
tempdir = "^0.3.4"
2525

2626
[features]
27-
default = ["postgres"]
27+
default = []
2828
unstable = []
2929
large-tables = []
3030
huge-tables = ["large-tables"]

diesel_codegen_syntex/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ diesel = { version = "0.9.0", default-features = false }
2121
diesel_codegen_shared = { version = "0.9.0", default-features = false }
2222

2323
[features]
24-
default = ["postgres", "dotenv"]
24+
default = ["dotenv"]
2525
dotenv = ["diesel_codegen_shared/dotenv"]
2626
postgres = ["diesel/postgres", "diesel_codegen_shared/postgres"]
2727
sqlite = ["diesel/sqlite", "diesel_codegen_shared/sqlite"]

examples/getting_started_step_1/Cargo.toml

Lines changed: 1 addition & 1 deletion
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 = "0.9.0"
7+
diesel = { version = "0.9.0", features = ["postgres"] }
88
diesel_codegen = { version = "0.9.0", features = ["postgres"] }
99
dotenv = "0.8.0"

examples/getting_started_step_2/Cargo.toml

Lines changed: 1 addition & 1 deletion
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 = "0.9.0"
7+
diesel = { version = "0.9.0", features = ["postgres"] }
88
diesel_codegen = { version = "0.9.0", features = ["postgres"] }
99
dotenv = "0.8.0"

examples/getting_started_step_3/Cargo.toml

Lines changed: 1 addition & 1 deletion
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 = "0.9.0"
7+
diesel = { version = "0.9.0", features = ["postgres"] }
88
diesel_codegen = { version = "0.9.0", features = ["postgres"] }
99
dotenv = "0.8.0"

examples/getting_started_step_4/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ build = "build.rs"
88
diesel_codegen_syntex = { version = "0.9.0", features = ["postgres"], optional = true }
99

1010
[dependencies]
11-
diesel = "0.9.0"
11+
diesel = { version = "0.9.0", features = ["postgres"] }
1212
diesel_codegen = { version = "0.9.0", features = ["postgres"], optional = true }
1313
dotenv = "0.8.0"
1414

0 commit comments

Comments
 (0)