Error 'no method named deserialize_newtype_struct' when compiling textnonce #28
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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_structfound for type&mut __Din the current scopeCargo.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" }
textnonceworks with a range of versions of serde. See https://github.com/mikedilger/textnonce/issues/7Check your Cargo.lock file for multiple colliding versions of
serdeand orserde_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 https://github.com/rust-lang/cargo/issues/2479 but for now please try the above.
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....