Git Product home page Git Product logo

Comments (8)

Byron avatar Byron commented on July 17, 2024

Actually I am having serious trouble compiling it myself. The only project that manages to compile it is google-apis-rs right now. Maybe the author of #19 can help with that too !

from yup-oauth2.

Byron avatar Byron commented on July 17, 2024

Maybe related to #23 .

from yup-oauth2.

dermesser avatar dermesser commented on July 17, 2024

Looking, I got the very same error. I'll try to reproduce.

from yup-oauth2.

dermesser avatar dermesser commented on July 17, 2024

@squidpickles Which version of serde_json are you using? yup-oauth2 is using 0.6.0, and if you use any other version than that, then there's an invisible type mismatch.

you could rewrite the compiler error as e.g.

error: the trait serde::de::Deserialize@serde_json-0.7.0 is not implemented for the type `yup_oauth2::common::Token` [E0277]

...although it implements serde::de::Deserialize@serde_json-0.6.0.

Try pinning your serde_json version to 0.6.0.

see also https://internals.rust-lang.org/t/dependency-hell-resolving-conflicting-version-requirements/1675. It's a similarly staggering error, but caused by different versions of one crate:

src/main.rs:513:9: 513:21 error: mismatched types:
 expected `rustc-serialize::json::Json`,
    found `rustc-serialize::json::Json`

from yup-oauth2.

squidpickles avatar squidpickles commented on July 17, 2024

@dermesser That's possibly what was happening.

I took a snapshot of all of the versions that were around the last time this compiled successfully.
The dependencies in my Cargo.toml look like this:

hyper = "0.7.2"
serde = "0.6.7"
serde_json = "0.6.0"
google-calendar3 = "0.1.10"
yup-oauth2 = "0.5.3"
time = "0.1.34"

(I notice it's not quite sticking to my desired versions. Is there a way to force maximum versions from the top level Cargo.toml?)

But, with those versions pinned, I get a new set of errors. The first:

target/debug/build/yup-oauth2-261d9a0a2c806055/out/lib.rs:189:17: 189:43 error: unresolved name `form_urlencoded::serialize` [E0425]
target/debug/build/yup-oauth2-261d9a0a2c806055/out/lib.rs:189                 form_urlencoded::serialize(&[("client_id", client_id),
                                                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~
.multirust/toolchains/stable/cargo/registry/src/github.com-88ac128001ac3a9a/yup-oauth2-0.5.6/src/lib.rs:71:1: 71:47 note: in this expansion of include!
target/debug/build/yup-oauth2-261d9a0a2c806055/out/lib.rs:189:17: 189:43 help: run `rustc --explain E0425` to see a detailed explanation

from yup-oauth2.

squidpickles avatar squidpickles commented on July 17, 2024

My code does compile with this attached Cargo.lock. Maybe I can incrementally upgrade packages until I find the break...

from yup-oauth2.

dermesser avatar dermesser commented on July 17, 2024

See PR 24 (issue #23) for the form_urlencoded... error

from yup-oauth2.

Byron avatar Byron commented on July 17, 2024

This should now be fixed with release 0.6.0. I am planning to upgrade the URL crate soon as well, in case that matters.

from yup-oauth2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.