Syntex 0.33 and Syntex 0.35 are making troubles. #13

Closed
opened 2016-06-12 16:11:28 +12:00 by nfmelendez · 2 comments
nfmelendez commented 2016-06-12 16:11:28 +12:00 (Migrated from github.com)

Maybe i am wrong because i am new to Rust,
but i see a dependecy version problem,
textnonce uses syntex 0.33
here : https://github.com/mikedilger/textnonce/blob/master/Cargo.toml#L25

And then the dependecy of textnonce: serde_codegen is using syntex 0.35
here: https://github.com/serde-rs/serde/blob/master/serde_codegen/Cargo.toml#L28

So i get as result a dependecy problem:

/Users/nfmelendez/.cargo/registry/src/github.com-88ac128001ac3a9a/textnonce-0.3.3/build.rs:20:35: 20:48 error: mismatched types:
 expected `&mut syntex::Registry`,
    found `&mut syntex::Registry`
(expected struct `syntex::Registry`,
    found a different struct `syntex::Registry`) [E0308]
/Users/nfmelendez/.cargo/registry/src/github.com-88ac128001ac3a9a/textnonce-0.3.3/build.rs:20         ::serde_codegen::register(&mut registry);
                                                                                                                                ^~~~~~~~~~~~~
/Users/nfmelendez/.cargo/registry/src/github.com-88ac128001ac3a9a/textnonce-0.3.3/build.rs:20:35: 20:48 help: run `rustc --explain E0308` to see a detailed explanation
/Users/nfmelendez/.cargo/registry/src/github.com-88ac128001ac3a9a/textnonce-0.3.3/build.rs:20:35: 20:48 note: Perhaps two different versions of crate `syntex` are being used?
/Users/nfmelendez/.cargo/registry/src/github.com-88ac128001ac3a9a/textnonce-0.3.3/build.rs:20         ::serde_codegen::register(&mut registry);
                                                                                                                                ^~~~~~~~~~~~~
error: aborting due to previous error
error: Could not compile `textnonce`.
Maybe i am wrong because i am new to Rust, but i see a dependecy version problem, textnonce uses syntex 0.33 here : https://github.com/mikedilger/textnonce/blob/master/Cargo.toml#L25 And then the dependecy of textnonce: serde_codegen is using syntex 0.35 here: https://github.com/serde-rs/serde/blob/master/serde_codegen/Cargo.toml#L28 So i get as result a dependecy problem: ``` /Users/nfmelendez/.cargo/registry/src/github.com-88ac128001ac3a9a/textnonce-0.3.3/build.rs:20:35: 20:48 error: mismatched types: expected `&mut syntex::Registry`, found `&mut syntex::Registry` (expected struct `syntex::Registry`, found a different struct `syntex::Registry`) [E0308] /Users/nfmelendez/.cargo/registry/src/github.com-88ac128001ac3a9a/textnonce-0.3.3/build.rs:20 ::serde_codegen::register(&mut registry); ^~~~~~~~~~~~~ /Users/nfmelendez/.cargo/registry/src/github.com-88ac128001ac3a9a/textnonce-0.3.3/build.rs:20:35: 20:48 help: run `rustc --explain E0308` to see a detailed explanation /Users/nfmelendez/.cargo/registry/src/github.com-88ac128001ac3a9a/textnonce-0.3.3/build.rs:20:35: 20:48 note: Perhaps two different versions of crate `syntex` are being used? /Users/nfmelendez/.cargo/registry/src/github.com-88ac128001ac3a9a/textnonce-0.3.3/build.rs:20 ::serde_codegen::register(&mut registry); ^~~~~~~~~~~~~ error: aborting due to previous error error: Could not compile `textnonce`. ```
nfmelendez commented 2016-06-12 16:26:45 +12:00 (Migrated from github.com)

To reproduce, just

  1. clone this repo
  2. run cargo build

rustc -V
rustc 1.9.0 (e4e8b6668 2016-05-18)

To reproduce, just 1) clone this repo 2) run cargo build rustc -V rustc 1.9.0 (e4e8b6668 2016-05-18)
mikedilger commented 2016-06-13 09:24:11 +12:00 (Migrated from github.com)

Published a new version. Since this keeps happening, I'm not specifying the exact syntex version anymore.

Published a new version. Since this keeps happening, I'm not specifying the exact syntex version anymore.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
mikedilger/textnonce#13
No description provided.