Skip to content
This repository has been archived by the owner on Sep 29, 2023. It is now read-only.

Error 'no method named deserialize_newtype_struct' when compiling textnonce #28

Closed
sras opened this issue Mar 22, 2016 · 2 comments
Closed

Comments

@sras
Copy link

sras commented Mar 22, 2016

Error:

Compiling textnonce v0.2.4
/home/vagrant/rust_projects/hastily.rs/target/debug/build/textnonce-b46a6516de072497/out/lib.rs:97:26: 98:98 error: no method named deserialize_newtype_struct found for type &mut __D in the current scope

Cargo.toml contents

[package]
name = "hastily"
version = "0.1.0"
authors = ["vagrant"]

[dependencies]
hyper = "0.7.2"
rustc-serialize = "0.3"
xml-rs = "0.3"
zip = "0.1"
url = "*"
regex = "0.1"
formdata = { git = "https://github.com/mikedilger/formdata" }

@mikedilger
Copy link
Owner

textnonce works with a range of versions of serde. See mikedilger/textnonce#7

Check your Cargo.lock file for multiple colliding versions of serde and or serde_codegen.

If you find any dependencies on serde 0.6, especially if textnonce is using version 0.6, that will fail. In that case, manually edit Cargo.lock, and copy the serde dependencies from formdata into textnonce dependency.

I may be forced to require textnonce consumers to use serde 0.7 (even though it works with 0.6) because of the cargo bug rust-lang/cargo#2479 but for now please try the above.

@sras
Copy link
Author

sras commented Mar 24, 2016

There was no such issues in the Cargo.lock file. formdata and textnonce were depending on serde 0.7 version. The issue somehow resolved itself, after I ran a cargo update. Not sure how....

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants