Commit Graph

75 Commits

Author SHA1 Message Date
Martell Malone
f6d0fa0260 feat(jwt): use rustls and remove openssl
This removes the need for the remaining C interfaces.
Building any rust library with openssl adds a bunch
of depends such as foreign types via ffi and pkgconfg.
You are also required to have a prebuilt openssl.
Cross building and keeping up to date should be easier
with a pure rust implementation.
2017-06-26 16:29:56 +01:00
Martell Malone
112cc12f0e fix(version): bump rustls to 0.6.1
This bumps rustls to 0.6.1 which bumps webpki-roots.
We need this because the current version of webpki 0.8.0
has been removed from crates.io.
I created the 0.6.x rustls for hyper 0.10 support.
In future we should upade to hyper 0.11 which is rusls 0.8.0+
2017-06-22 14:29:39 +01:00
Narfinger
4afaa75c23 chore: update serde version 2017-06-01 23:17:09 +09:00
Brian Smith
22a3076924 Update dependencies.
The current Git master doesn't build with Rust 1.17 because the
version of Rustls used on master doesn't built with Rust 1.17.

* Update the base64 dependency to ensure the version with a buffer
overflow fix is used.

* Update hyper-rustls to one that uses a version of Rustls that builds
with Rust 1.17, and that uses *ring* 0.9+, to ensure there are no
problems with accidentally linking multiple versions of *ring*, to make
the build easier to set up (especially on Windows), and to keep things
working once *ring* 0.7.* gets yanked.

* Update the rust-openssl dependency while we're at it.
2017-05-09 10:42:32 -10:00
Lewin Bormann
076b943768 chore(version): Bump -> 1.0.5 2017-02-04 17:05:25 +01:00
Lewin Bormann
9908ab287b chore(deps): Add hyper-rustls to Cargo.toml. 2017-02-04 17:03:47 +01:00
Sebastian Thiel
cb17aa6298 chore(version): v1.0.4
Update changelog as well.

You can use
`clog --patch -c changelog.md`
to auto-update based on commit messages.
2017-02-03 06:55:17 +01:00
Sebastian Thiel
59584b240e imp(serde):use proc_macros and serde-derive
With Rust 1.15, proc macros have been stabilized. Therefore
custom build scripts are not required anymore.

This commit removes all the previous machinery and the
need for nightly.
2017-02-03 06:40:00 +01:00
Lewin Bormann
d4ebbc47b2 chore(language): Sort imports and migrate from deprecated types.
std:#️⃣:SipHasher is not std::collections::hash_map::DefaultHasher
(really!?).
Imports were unordered.
2017-01-31 19:27:50 +01:00
Lewin Bormann
567ff12cd4 fix(deps): Fix dependency problems and openssl test failure.
Sigh, #51 again.
2017-01-31 18:54:07 +01:00
Lewin Bormann
11e2b5b983 revert(openssl): Revert #51; it introduces a second version of openssl 2017-01-30 19:20:00 +01:00
Martell Malone
fe0a094b45 fix(openssl): Update to 0.9.x
This also updates hyper to 0.10.x because it uses openssl
2017-01-26 10:56:47 +00:00
Lewin Bormann
121eeb1388 chore(docs): Switch from self-hosted to docs.rs documentation
(#49)
2016-11-06 10:05:54 +01:00
Lewin Bormann
cbc7543082 chore(version): Bump to 1.0.1 in order to fix links in Cargo.toml 2016-10-22 16:50:12 +02:00
Sebastian Thiel
3b33164c37 docs(links): link from byron/ to dermesser/
The only link not working just yet is coveralls, which
apparently needs a login by the owner and minor configuration
to work (e.g. webhooks).

Also please note that the Cargo.toml has changed to fix the
documentation link. It would need a re-publish to fix it appears.
2016-10-22 10:58:17 +02:00
Sebastian Thiel
11baf2f712 fix(serde): use serde_derive
serde_macros is no longer maintained and will eventually
fail on nightly.
Also in a hopefully not-so-distant future, we will be able
to use macros 1.1 in stable, and thus get rid of the
complication required for the hybrid approach.
2016-10-09 16:38:52 +02:00
Lewin Bormann
01b933a1c6 chore(version): Bump version to 1.0.0 2016-10-09 09:56:23 +02:00
Lewin Bormann
eb6267a2dd fix(deps): Pin dependencies to specific (major) versions
Amends #24
2016-10-01 15:30:09 +02:00
Lewin Bormann
a4d60e754b fix(deps): Use small base64 crate instead of rustc-serialize 2016-09-28 20:10:53 +02:00
Lewin Bormann
1c1880cfe7 feat(service_account): Implement token source for service accounts
Tested with unit tests and against Google OAuth.
2016-09-20 20:29:19 +02:00
Sebastian Thiel
e1a5fc4924 chore(version-up): v0.6.3 2016-09-11 09:42:04 +02:00
Sebastian Thiel
efaadd5bac chore(Cargo): upgrade serde to latest version
That way, nightly builds will work once again.
2016-09-11 09:40:49 +02:00
Sebastian Thiel
cd2b1d56a9 chore(Cargo): make @dermesser an author officially
Thanks for all your contributions, it's the least I can do
to make it a bit more official.

If you don't like this, please let me know.
2016-09-11 09:39:19 +02:00
Sebastian Thiel
7a907eb318 fix(dependencies): use latest version of serde_codegen
In the way it's meant to be used, which means it uses it's
own version of syntex, to assure it doesn't clash anymore in
unforseen ways.
2016-07-17 11:36:21 +02:00
Sebastian Thiel
2fe535c9d6 chore(version-up): v0.6.1 2016-05-24 15:22:11 +02:00
Sebastian Thiel
a9d0b06925 chore(version-up): v0.6.0
Comes with DiskStorage and new Flow !!!
2016-05-20 15:26:38 +02:00
Sebastian Thiel
31bad1ae53 chore(features): rename with_syntex to with-syntex
This makes the name similar to the one used in quasi, aster, serde
and the likes.
2016-05-20 14:57:09 +02:00
Sebastian Thiel
a3bc7e88b5 chore(serde): upgrade to latest version for stable
Now it builds with stable too, it appears.
2016-05-20 12:15:23 +02:00
Sebastian Thiel
22bb255a55 fix(dependencies): work with latest dependencies on nightly
Stable doesn't quite work yet due to the cargo issue further
described [here][cargo-issue]

[cargo-issue]: https://github.com/rust-lang/cargo/issues/2064
2016-05-20 08:57:06 +02:00
Sebastian Thiel
eafa1b22fe Merge branch 'installed-flow' of https://github.com/dermesser/yup-oauth2 into all-upgrades 2016-05-20 07:55:33 +02:00
Lewin Bormann
4e1d9bd750 fix(dependencies): hyper also broke us
The Url::query_pairs() function returns a different type now.
2016-04-27 19:19:20 +02:00
Lewin Bormann
5c4e318842 fix(dependencies): use url = 0.5; the bump to 1.0 broke us
Fixes #23.
2016-04-25 19:39:11 +02:00
Sebastian Thiel
2aa95c0500 fix(serde): go back to serde 0.6 (#18)
That way, google-apis-rs can compile once again.
If not done, yup-oauth ends up being compiled with
an older serde (the one of google-apis-rs, it seems), even
though its code was generated by a possibly newer serde.

Signed-off-by: Sebastian Thiel <sthiel@thoughtworks.com>
2016-04-10 13:10:40 +02:00
Sebastian Thiel
78d45ad1cb chore(version-up): v0.5.5 2016-02-07 10:18:41 +01:00
Sebastian Thiel
ea56379d85 chore(version-up): v0.5.4 2016-02-07 10:11:06 +01:00
Sebastian Thiel
c18ae07bbb imp(duration): use std::time::Duration everywhere
This gets rid of the time crate, which was necessary only while Duration wasn't stable
in std.
2016-02-07 10:09:36 +01:00
Corey Richardson
e7fd590180 Relicense to dual MIT/Apache-2.0
Closes https://github.com/Byron/yup-oauth2/issues/14
2016-01-10 21:53:51 -05:00
Sebastian Thiel
59bbde3be4 chore(version-up): v0.5.3
Versions were chosen to allow for maximum flexibility
for users of this library, even if this breaks at compile time
thanks to incompatibilities in dependencies.

Rather that, than cargo claiming that it cannot use
a certain version.

Of course, once everything is >= 1.0, one can change to
standard semver compatiblity.
2015-12-24 15:12:24 +01:00
Sebastian Thiel
cbfa909edf chore(version-up): v0.5.2 2015-08-08 11:46:54 +02:00
Sebastian Thiel
a169d9610d chore(serde): update to serde 0.5.0
Serde move all json code into a separate crate, which we are now pulling
in separately.
2015-08-08 10:40:14 +02:00
Sebastian Thiel
624ec51e8f chore(build.rs): moved into src/ dir 2015-06-24 16:34:53 +02:00
Sebastian Thiel
4a7062dd39 chore(versionup): v0.5.0 2015-06-18 19:44:09 +02:00
Sebastian Thiel
9b2f9e77be feat(syntex): basic infrastructure
It doesn't yet work on nightly due to a panic in
https://goo.gl/RyM4GT

Might have something to do with me being on nightly,
and some cargo-related hickoup.
2015-05-26 14:41:31 +02:00
Sebastian Thiel
598f5ed496 chore(cargo):update to latest hyper/yup-hyper-mock
This fixes the macro issues that caused us so much trouble
2015-05-18 10:46:38 +02:00
Sebastian Thiel
94d5b7c2ca chore(cargo): attempt to use latest hyper
For general compatiblity to rest of projects, trying to get rid of
local overrides and thus document the version needed for compiltation
to work.

However, tests fail as macros coming in from yup-hyper-mock are
still the 'old' version for some reason.

[skip ci]
2015-05-12 17:15:28 +02:00
Sebastian Thiel
f05078c1bc chore(versionup): to work with latest rustc 2015-05-11 10:30:48 +02:00
Sebastian Thiel
0a62d04476 fix(versionup): version == 0.4.4
* change log updated using clog
* updated clog config to help setting up new versions
2015-05-08 11:41:26 +02:00
Sebastian Thiel
a395fe892c fix(JsonError): make error field non-optional
* to makes using the structure much easier.
* incremented version

Fixes #6
2015-05-02 09:06:57 +02:00
Sebastian Thiel
b08b239e88 fix(json): assure we understand json errors
We would actually fail to decode an error, and then assume it's a valid
result, unwrapping another failed attempt to decode the json string
returned by the server.

Cause seems to be that the json error structure now conains an
additional field, 'error_uri'.

* we removed a debug printing ... .
* incremented version
2015-05-01 19:39:57 +02:00
Sebastian Thiel
f95bb816f7 fix(TokenStorage): set() returns Result<(), _>
That we, we are conforming to the style postulated by the standard
library, which, if in doubt, should always be preferred.

Fixes #5
2015-04-30 17:08:31 +02:00