Commit Graph

484 Commits

Author SHA1 Message Date
Sebastian Thiel
74621c9c37 Explicitly specify Send requirement where dyn traits are used (#296) 2021-08-26 09:05:39 +08:00
Sebastian Thiel
834ad1b6ec Use cargo smart-release for publishing
Because, why not, should work, and create nice tags for us too.
2021-08-25 08:02:23 +08:00
Sebastian Thiel
32a6d876a6 Make API top level structure implement Clone, related to #295 2021-08-25 07:56:28 +08:00
Dennis Vestergaard Værum
97f3a9499d removing unused code, seems to be some left-over from upgrading the hyper dependency 2021-04-21 15:31:35 +02:00
Sebastian Thiel
823b1a270a Remove reference to 'intentionally using an old version of hyper' (#173) 2021-04-16 15:53:22 +08:00
Sebastian Thiel
65f9c22094 Fix CLI generator 2021-04-14 10:04:49 +08:00
Sebastian Thiel
9c339da955 Simplify type system to leverage 'Sync' types
These are generally available now that we use hyper's async
APIs along with the most recent yup-hypermock.
2021-04-14 09:52:27 +08:00
Sebastian Thiel
fe6ccfed3f Remove RefCell around autenticator - they are sync now 2021-04-14 09:38:07 +08:00
Sebastian Thiel
9e0133c1b4 Don't re-borrow a refcell while it is still in use (#269)
Despite multiple attempts on reusing the RefMut we get from the first
borrow as stored in `authenticator`, using it in the needed spot
seemed impossible despite the compiler trying to make suggestions.

Dropping `authenticator` and reborrowing is done for that reason,
fair enough.
2021-04-12 10:06:50 +08:00
Sebastian Thiel
18b80cf37f refactor 2021-04-03 22:37:27 +08:00
Sebastian Thiel
7d36eaa409 Adjust links in generated files to point to 'main' branch 2021-04-03 09:55:20 +08:00
Sebastian Thiel
5bac5d1af5 regen with patch #265, but without version bump
Let's try to avoid spamming crates.io and instead keep publishing
everything as is. The patch will be present in some of the more
recent crates, and for specific crates like youtube3 and drive3
I will create specific patch releases.
2021-04-02 20:39:58 +08:00
Dennis Vestergaard Værum
1f776ddc54 Bug fix: It was not possible to use FileGetCall to download binary files 2021-04-02 07:53:48 +02:00
Sebastian Thiel
2bfeeb99f9 fix GHP-import in makefile 2021-04-02 00:23:31 +08:00
Sebastian Thiel
9fe80b24eb port API updates to python3 2021-04-01 23:02:30 +08:00
Sebastian Thiel
67c5495c64 Use ghp-import of virtual environment 2021-04-01 22:26:08 +08:00
Sebastian Thiel
11fae8353b Fix docs, OMG, finding this was *hard*
Lesson learned: Don't be to much in a rush or you will miss
what's rigth in front of your nose
2021-04-01 22:07:59 +08:00
Sebastian Thiel
c4d4013358 Fix doc tests 2021-04-01 18:31:35 +08:00
Sebastian Thiel
e363097e43 Fix issue with handling downloads the brutal way…
…as this will copy buffers multiple times, it's quite inefficient
and should probably be fixed for serious use.
2021-04-01 18:10:46 +08:00
Sebastian Thiel
06550d3a55 disable resumable downloads for CLIs
They cause issues now that we can't represent them anymore via
the call-type protocol enumeration. Something went wrong there
and it's not worth fixing it on CLI side (probably nobody uses them)
even though they *were* good for debugging one previously.
2021-04-01 17:49:11 +08:00
Sebastian Thiel
1569ff47b7 Just one more issue with groupsmigration - unexhaustive match 2021-04-01 16:49:10 +08:00
Sebastian Thiel
1a9d155449 refactor 2021-04-01 16:43:23 +08:00
Sebastian Thiel
0bf46b95f3 Remove support for debug logging of CLI programs
The needed feature was removed from yup-hyper-mock, and if needed
it can certainly be re-implemented.
2021-04-01 16:38:36 +08:00
Sebastian Thiel
84655f81db Youtube 3 compiles; remove 'api_key()' authenticator call…
…because in v3 of yup-oauth2, nobody seems to implement it with
anything else but `None`.
That's probably fair and we can revisit this once we upgrade
to a 5.1 or newer.
See 0710d310f8
2021-04-01 10:11:52 +08:00
Sebastian Thiel
891f126a56 Groupsmigration compiles 2021-04-01 09:58:13 +08:00
Sebastian Thiel
3dbb53e924 Make mime 0.2 work with more recent hyper
In 0.2 there is only `Display` available, so we have to be wasteful
by allocating a new string.

However, this is less work than switching to 0.3 which supports
`AsRef`, which is left for another day.
2021-04-01 09:00:54 +08:00
Daniel Rodgers-Pryor
0236e24291 Fixes for CLI code
This doesn't work completely yet because yup_hyper_mock is pulling in old crates: it needs to be updated or removed, but I'm not sure that I have enough context to do it.
2021-02-05 20:15:56 +11:00
Daniel Rodgers-Pryor
b8a66bc666 Update hyper, rustls and yup-oauth2
I've switched to a new M1 laptop which couldn't build the old dependencies because the old ring library version doesn't compile on mac arm (but new version do). There's no way to update ring in isolation, so I've got to update the whole tree at once.
2021-02-04 23:49:07 +11:00
Sebastian Thiel
b88e1633ed Fix rust compile warnings 2021-01-06 22:45:28 +08:00
Sebastian Thiel
60e50da476 Merge branch 'master' into namespaced-items 2021-01-06 21:54:15 +08:00
Sebastian Thiel
3a4151b38c fix sorting of properties by name 2021-01-06 18:24:45 +08:00
Sebastian Thiel
f7aba5114e everything runs through now, only ordering missing 2021-01-06 17:10:36 +08:00
Sebastian Thiel
80dadc5a80 nearly there… 2021-01-05 23:39:04 +08:00
Sebastian Thiel
043f3752e6 basic python 3 port, nearly works 2021-01-05 23:24:57 +08:00
Sebastian Thiel
301f140c83 Basic fixups for python3 2021-01-05 23:02:51 +08:00
Petros Angelatos
9ff51f9417 fix cli imports 2020-12-19 20:15:59 +01:00
Petros Angelatos
87c9c10ce1 remove unused import that was causing a clash
Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
2020-12-19 19:42:38 +01:00
Petros Angelatos
684d54d445 handle cases where part is a repeated property
Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
2020-12-19 10:01:58 +01:00
Petros Angelatos
af73936b95 rename cmn to client
Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
2020-12-19 00:46:06 +01:00
Petros Angelatos
0e69ffc9eb cleanup top-level namespace and organize items under cmn and api
the top level module re-exports a few very common items like the hub
struct of the particular API and Result, Error, and Delegate.

Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
2020-12-19 00:44:20 +01:00
Petros Angelatos
b5923b277c use direct references to types to generate documentation
Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
2020-12-19 00:44:20 +01:00
Petros Angelatos
38b1ed145c use fully qualified names to access items from cmn
Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
2020-12-19 00:44:15 +01:00
Sebastian Thiel
c949124df5 Bump patch level to prep for release 2020-07-10 09:13:01 +08:00
Joel Lathrop
6ad88cb773 Fix '-force' target generation for JSON schemata.
In some environments, a variable-existence test in a template was
yielding a false negative which resulted in the template not generating
'-force' targets for API JSON files, even when the `FETCH_APIS`
environment variable was set during template rendering.

This commit adjusts the way the test for the variable presence is done
such that the '-force' targets now render when they should.
2020-07-09 09:09:51 +08:00
Sebastian Thiel
5e5327f3f7 Use api overrides to specialize building of drive2/3 APIs
This seems preferable over hardcoding special knowledge into the
generator code.
2020-06-05 11:11:17 +08:00
Sebastian Thiel
e06c7c67e0 Avoid talking to google each time dependencies are built…
…which doesn't work very well in certain geographical locations.
This can be triggered using by setting FETCH_API to a value, like

`FETCH_APIS=1 make`
2020-06-05 11:00:24 +08:00
Dennis Vestergaard Værum
041f8951e3 Added the doit_without_upload function to the code generator 2020-06-03 00:33:21 +02:00
Björn Weinehall
6ed8df5f96 Extend attempted error message parsing to also cover ErrorResponse
objects. Fixes errors in e.g. drive3 api not getting passed to delegate
error handlers.
2020-05-29 19:43:50 +08:00
Sebastian Thiel
8e9ce08aa2 Fix typo: enocodable -> encodable
Fixes #250
2020-04-14 08:51:19 +08:00
Sebastian Thiel
65b8f0063d Rewrite deprecated features, such as try!
As taken from
https://github.com/Byron/google-apis-rs/pull/247
2020-01-18 14:46:53 +08:00