Commit Graph

431 Commits

Author SHA1 Message Date
Sebastian Thiel
d1ebc0ff0b imp(cli): use hyper-rustls instead of openssl
The only openssl dependency left would be coming from yup-oauth2!
2017-02-01 07:07:05 +01:00
Lewin Bormann
fd6815997d chore(deps): Update hyper for generated crates to ^0.10
You guessed it, again related to the openssl upgrade in
dermesser/yup-oauth2#51. As long as the API crates depend on openssl 0.7
via hyper 0.9, any client using the APIs won't build :( For example,
examples/drive_example/ in dermesser/yup-oauth2.

Please regenerate and publish afterwards, if possible.
2017-01-31 19:15:14 +01:00
Greg Dallavalle
8f47126103 Fix typo Requst->Request 2017-01-12 12:33:33 -06:00
Sebastian Thiel
99789de208 fix(doc-index): build better data
Really just what is needed right now to make it work.

[skip ci]
2016-12-24 22:02:29 +01:00
Sebastian Thiel
082e51e16e fix(publish): make cli publishing work
It really needs allow-dirty.
Let's hope that won't publish too much.
2016-12-24 19:27:55 +01:00
Sebastian Thiel
75316f4c84 chore(version): api-cli lock-step; depend on specific version
As they are usually meant to work hand-in-hand anyway.
This simplifies the way this works a lot, and is probably
more correct as well.
2016-12-24 15:42:39 +01:00
Sebastian Thiel
b68b2a6bf5 fix(cli): try to depend on major version of api
Previously that didn't work due to a bug in carg,
but should work now.
2016-12-24 15:35:20 +01:00
Sebastian Thiel
5e28a06dc0 fix(versions): cli + api use a single base version
That way we get rid of the duplication at least.
Probably it would be enough to just refer to version 1 of the
library respectively, and let semver do the rest.
2016-12-24 15:23:09 +01:00
Sebastian Thiel
cc30a2e20b doc(index): don't use relative links
Instead we link to the absolute location.

tech debt: we now use http://byron.github.io/google-apis-rs
multiple times and thus duplicate that information.
2016-12-24 15:16:59 +01:00
Sebastian Thiel
6279fd8f5d doc(index): improve UX
Better help alert when copying an installation script to clipboard.
Better looks.
2016-12-24 14:08:46 +01:00
Sebastian Thiel
09805e59ad doc(index): better install script + blacklist
We now consider the blacklist, which is probably what the previous
implementation achieved as it checked for existence of files on disk.
We do the same, but more directly.

A complete installation script is provided for those who don't yet
have rustup installed.
2016-12-24 13:56:31 +01:00
Sebastian Thiel
fad9d3b0ca doc(index): link to doc.rs for APIs
We also link more specifically to crates.io.

Some debt was taken on as the build_version is special and
duplicated right now.
2016-12-24 13:44:06 +01:00
Sebastian Thiel
fdc0141fbc doc(index): button to copy install-script 2016-12-24 11:48:08 +01:00
Sebastian Thiel
d6accb8f61 doc(index): remove all download links
Instead refer to cargo install for installation.

[skip ci]
2016-12-24 10:49:37 +01:00
Sebastian Thiel
e646898137 feat(binaries): remove download information 2016-12-24 10:40:50 +01:00
Sebastian Thiel
fc34337ee4 doc(lib): use docs.rs for library documentation
We will still need to host the CLI docs though.
2016-12-24 10:35:48 +01:00
Sebastian Thiel
f3d0ef45d2 fix(license): correct link to license on github
[skip ci]
2016-12-17 17:07:56 +01:00
Sebastian Thiel
e04b6d023d chore(cleanup): remove .DS_Store files 2016-12-16 11:07:10 +01:00
Christopher Brickley
0ba9535a11 fix(discovery): handle discovery urls with $
Some google discovery URLs contain `$discovery` or other variants,
causing the calls to wget to interpret `$d` as an environment variable
instead of a literal. An example is:
`https://logging.googleapis.com/$discovery/rest?version=v2`.

To fix this, the `$` has been escaped so that wget fetches the URL as
expected.
2016-12-15 11:44:34 -05:00
Sebastian Thiel
73f0e83086 chore(deps): use serde_derive 2016-10-09 15:58:11 +02:00
Sebastian Thiel
bc582e5761 chore(deps): use yup-oauth2 1.0
Celebrations !
2016-10-09 15:40:52 +02:00
Sebastian Thiel
8f59b9ba79 chore(dependencies): use latest of yup-oauth2
Seems to work just fine.
2016-09-26 06:54:48 +02:00
Sebastian Thiel
b21d96177d Merge pull request #155 from dermesser/parse-empty-correctly
fix(api types): Add an unused field to empty API types.
2016-09-25 19:36:48 +02:00
Lewin Bormann
0f14aa966e fix(api types): Add an unused field to empty API types.
Null structs (struct Foo;) cause the following error when trying to
deserialize an empty JSON object `{}` into them:

`JsonDecodeError("{}\n", Syntax(InvalidType(Map), 1, 1))` (also known as
`invalid type: map at line 1 column 1: {}`). The optional struct member
prevents this error.
2016-09-21 21:52:44 +02:00
Lewin Bormann
292dd2f34f fix(template): URL-encoding '/' in URLs is not accepted by Google APIs. 2016-09-21 09:49:01 +02:00
Sebastian Thiel
91a657b8cf feat(cli): can now be published
This works as the API version is now explicitly specified,
allowing cargo-publish to work as usual.
2016-09-11 13:58:32 +02:00
Sebastian Thiel
d2495405c5 chore(Cargo): specify version to allow cli publishing
Let's see if we can actually get away with a '*' ... .
2016-09-11 12:08:57 +02:00
Sebastian Thiel
33771a6dc7 chore(Cargo): version-update
Use latest serde to make nightly builds work.
2016-09-11 09:52:19 +02:00
Sebastian Thiel
b6f5fc6eb3 fix(auth): use redirect flow
The interactive flow requires to paste a code back into the
command-line, which does only work when it's cat'ed, but not
if it is pasted.

This should let it handle everything internally, which is
way more user-friendly.
2016-07-17 19:31:13 +02:00
Sebastian Thiel
e7721ce53b chore(cleanup): remove workaround marker
... and some left-over comments.

The workaround code is actually more readable than the previous version,
so it may as well stay.

Fixes #109
2016-07-17 13:56:25 +02:00
Sebastian Thiel
3921b6a5a0 fix(dependencies): use working version of serde-codegen
This update fixes the build on stable, and allows builds
on nightly as usual.

The trick is to use the latest version of serde-codegen,
which keeps the syntex version internal, preventing clashes
between libraries that might have different requirements.
2016-07-17 12:05:14 +02:00
Sebastian Thiel
bed46ba241 fix(test): work with latest serde
`cargo test` will work now.
We now use the latest serde once again, which should
make everything better.
2016-05-20 18:40:26 +02:00
Sebastian Thiel
d37bb19df2 feat(authentication): Use flow for installed apps
That way, more complex APIs like drive and calendars
will work without any (sometimes non-existing) workarounds.
2016-05-20 18:26:48 +02:00
Sebastian Thiel
3e2216c445 chore(serde-up): use features for cli-dependency
That way, we respect the API features when pulling it in
via the CLI. Also make it compatible to the latest serde-json
version.
2016-05-20 16:40:44 +02:00
Sebastian Thiel
320d769c6f chore(nightly): Travis CI support
Travis should now be able to use nightly as well.
2016-05-20 15:53:49 +02:00
Sebastian Thiel
8d7a49891f chore(dependencies): update to latest version + nightly support
Nightly is now supported, in theory, to allow not to use serde_codegen,
which currently has trouble to build thanks to an assertion error.

Nightly on the other hand suffers from being build with incorrect
feature-flags, which makes quasi_macros fail to build ... .
2016-05-20 15:06:19 +02:00
Sebastian Thiel
d2c12c2964 chore(oauth): use compatible yup-oauth
It seems all these serde versions interact with each other
in unforseen ways, so they will have to be in sync for it
to work. Its a shaky card-house I am building here,
and I don't like it at all.
2016-04-10 13:41:44 +02:00
Sebastian Thiel
065cfdd22f fix(lib): use hyper Bearer header style
Considering we kind-of hardcoded this authentication type anyway,
we now use the Auth-types provided by hyper 0.8.

The incentive here was the compiler telling us that there the
yup-oauth::Scheme type doesn't implement the hyper::authorization::Scheme
anymore, even though that clearly was the case. Also it couldn't be
reproduced in yup-oauth itself.

This will need some work to get correct again, so this is just a crude
patch to make it work again.
2016-04-10 13:01:18 +02:00
Sebastian Thiel
9e8a047ebf fix(cli): compatibility with serde 0.6
0.7 has a weird assertion error that might have happened
if files get too large.
2016-04-10 12:59:59 +02:00
Sebastian Thiel
33f281360a fix(cargo): choose serde-version which works
Everything newer than the ones we see here will cause
the error described in #148.
2016-04-10 12:12:00 +02:00
Sebastian Thiel
4bb7a33e93 fix(make): use venv-python to run any utility
Previously the yaml version generation could fail if your system-python
didn't have yaml installed. Now the virtual env is used, which is
guaranteed to support yaml.
2016-02-28 08:08:35 +01:00
Sebastian Thiel
be0faf0e1d chore(serde): upgrade to 0.7
Desired feature: ignore unknown fields, which is now on by default.
2016-02-27 12:30:09 +01:00
Curtis McEnroe
3e1c4428ef Send repeated properties as repeated query parameters 2016-02-07 14:30:29 -05:00
Sebastian Thiel
a2c6b58d5b fix(versionup): use latest oauth2 lib
It enables using std::time::Duration natively
2016-01-30 14:03:15 +01:00
Sebastian Thiel
ef9e7f1bae fix(mako): use new discoveryRestUrl field for json download 2016-01-30 13:01:37 +01:00
Sebastian Thiel
ab1aa55d39 feat(version-up): clap-rs v1.5 -> 2.0 2016-01-30 12:53:02 +01:00
Sebastian Thiel
b54acb7c96 fix(rustup): use std::Thread::sleep
However, in sibling libraries, we still use time::Duration, which
now is a part of std::time::Duration.
These should be adjusted, to make the usage of
sleep(Duration::from_millis(d.num_milliseconds() as u64)) into sleep(d)
2016-01-29 18:56:58 +01:00
Sebastian Thiel
8295bf3c2d chore(rustup): no wildcards in dependencies
Also version specifications in dependencies were chosen to provide
maximum flexibility for users of the libraries.

CLIs on the other hand specify last known-to-work major and minor versions
to prevent breakage
2015-12-24 15:43:39 +01:00
Curtis McEnroe
61e74d99a2 Fix impl of hyper::net::NetworkStream 2015-11-29 17:55:35 -05:00
Curtis McEnroe
dbc6402f48 Depend on hyper 0.7.0 2015-11-29 17:30:40 -05:00