-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compilation issue with serde_derive #14
Comments
nbigaouette-eai
added a commit
to nbigaouette-eai/restson-rust
that referenced
this issue
Jan 13, 2019
A conflict with cbindgen exists which prevent restson to be used with it. `cbindgen` [pins `serde_derive` to `1.0.58`](https://github.com/eqrion/cbindgen/blob/44e9b2112a06e46ddda6073e237d3a56df39c3e2/Cargo.toml#L24-L27) due to mozilla/cbindgen#203 so depending on `^1.0.80` prevents using both crates together. This patch simply relaxes the dependency on `serde_derive` to `1.0`, which is API compatible with both `1.0.80` and `1.0.58`. Closes spietika#14
Hum... I screwed up and opened a PR to my own fork... 🤔 |
spietika
pushed a commit
that referenced
this issue
Jan 14, 2019
A conflict with cbindgen exists which prevent restson to be used with it. `cbindgen` [pins `serde_derive` to `1.0.58`](https://github.com/eqrion/cbindgen/blob/44e9b2112a06e46ddda6073e237d3a56df39c3e2/Cargo.toml#L24-L27) due to mozilla/cbindgen#203 so depending on `^1.0.80` prevents using both crates together. This patch simply relaxes the dependency on `serde_derive` to `1.0`, which is API compatible with both `1.0.80` and `1.0.58`. Closes #14
I also relaxed the version for serde and serde_json. Many other dependencies have not reached 1.0 yet, so I'll probably keep the minimum patch version just in case, unless similar problems arise. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'd like to expose my client to Python so I'm trying to use milksnake to do so.
There seems to be a problem with cbindgen (used inside milksnake) which requires a fixed version of serde_derive (1.0.58).
But since restson explictly requires
^1.0.80
, the combination of both cannot be used.Could it be possible to relax the exact dependencies, at least for
serde_derive
? I think getting rid of the patch values should be enough:letting cargo pick up the latest version. No need for a "required minimal patch version". And I believe this is the same as:
The text was updated successfully, but these errors were encountered: