Commit Graph

99 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
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
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
7d36eaa409 Adjust links in generated files to point to 'main' branch 2021-04-03 09:55:20 +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
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
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
f7aba5114e everything runs through now, only ordering missing 2021-01-06 17:10:36 +08:00
Sebastian Thiel
043f3752e6 basic python 3 port, nearly works 2021-01-05 23:24:57 +08: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
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
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
Sebastian Thiel
f33fae47e9 Add Rust preprocessor to handle code examples gracefully
Fixes #213
2019-07-05 17:00:56 +08:00
Sebastian Thiel
7a44b3eae1 Unconditionally re-export everything in cmn.rs
Related to #218
2019-07-05 10:17:03 +08:00
gheoan
43b953445e docs(mako): fix typo 2018-12-21 13:00:04 +01:00
Guy Taylor
a793af5586 Make utils.method_params private as it is not used.
This removed it been improted into Mako templates and renames it
_method_params to make it clear.
2018-10-28 11:39:29 +01:00
Sebastian Thiel
0360e61c27 Merge branch 'update_url_to_1_7_1' of https://github.com/edelangh/google-apis-rs into edelangh-update_url_to_1_7_1 2018-10-21 12:08:26 +02:00
edelangh
0403e19476 Update dep url to 1.7.1 2018-10-16 23:52:34 +02:00
Sebastian Thiel
255c7f5ad5 Update to latest versions of API declarations 2018-10-13 13:49:14 +02:00
Bryan Burgers
7a041ecf2d docs(LIB): Add dependencies to README
In the section that describes setting up the Cargo.toml, add the
required dependencies, and note that `hyper` and `hyper-rustls` are not
the latest versions. This helps new users get started quicker and
easier.
2018-10-13 11:47:34 +02:00
Cristi Cobzarenco
f835835100 fix(mbuild): strip leading slashes from urls 2017-08-27 09:57:50 +02:00
Sebastian Thiel
a630af5830 First step towards allowing scopes to be deactivated entirely
This is backwards compatible, but allows `add_scope(None)` as well.
Maybe it's better to just add another function, but on the other hand,
this would already do and solves that somewhat more special case.

Related to #172
2017-06-28 09:15:57 +02:00
Sebastian Thiel
4660d23676 fix(docs): Example now uses hyper_rustls
It's already done by the CLI, but the docs still showed
code that would only work in older hyper versions that still
shipped with HTTPS.

Fixes #169
2017-05-26 10:14:39 +02:00
Sebastian Thiel
dd4bfe3de0 fix(lib): more idiomatic swapping of values 2017-05-22 20:57:24 +02:00
Christian Legnitto
9ffa241f37 feat(hub): Allow overriding rootUrl and baseUrl
Allow the hub to override `rootUrl` and `baseUrl` for the service.
This is useful for pointing at localhost for testing or a proxy.
2017-05-06 17:59:05 -07:00
Sebastian Thiel
0337435cd4 imp(serde): upgrade to v0.9
This provides proc macros, greatly simplifying the build
projects.
2017-02-03 08:23:00 +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
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
73f0e83086 chore(deps): use serde_derive 2016-10-09 15:58:11 +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