81 Commits

Author SHA1 Message Date
Philip Dubé
4b23b5a0c6 6.0.4 2024-04-26 12:18:14 +00:00
Philip Dubé
0fca3a944a base64 0.22, serde_with 3, url 2
url v2 no longer exports percent_encoding, add percent-encoding v2 as explicit dependency

percent-encoding v2 no longer includes predefined encoding sets
2024-04-26 01:23:12 +00:00
Ivan Ukhov
8d47fd5010 Update yup-oauth2 to version 9 2024-04-24 08:09:46 +02:00
Ivan Ukhov
ba52472c9f Update yup-oauth2 in google-apis-common 2024-04-23 09:25:13 +02:00
Sebastian Thiel
b1176493d6 Release google-apis-common v6.0.3 2024-03-11 20:23:52 +01:00
Sebastian Thiel
5c047b7e91 Release google-apis-common v6.0.2 2024-03-11 20:19:00 +01:00
Sebastian Thiel
fa7f7b13fb fix: update chrono dependency version
It now requires a minimal version that introduced `try_seconds()`,
which is now being used instead of `seconds()`.
2024-03-11 20:16:55 +01:00
Sebastian Thiel
b5c33a9dce Release google-apis-common v6.0.2 2024-03-11 10:41:12 +01:00
Sebastian Thiel
7ecead753c prepare changelog prior to release of google-apis-common 2024-03-11 10:39:41 +01:00
Sebastian Thiel
36f78cdebf fix lints by avoiding deprecated methods with latest chrono 2024-03-11 10:13:22 +01:00
Yotam Tanay
a8d7356282 Use Cow for reading base64 strings 2024-02-03 11:15:45 +02:00
Yotam Tanay
f990fd0589 Add failing test case for reading base64 string via reader 2024-02-03 11:10:45 +02:00
Sebastian Thiel
00a3e18145 Merge pull request #465 from andrewbaxter/field-mask-pub-value
Make field mask inner public
2024-01-06 11:16:43 +01:00
andrew
d09893e921 Add docstring 2024-01-06 18:57:31 +09:00
andrew
157b45f606 Add FieldMask new method instead of making internals public 2024-01-06 17:42:03 +09:00
andrew
1ee401408c Make field mask inner public 2024-01-06 13:17:16 +09:00
Sebastian Thiel
5a190c7e20 Release google-apis-common v6.0.1 2024-01-05 18:44:44 +01:00
Sebastian Thiel
3e0829caf7 prepare changelog prior to google-apis-common release. 2024-01-05 18:44:08 +01:00
Eugene Marcotte
ee4ed07af1 Attempt to add 'standard' base64 bytes support
https://github.com/Byron/google-apis-rs/issues/442 flags an issue where
some APIs respond with non-valid base64 bytes values for the "URL safe"
flavor of configuration.

This adds support for a "standard" wrapper adjacent to the URL safe one
with the intention of finding a way to flag which structures should use
which configuration.
2023-09-26 17:56:57 -04:00
Sebastian Thiel
573d5437a3 Release google-apis-common v6.0.0 2023-08-23 08:39:30 +02:00
Sebastian Thiel
0cf81f1df4 update changelog prior to common crate releases 2023-08-23 08:39:06 +02:00
Sebastian Thiel
58189b3149 Bump yup-oauth2 to the latest version, bringing in hyper-rustls v0.24.
We consider this a breaking change  as `cargo-update` updates `yup-oauth2`
but not the explicitly mentioned `hyper-rustls`.
2023-04-19 08:15:36 +02:00
Sebastian Thiel
343b479208 Release google-apis-common v5.0.4 2023-04-19 08:12:00 +02:00
Sebastian Thiel
f5b37c3f71 fix: pin yup-oauth2 to the latest known working version of yup-oauth2.
It comes with hyper-rustls 0.23 which the currently released batch of
google crates requires.
2023-04-19 08:10:14 +02:00
Sebastian Thiel
843f3dcf1f Release google-apis-common v5.0.3 2023-04-19 08:04:54 +02:00
Mihir Samdarshi
d9ce1eaf96 chore: update google-apis-common Cargo.toml 2023-04-18 18:27:51 -07:00
Sebastian Thiel
6e0caa3b22 replace a few unwraps() with ? where possible 2023-02-22 09:21:23 +01:00
Sebastian Thiel
ad51cb96a5 fix clippy 2023-02-22 09:20:25 +01:00
Sebastian Thiel
ce4d51fb99 Release google-apis-common v5.0.2 2022-12-03 16:10:37 +01:00
Sebastian Thiel
a6574486ba fix: remove old time dependency from API.
Chrono currently depends on an old version of time with a reported
vulnerability: https://rustsec.org/advisories/RUSTSEC-2020-0159

While it does not use any vulnerable code, the dependency may show
up in code vulnerability scans, etc.

This removes the "oldtime" feature from chrono, to remove that.
Also removes the "std" feature because it doesn't seem to be in use
in this code.
2022-12-03 16:05:59 +01:00
Gary Coady
80ba514033 Remove old time dependency from API.
Chrono currently depends on an old version of time with a reported
vulnerability: https://rustsec.org/advisories/RUSTSEC-2020-0159

While it does not use any vulnerable code, the dependency may show
up in code vulnerability scans, etc.

This removes the "oldtime" feature from chrono, to remove that.
Also removes the "std" feature because it doesn't seem to be in use
in this code.
2022-12-03 13:46:51 +01:00
Gary Coady
c6039c085d Update yup-oauth2 to 8.0.0. 2022-11-29 19:10:51 +01:00
Sebastian Thiel
ca8ad69d91 Release google-apis-common v5.0.1 2022-10-20 13:29:10 +08:00
philippeitis
4bdd77a52f cargo fmt 2022-10-19 20:42:56 -07:00
philippeitis
9285942f3d impl std::fmt::Display for FieldMask 2022-10-19 20:42:47 -07:00
philippeitis
f4317a2968 cargo clippy --fix google-clis-common 2022-10-19 20:39:45 -07:00
philippeitis
4cca633f92 Apply cargo clippy --fix 2022-10-19 20:31:31 -07:00
philippeitis
63793b55a6 Add FromStr impl for FieldMask
This improves compatibility with the CLI crates
2022-10-19 20:29:39 -07:00
philippeitis
0ad3b1258f Refactor Params into external struct
Reduces file size of generated library:

```
cargo build --release
   Compiling google-compute1 v5.0.1+20220224 (/home/philippe/PycharmProjects/google-apis-rs/gen/compute1)
    Finished release [optimized] target(s) in 35.15s
```
164 MB resulting lib (4MB reduction)
2022-10-19 17:10:24 -07:00
philippeitis
cfa6958aa0 Add UploadProtocol enum to remove string types 2022-10-19 15:13:20 -07:00
philippeitis
f6b195df4f Make MultiPartReader::mime_type associated fn 2022-10-18 16:58:26 -07:00
philippeitis
616b324a77 Update mime 2022-10-18 16:25:08 -07:00
philippeitis
7a114a6d1c Update documentation 2022-10-16 21:57:25 -07:00
philippeitis
4d30072c91 docs: min 1 try + retries in example 2022-10-16 21:29:10 -07:00
philippeitis
a375b710b1 Use Result<Option<_>, _> 2022-10-16 21:26:21 -07:00
philippeitis
1132b542d2 More correct GetToken docs 2022-10-16 17:28:29 -07:00
philippeitis
7ca7f1cafd Make yup-oauth2 optional 2022-10-16 17:19:10 -07:00
philippeitis
50dd53a877 Document auth.rs 2022-10-16 17:04:20 -07:00
philippeitis
32110d6970 Return Option<String> from GetToken::get_token instead of Result<...> 2022-10-16 16:35:34 -07:00
Sebastian Thiel
1855e44a95 Release google-apis-common v5.0.0 2022-10-10 09:24:40 +08:00