Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upUnable to build for testing and contributing #1543
Comments
This comment has been minimized.
|
Please add informations about what compiler version you tried to use |
This comment has been minimized.
|
You need to enable at least one feature. |
This comment has been minimized.
vityafx
commented
Feb 6, 2018
•
This comment has been minimized.
|
Ha you're running tests from the root, that's probably why. We don't do that. You should use |
This comment has been minimized.
vityafx
commented
Feb 6, 2018
•
|
@Eijebong well, was written it somewhere and I missed that? :)
|
This comment has been minimized.
|
It's written there https://github.com/diesel-rs/diesel/blob/master/CONTRIBUTING.md#setting-up-diesel-locally (5.) To use it in your project, you can add a |
This comment has been minimized.
|
You also need to pin your compiler to the same version we're using, you can find it there: https://github.com/diesel-rs/diesel/blob/master/.travis.yml#L45 |
This comment has been minimized.
vityafx
commented
Feb 6, 2018
|
@Eijebong could you provide an example of how I add the [dependencies.diesel]
version = "1"
features = ["sqlite", "chrono"]
[replace]
"diesel:1.1.1" = { path = "../../diesel/" }According to what I see during the compilation, my |
This comment has been minimized.
|
A replace section will only work in a workspace as far as I know, so you need to add [workspace] to Cargo.toml. |
This comment has been minimized.
vityafx
commented
Feb 6, 2018
|
I have a project without workspaces which uses |
This comment has been minimized.
|
Just add an line with |
This comment has been minimized.
vityafx
commented
Feb 6, 2018
•
|
The
This was for: [dependencies.diesel]
version = "1"
features = ["sqlite", "chrono"]
[replace]
"diesel:1.1.1" = { path = "../../diesel/diesel" }
[workspace]If I try to set the root path where is the diesel workspace (or repository root): [dependencies.diesel]
version = "1"
features = ["sqlite", "chrono"]
[replace]
"diesel:1.1.1" = { path = "../../diesel" }
[workspace]I get this:
|
This comment has been minimized.
vityafx
commented
Feb 6, 2018
|
Fixed that by adding a [dependencies.diesel]
version = "1"
features = ["sqlite", "chrono"]
[replace]
"diesel:1.1.1" = { path = "../../diesel/diesel" }
"diesel_derives:1.1.0" = { path = "../../diesel/diesel_derives" }
[workspace] |
vityafx commentedFeb 6, 2018
•
edited
I have a problem: the diesel framework does not have a database serialization for
chrono::DurationSo, I forked the project and made changes as I wanted. However, I can't run
cargo test:I can't even add my diesel for as dependency to my project which uses it so I can be at least sure that it works as expected.
How to test it and how to add my fork as a dependency instead of it from the using
crates-io?Versions: