Commit Graph

19 Commits

Author SHA1 Message Date
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
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
616b324a77 Update mime 2022-10-18 16:25:08 -07:00
philippeitis
7ca7f1cafd Make yup-oauth2 optional 2022-10-16 17:19:10 -07:00
Sebastian Thiel
3625188eb5 feat: apis-common for the 5.0 line of google crates.
It aids with better type decoding support.
2022-10-10 09:23:53 +08:00
philippeitis
f6cced9605 Support serde for arbitrary field types
This introduces the `serde_with` dependency and `rust_type.py`, to allow supporting arbitrary types for serialization.
Since fields may have arbitrary types (eg. `HashMap<_, chrono::Duration>`) which need deserialization, it is necessary to
use type-based serialization to avoid implementing (de)serialization for every permutation of types that require special serialization.
However, `serde` does not let you (de)serialize one type as another (eg. `chrono::Duration` as `Wrapper`) - thus necessitating `serde_with`, which does. `rust_type.py` introduces the `RustType` class, which makes it easy to describe the (de)serialization type used by `serde_with`
2022-10-08 23:01:30 -07:00
philippeitis
5398dc6f79 refactor serde functionality into separate module 2022-10-08 00:51:59 -07:00
philippeitis
29aa8df15b Use appropriate types for date-time, duration, bytes 2022-10-07 13:36:03 -07:00
philippeitis
66c535e4d6 Add support for duration and base64 serde 2022-10-07 02:14:26 -07:00
Sebastian Thiel
93c8601fdc Release google-apis-common v4.0.1 2022-10-02 09:18:16 +08:00
Sebastian Thiel
a1e6496ccd run only tests that are actually used/implemented 2022-09-29 09:02:05 +08:00
philippeitis
9142859612 Move client.rs to common dependency 2022-09-27 21:48:31 -07:00
Sebastian Thiel
ecb10a2ff5 prepare changelog 2022-09-25 19:56:29 +08:00
Sebastian Thiel
716c4c263a prepare google-apis-common for release 2022-09-25 19:46:17 +08:00
Sebastian Thiel
8d7309b78c rename google-api-client to google-apis-common 2022-09-25 19:43:56 +08:00