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
Sebastian Thiel
a22c18725c
Make ReadSeek require 'Send', related to #294
2021-08-25 07:52:02 +08:00
Remco Bloemen
33e83bb610
Correct multipart line endings
2021-08-04 09:37:06 +08:00
Petter Rasmussen
19088aa178
Fix resumable uploads
...
Only increment the start offset when the response is successful and seek
to the start offset on each iteration.
2021-06-06 15:08:33 +02: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
Dennis Vestergaard Værum
6d56955037
Bug-fix for the upload error: Failed at uploading 'client requires absolute-form URIs'
2021-04-19 14:55:32 +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
3b087bf3e2
Assuure Delegate is Send ( #271 )
2021-04-14 16:30:53 +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
Sergiu Puscas
819e1ccce5
std::iter not needed
2021-04-05 18:44:00 +02:00
Sergiu Puscas
83fed44db0
Run code through cargo fmt.
2021-04-05 18:41:44 +02:00
Sergiu Puscas
6ec46827e7
Fix clippy warnings.
2021-04-05 18:41:17 +02:00
Sergiu Puscas
30ea80bf31
Use hyper::body::to_bytes() instead of aggregate().
...
This should not truncate the content.
2021-04-05 18:27:43 +02:00
Sebastian Thiel
18b80cf37f
refactor
2021-04-03 22:37:27 +08:00
Sebastian Thiel
9df245a80d
cleanup; fix security issue
2021-04-03 10:03:42 +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
69acd16746
Groupsmigration-cli compiles, even though resumable uploads are gone.
2021-04-01 16:52:49 +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