-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split
diesel_codegen
into two crates.
Having the same crate for both has caused a ton of problems with linking. I had hoped to just use cargo features for this, but it wasn't working out that way. `diesel_codegen` now only targets nightly. `diesel_codegen_syntex` handles syntex separately (and also contains the common code between the two crates). Neither crate includes the postgres feature by default. How to migrate -------------- If your Cargo.toml previously looked like this: ```rust [build-dependencies] diesel_codegen = "0.6.0" ``` it should change to ```rust [build-dependencies] diesel_codegen_syntex = { version = "0.7.0", features = ["postgres"] } ``` (You'll need to change the `extern crate` line in `build.rs`) If your Cargo.toml previously looked like this: ```rust [dependencies] diesel_codegen = { version = "0.6.0", default-features = false, features = ["nightly", "postgres"] } ``` it should change to ```rust [dependencies] diesel_codegen = { version = "0.7.0", features = ["postgres"] } ``` I've had to split out the cargo features in our test suite, since Cargo doesn't give me a way to say "turn on the diesel_codegen_syntex/postgres" feature only if the `with-syntex` and `postgres` features are on, and I don't want to have to build syntex every time I run the tests against nightly.
- Loading branch information
Showing
30 changed files
with
113 additions
and
258 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
paths = ["diesel"] | ||
paths = ["diesel", "diesel_codegen_syntex"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
[package] | ||
name = "diesel_codegen_syntex" | ||
version = "0.6.1" | ||
authors = ["Sean Griffin <sean@seantheprogrammer.com>"] | ||
license = "MIT OR Apache-2.0" | ||
build = "build.rs" | ||
description = "Allows use of `diesel_codegen` with `syntex`" | ||
documentation = "https://github.com/diesel-rs/diesel/blob/master/diesel_codegen" | ||
homepage = "http://diesel.rs" | ||
repository = "https://github.com/diesel-rs/diesel/tree/master/diesel_codegen" | ||
keywords = ["orm", "database", "postgres", "sql", "codegen"] | ||
|
||
[build-dependencies] | ||
syntex = { version = ">= 0.37.0, < 0.39.0", optional = true } | ||
syntex_syntax = { version = ">= 0.37.0, < 0.39.0", optional = true } | ||
|
||
[dependencies] | ||
syntex = { version = ">= 0.37.0, < 0.39.0", optional = true } | ||
syntex_syntax = { version = ">= 0.37.0, < 0.39.0", optional = true } | ||
diesel = { git = "https://github.com/diesel-rs/diesel.git", default-features = false } | ||
|
||
[dev-dependencies] | ||
tempdir = "0.3.4" | ||
|
||
[features] | ||
default = ["with-syntex"] | ||
with-syntex = ["syntex", "syntex_syntax"] | ||
postgres = ["diesel/postgres"] | ||
sqlite = ["diesel/sqlite"] |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
pub mod associations; | ||
mod attr; | ||
pub mod identifiable; | ||
pub mod insertable; | ||
pub mod migrations; | ||
mod model; | ||
pub mod queryable; | ||
pub mod schema_inference; | ||
pub mod update; |
Oops, something went wrong.