Comments (8)
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.
Maybe related to #23 .
from yup-oauth2.
Looking, I got the very same error. I'll try to reproduce.
from yup-oauth2.
@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.
@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.
My code does compile with this attached Cargo.lock
. Maybe I can incrementally upgrade packages until I find the break...
from yup-oauth2.
See PR 24 (issue #23) for the form_urlencoded...
error
from yup-oauth2.
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)
- Accept custom connectors HOT 2
- The DefaultHyperClient does not support http - Issue with metadata server authentication HOT 1
- Is there a way to stub authenticators? HOT 3
- Service account impersonation HOT 2
- Can we make the structs JSONToken & JSONTokens Public? HOT 2
- Custom redirect URI HOT 10
- [Question] - Get the signin link (custom message) HOT 1
- API improvements for Flows HOT 3
- HttpError occur during get token HOT 2
- Support for workload identity federation HOT 3
- PKCE
- Support for login_hint parameter
- Providing a RefreshToken for the AccessTokenAuthenticator HOT 1
- redirect_url to return String not &str HOT 4
- Method to retrieve the OAuth URL or opening the URL in the browser using the `open` crate HOT 1
- ADC Service Impersonation missing client_id HOT 4
- Upgrade to Hyper 1 HOT 2
- Is it possible to use static API key for simple usage HOT 1
- Latest release 10.0.0 does not compile HOT 2
- rustls panics when initializing DefaultConnection HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yup-oauth2.