Commit Graph

94 Commits

Author SHA1 Message Date
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
850ddbf5ba fix(rustup): add now mandatory lifetimes
fixes #13
2015-12-23 18:34:29 +01:00
Sebastian Thiel
6079feb513 fix(travis): attempt to turn off nightly feature 2015-08-08 17:37:14 +02:00
Sebastian Thiel
ea567c53fd fix(travis): there is no var-inheritance
It somewhat makes sense that added items to the build-matrix don't
inherit standard matrix configuration.
2015-08-08 17:23:08 +02:00
Sebastian Thiel
8b9f42549e fix(travis): reduce build matrix 2015-08-08 17:17:05 +02:00
Sebastian Thiel
b5b6c0d1ca fix(travis): base-matrix should work as well now 2015-08-08 17:15:41 +02:00
Sebastian Thiel
49e74850b3 fix(travis): include -> matrix.include 2015-08-08 17:06:30 +02:00
Sebastian Thiel
cfbfa6feb3 fix(travis): need to rename nightly feature too 2015-08-08 17:01:57 +02:00
Sebastian Thiel
d1a5ee2e96 fix(travis): one more time ... 2015-08-08 16:55:16 +02:00
Sebastian Thiel
dd1d2e6930 fix(travis): now cargo args should works 2015-08-08 16:52:26 +02:00
Sebastian Thiel
133839cde8 fix(travis): make cargo-args work 2015-08-08 14:45:48 +02:00
Sebastian Thiel
2c7ef29eea fix(travis): it's --featureS, not --feature 2015-08-08 14:38:38 +02:00
Sebastian Thiel
96dfc185d0 fix(travis): (hopefully) work on nightly
As travis-cargo doesn't disable default features, we have to do things
a little more manually. Using a build matrix, we should be able to
control the features precisely.

While at it, we assure docs are only uploaded for the stable version,
not for the nighly one.
2015-08-08 14:37:18 +02:00
Sebastian Thiel
cbfa909edf chore(version-up): v0.5.2 2015-08-08 11:46:54 +02:00
Sebastian Thiel
ad0bde3092 fix(tests): assure tests actually work
Previously we simply forgot to run the tests, and published test-code
that didn't really work.
2015-08-08 11:45:53 +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
267b2ef770 chore(travis): try different style to define evar
As taken from here:
http://docs.travis-ci.com/user/environment-variables/
2015-06-24 17:29:59 +02:00
Sebastian Thiel
084bf1cfa4 chore(travis): allow to build on nightly as well
Nightly supports additional features, which are now properly named.
The reason for it to fail recently was the default feature name
`unstable`, which is `nightly` in our case.
2015-06-24 16:36:26 +02:00
Sebastian Thiel
624ec51e8f chore(build.rs): moved into src/ dir 2015-06-24 16:34:53 +02:00
Sebastian Thiel
8473bce3e8 Merge branch 'next' 2015-06-18 19:44:21 +02:00
Sebastian Thiel
4a7062dd39 chore(versionup): v0.5.0 2015-06-18 19:44:09 +02:00
Sebastian Thiel
2a0805c2bb chore(travis): no nightly
To make nightly tests work, one will have to do some additional
scripting to call it with the correct features (see makefile).

For now, building it on stable is just fine I think.
2015-06-18 19:36:23 +02:00
Sebastian Thiel
8fc602ee51 Merge branch 'syntex' into next 2015-06-18 18:11:48 +02:00
Sebastian Thiel
773636cc5f chore(travis): test stable compiler as well 2015-06-18 18:03:41 +02:00
Sebastian Thiel
6a5915d7d6 fix(lib): remove macro usage to work on stable
As usage of the `!include` macro is enforced, there is currently no way
to use the exported macros from `yup_hyper_mock`. Now some more
boilerplate code was added to make it work anyway.
2015-06-18 17:58:22 +02:00
Sebastian Thiel
f59d97d4c5 refactor(lib): remove empty macros
Even though these made `cargo build` work, I think what's really needed
in the long run is to make it work for `cargo test` as well.
2015-06-11 11:49:38 +02:00
Sebastian Thiel
a260b13868 fix(lib): setup nightly crate meta data correctly
* Previously the meta-data was applied to the crate, which doesn't seem
  to work.
* attempted to make `examples/auth.rs` work on stable. This isn't
  properly tested now, as tests don't compile.

We are now at a state were stable as well as nightly work similarly,
but fail because `include!` doesn't behave correctly if macros are
involved. Namely it happens before crates are linked, yet it will
try to expand macros right away, which is a problem.

If the macro is defined in an empty fashion, it will actually be used
at include time, and expanded. Which causes issues further down the
compilation.

With the current 'fix' we manage to at least make everything but
`cargo test` work.

Related to #12
2015-06-11 11:29:10 +02:00
Sebastian Thiel
37231fad2e chore(make): added makefile
* It should help to keep track of how to properly call cargo in nightly
  mode. After all, I have wasted some time, multiple times just trying
  to figure out that I forgot to add the nightly feature.
* Slightly improved structure of lib.rs and includes

Related to #12
2015-06-11 10:57:57 +02:00
Sebastian Thiel
0901497d89 fix(syntex): cleanup, build works on stable
It seems it doesn't like one line in particular (helper.rs:450),
which causes syntex to crash. Commenting it out does the trick.
2015-05-26 17:46:47 +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
265346e2bb chore(travis): set compiler to nightly 2015-05-12 17:44:20 +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
bcdaac84e2 Merge pull request #9 from worr/bug/rvalue-lifetime-build-failures
MERGE: fix(rustup) workaround rust bug
2015-05-11 06:07:50 +02:00
William Orr
47b68cf401 fix(rustup): workaround rustlang bug
Due to https://github.com/rust-lang/rust/issues/22252, r-value
temporaries outlive the lifetimes of variables bound with let
statements in a function body. Because of this, device.rs fails to
compile against newer rustc nightlies.

This implements a simple workaround that binds the result of the match
in `request_code` to a local variable before returning it. This allows
it to have the same lifetime as `req` in one of the previous let
bindings.
2015-05-10 18:15:21 -07: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
7383f5efb6 fix(hyper): update to hyper v0.4.0
* `hyper::HttpError` is now the more versatile `hyper::Error`
2015-05-08 11:39:45 +02:00
Sebastian Thiel
e519cf0379 chore(travis): switch to travis-cargo 2015-05-06 19:41:45 +02:00
Sebastian Thiel
36e8744c16 chore(contributing): added information about impp 2015-05-05 08:58:23 +02:00
Sebastian Thiel
9cafc3720e refactor(url): simplify form_urlencode call
It's a great simplification and also uses less (if not zero) overhead,
finally.
Requires url v0.2.33
2015-05-05 08:57:13 +02:00
Sebastian Thiel
33e5849d0b chore(clog): add 'imp' mapping
That way, the 'imp' will map to 'improvements' within the changelog.
Requires clog v0.5.0 to work.
2015-05-05 08:55:49 +02:00
Sebastian Thiel
dd711b6e80 feat(testing): use travis-cargo
* adds support for coveralls and doc generation as well

Related to #8
2015-05-04 14:26:10 +02:00
Sebastian Thiel
4141c39bd6 chore(clog): add clog config and changelog
That way, making good commit-first-lines is incentivised more,
reading the changelog helps to get a better feel for everything
as well.

[skip ci]
2015-05-02 15:20:13 +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
df5fdc48a7 chore(lint): Added sublime-rustc linter config
Just practical !
[skip ci]
2015-05-01 15:41:18 +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
Sebastian Thiel
e05e5553e3 feat(serde): use serde instead of rustc_serialize
That way, we can pretty-print the respective application secret
strucures. This is primiarily of interest for the main client of this
library, namely Google APIs RS.

Version incremented.

Fixes #2
2015-04-30 14:18:44 +02:00
Sebastian Thiel
3ca51ccfe2 fix(rustup): 1.1.0-nightly (97d4e76c2 2015-04-27)
Also incremented version
2015-04-29 09:53:27 +02:00