Skip to content

Commit

Permalink
Handle cache miss (#94)
Browse files Browse the repository at this point in the history
* Handle cache failure without panic

* Rework

* Update deps and version up
  • Loading branch information
augustuswm authored Dec 9, 2024
1 parent 720c61b commit 011d903
Show file tree
Hide file tree
Showing 66 changed files with 1,070 additions and 875 deletions.
1,589 changes: 892 additions & 697 deletions Cargo.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
SHELL := bash

VERSION = 0.8.0-rc.1
VERSION = 0.8.0-rc.2

DOCUSIGN_SPEC_DIR = $(CURDIR)/specs/docusign
DOCUSIGN_SPEC = $(DOCUSIGN_SPEC_DIR)/docusign.yaml
Expand Down
12 changes: 6 additions & 6 deletions docusign/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "docusign"
description = "A fully generated & opinionated API client for the DocuSign API."
version = "0.8.0-rc.1"
version = "0.8.0-rc.2"
documentation = "https://docs.rs/docusign/"
repository = "https://github.com/oxidecomputer/third-party-api-clients/tree/main/docusign"
readme = "README.md"
Expand All @@ -17,7 +17,7 @@ rustls-tls = ["reqwest/rustls-tls", "ring", "pem"]

[dependencies]
async-recursion = "^1.0"
chrono = { version = "0.4.38", default-features = false, features = ["serde"] }
chrono = { version = "0.4.38", default-features = false, features = ["alloc", "serde"] }
dirs = { version = "^3.0.2", optional = true }
http = "1"
jsonwebtoken = "8"
Expand All @@ -28,10 +28,10 @@ parse_link_header = "0.3.3"
pem = { version = "1.1.0", default-features = false, optional = true }
percent-encoding = "2.2"
reqwest = { version = "0.12", default-features = false, features = ["json", "multipart"] }
reqwest-conditional-middleware = "0.3"
reqwest-middleware = { version = "0.3", features = ["multipart"] }
reqwest-retry = "0.5"
reqwest-tracing = "0.5"
reqwest-conditional-middleware = "0.4"
reqwest-middleware = { version = "0.4", features = ["multipart"] }
reqwest-retry = "0.7"
reqwest-tracing = "0.5.4"
ring = { version = "0.16", default-features = false, optional = true }
schemars = { version = "0.8", features = ["bytes", "chrono", "url", "uuid1"] }
serde = { version = "1", features = ["derive"] }
Expand Down
2 changes: 1 addition & 1 deletion docusign/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ To install the library, add the following to your `Cargo.toml` file.

```toml
[dependencies]
docusign = "0.8.0-rc.1"
docusign = "0.8.0-rc.2"
```

## Basic example
Expand Down
2 changes: 1 addition & 1 deletion docusign/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
//!
//! ```toml
//! [dependencies]
//! docusign = "0.8.0-rc.1"
//! docusign = "0.8.0-rc.2"
//! ```
//!
//! ## Basic example
Expand Down
10 changes: 5 additions & 5 deletions generator/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3369,7 +3369,7 @@ rustls-tls = ["reqwest/rustls-tls", "ring", "pem"]
[dependencies]
async-recursion = "^1.0"
chrono = {{ version = "0.4.38", default-features = false, features = ["serde"] }}
chrono = {{ version = "0.4.38", default-features = false, features = ["alloc", "serde"] }}
dirs = {{ version = "^3.0.2", optional = true }}
http = "1"
jsonwebtoken = "8"
Expand All @@ -3380,10 +3380,10 @@ parse_link_header = "0.3.3"
pem = {{ version = "1.1.0", default-features = false, optional = true }}
percent-encoding = "2.2"
reqwest = {{ version = "0.12", default-features = false, features = ["json", "multipart"] }}
reqwest-conditional-middleware = "0.3"
reqwest-middleware = {{ version = "0.3", features = ["multipart"] }}
reqwest-retry = "0.5"
reqwest-tracing = "0.5"
reqwest-conditional-middleware = "0.4"
reqwest-middleware = {{ version = "0.4", features = ["multipart"] }}
reqwest-retry = "0.7"
reqwest-tracing = "0.5.4"
ring = {{ version = "0.16", default-features = false, optional = true }}
schemars = {{ version = "0.8", features = ["bytes", "chrono", "url", "uuid1"] }}
serde = {{ version = "1", features = ["derive"] }}
Expand Down
12 changes: 6 additions & 6 deletions giphy/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "giphy-api"
description = "A fully generated & opinionated API client for the Giphy API."
version = "0.8.0-rc.1"
version = "0.8.0-rc.2"
documentation = "https://docs.rs/giphy-api/"
repository = "https://github.com/oxidecomputer/third-party-api-clients/tree/main/giphy"
readme = "README.md"
Expand All @@ -17,7 +17,7 @@ rustls-tls = ["reqwest/rustls-tls", "ring", "pem"]

[dependencies]
async-recursion = "^1.0"
chrono = { version = "0.4.38", default-features = false, features = ["serde"] }
chrono = { version = "0.4.38", default-features = false, features = ["alloc", "serde"] }
dirs = { version = "^3.0.2", optional = true }
http = "1"
jsonwebtoken = "8"
Expand All @@ -28,10 +28,10 @@ parse_link_header = "0.3.3"
pem = { version = "1.1.0", default-features = false, optional = true }
percent-encoding = "2.2"
reqwest = { version = "0.12", default-features = false, features = ["json", "multipart"] }
reqwest-conditional-middleware = "0.3"
reqwest-middleware = { version = "0.3", features = ["multipart"] }
reqwest-retry = "0.5"
reqwest-tracing = "0.5"
reqwest-conditional-middleware = "0.4"
reqwest-middleware = { version = "0.4", features = ["multipart"] }
reqwest-retry = "0.7"
reqwest-tracing = "0.5.4"
ring = { version = "0.16", default-features = false, optional = true }
schemars = { version = "0.8", features = ["bytes", "chrono", "url", "uuid1"] }
serde = { version = "1", features = ["derive"] }
Expand Down
2 changes: 1 addition & 1 deletion giphy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ To install the library, add the following to your `Cargo.toml` file.

```toml
[dependencies]
giphy-api = "0.8.0-rc.1"
giphy-api = "0.8.0-rc.2"
```

## Basic example
Expand Down
2 changes: 1 addition & 1 deletion giphy/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
//!
//! ```toml
//! [dependencies]
//! giphy-api = "0.8.0-rc.1"
//! giphy-api = "0.8.0-rc.2"
//! ```
//!
//! ## Basic example
Expand Down
12 changes: 6 additions & 6 deletions github/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "octorust"
description = "A fully generated & opinionated API client for the GitHub API."
version = "0.8.0-rc.1"
version = "0.8.0-rc.2"
documentation = "https://docs.rs/octorust/"
repository = "https://github.com/oxidecomputer/third-party-api-clients/tree/main/github"
readme = "README.md"
Expand All @@ -17,7 +17,7 @@ rustls-tls = ["reqwest/rustls-tls", "ring", "pem"]

[dependencies]
async-recursion = "^1.0"
chrono = { version = "0.4.38", default-features = false, features = ["serde"] }
chrono = { version = "0.4.38", default-features = false, features = ["alloc", "serde"] }
dirs = { version = "^3.0.2", optional = true }
http = "1"
jsonwebtoken = "8"
Expand All @@ -28,10 +28,10 @@ parse_link_header = "0.3.3"
pem = { version = "1.1.0", default-features = false, optional = true }
percent-encoding = "2.2"
reqwest = { version = "0.12", default-features = false, features = ["json", "multipart"] }
reqwest-conditional-middleware = "0.3"
reqwest-middleware = { version = "0.3", features = ["multipart"] }
reqwest-retry = "0.5"
reqwest-tracing = "0.5"
reqwest-conditional-middleware = "0.4"
reqwest-middleware = { version = "0.4", features = ["multipart"] }
reqwest-retry = "0.7"
reqwest-tracing = "0.5.4"
ring = { version = "0.16", default-features = false, optional = true }
schemars = { version = "0.8", features = ["bytes", "chrono", "url", "uuid1"] }
serde = { version = "1", features = ["derive"] }
Expand Down
6 changes: 3 additions & 3 deletions github/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ To install the library, add the following to your `Cargo.toml` file.

```toml
[dependencies]
octorust = "0.8.0-rc.1"
octorust = "0.8.0-rc.2"
```

## Basic example
Expand All @@ -58,7 +58,7 @@ let github = Client::new(
```

If you are a GitHub enterprise customer, you will want to create a client with the
[Client#host_override](https://docs.rs/octorust/0.8.0-rc.1/octorust/struct.Client.html#method.host_override) method.
[Client#host_override](https://docs.rs/octorust/0.8.0-rc.2/octorust/struct.Client.html#method.host_override) method.

## Feature flags

Expand All @@ -72,7 +72,7 @@ To enable this, add the following to your `Cargo.toml` file:

```toml
[dependencies]
octorust = { version = "0.8.0-rc.1", features = ["httpcache"] }
octorust = { version = "0.8.0-rc.2", features = ["httpcache"] }
```

Then use the `Client::custom` constructor to provide a cache implementation.
Expand Down
6 changes: 3 additions & 3 deletions github/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
//!
//! ```toml
//! [dependencies]
//! octorust = "0.8.0-rc.1"
//! octorust = "0.8.0-rc.2"
//! ```
//!
//! ## Basic example
Expand All @@ -56,7 +56,7 @@
//! ```
//!
//! If you are a GitHub enterprise customer, you will want to create a client with the
//! [Client#host_override](https://docs.rs/octorust/0.8.0-rc.1/octorust/struct.Client.html#method.host_override) method.
//! [Client#host_override](https://docs.rs/octorust/0.8.0-rc.2/octorust/struct.Client.html#method.host_override) method.
//!
//! ## Feature flags
//!
Expand All @@ -70,7 +70,7 @@
//!
//! ```toml
//! [dependencies]
//! octorust = { version = "0.8.0-rc.1", features = ["httpcache"] }
//! octorust = { version = "0.8.0-rc.2", features = ["httpcache"] }
//! ```
//!
//! Then use the `Client::custom` constructor to provide a cache implementation.
Expand Down
12 changes: 6 additions & 6 deletions google/admin/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "gsuite-api"
description = "A fully generated & opinionated API client for the Google Admin API."
version = "0.8.0-rc.1"
version = "0.8.0-rc.2"
documentation = "https://docs.rs/gsuite-api/"
repository = "https://github.com/oxidecomputer/third-party-api-clients/tree/main/google/admin"
readme = "README.md"
Expand All @@ -17,7 +17,7 @@ rustls-tls = ["reqwest/rustls-tls", "ring", "pem"]

[dependencies]
async-recursion = "^1.0"
chrono = { version = "0.4.38", default-features = false, features = ["serde"] }
chrono = { version = "0.4.38", default-features = false, features = ["alloc", "serde"] }
dirs = { version = "^3.0.2", optional = true }
http = "1"
jsonwebtoken = "8"
Expand All @@ -28,10 +28,10 @@ parse_link_header = "0.3.3"
pem = { version = "1.1.0", default-features = false, optional = true }
percent-encoding = "2.2"
reqwest = { version = "0.12", default-features = false, features = ["json", "multipart"] }
reqwest-conditional-middleware = "0.3"
reqwest-middleware = { version = "0.3", features = ["multipart"] }
reqwest-retry = "0.5"
reqwest-tracing = "0.5"
reqwest-conditional-middleware = "0.4"
reqwest-middleware = { version = "0.4", features = ["multipart"] }
reqwest-retry = "0.7"
reqwest-tracing = "0.5.4"
ring = { version = "0.16", default-features = false, optional = true }
schemars = { version = "0.8", features = ["bytes", "chrono", "url", "uuid1"] }
serde = { version = "1", features = ["derive"] }
Expand Down
2 changes: 1 addition & 1 deletion google/admin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ To install the library, add the following to your `Cargo.toml` file.

```toml
[dependencies]
gsuite-api = "0.8.0-rc.1"
gsuite-api = "0.8.0-rc.2"
```

## Basic example
Expand Down
2 changes: 1 addition & 1 deletion google/admin/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
//!
//! ```toml
//! [dependencies]
//! gsuite-api = "0.8.0-rc.1"
//! gsuite-api = "0.8.0-rc.2"
//! ```
//!
//! ## Basic example
Expand Down
12 changes: 6 additions & 6 deletions google/calendar/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "google-calendar"
description = "A fully generated & opinionated API client for the Google Calendar API."
version = "0.8.0-rc.1"
version = "0.8.0-rc.2"
documentation = "https://docs.rs/google-calendar/"
repository = "https://github.com/oxidecomputer/third-party-api-clients/tree/main/google/calendar"
readme = "README.md"
Expand All @@ -17,7 +17,7 @@ rustls-tls = ["reqwest/rustls-tls", "ring", "pem"]

[dependencies]
async-recursion = "^1.0"
chrono = { version = "0.4.38", default-features = false, features = ["serde"] }
chrono = { version = "0.4.38", default-features = false, features = ["alloc", "serde"] }
dirs = { version = "^3.0.2", optional = true }
http = "1"
jsonwebtoken = "8"
Expand All @@ -28,10 +28,10 @@ parse_link_header = "0.3.3"
pem = { version = "1.1.0", default-features = false, optional = true }
percent-encoding = "2.2"
reqwest = { version = "0.12", default-features = false, features = ["json", "multipart"] }
reqwest-conditional-middleware = "0.3"
reqwest-middleware = { version = "0.3", features = ["multipart"] }
reqwest-retry = "0.5"
reqwest-tracing = "0.5"
reqwest-conditional-middleware = "0.4"
reqwest-middleware = { version = "0.4", features = ["multipart"] }
reqwest-retry = "0.7"
reqwest-tracing = "0.5.4"
ring = { version = "0.16", default-features = false, optional = true }
schemars = { version = "0.8", features = ["bytes", "chrono", "url", "uuid1"] }
serde = { version = "1", features = ["derive"] }
Expand Down
2 changes: 1 addition & 1 deletion google/calendar/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ To install the library, add the following to your `Cargo.toml` file.

```toml
[dependencies]
google-calendar = "0.8.0-rc.1"
google-calendar = "0.8.0-rc.2"
```

## Basic example
Expand Down
2 changes: 1 addition & 1 deletion google/calendar/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
//!
//! ```toml
//! [dependencies]
//! google-calendar = "0.8.0-rc.1"
//! google-calendar = "0.8.0-rc.2"
//! ```
//!
//! ## Basic example
Expand Down
12 changes: 6 additions & 6 deletions google/cloud-resource-manager/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "google-cloud-resource-manager"
description = "A fully generated & opinionated API client for the Google Cloud Resource Manager API."
version = "0.8.0-rc.1"
version = "0.8.0-rc.2"
documentation = "https://docs.rs/google-cloud-resource-manager/"
repository = "https://github.com/oxidecomputer/third-party-api-clients/tree/main/google/cloud-resource-manager"
readme = "README.md"
Expand All @@ -17,7 +17,7 @@ rustls-tls = ["reqwest/rustls-tls", "ring", "pem"]

[dependencies]
async-recursion = "^1.0"
chrono = { version = "0.4.38", default-features = false, features = ["serde"] }
chrono = { version = "0.4.38", default-features = false, features = ["alloc", "serde"] }
dirs = { version = "^3.0.2", optional = true }
http = "1"
jsonwebtoken = "8"
Expand All @@ -28,10 +28,10 @@ parse_link_header = "0.3.3"
pem = { version = "1.1.0", default-features = false, optional = true }
percent-encoding = "2.2"
reqwest = { version = "0.12", default-features = false, features = ["json", "multipart"] }
reqwest-conditional-middleware = "0.3"
reqwest-middleware = { version = "0.3", features = ["multipart"] }
reqwest-retry = "0.5"
reqwest-tracing = "0.5"
reqwest-conditional-middleware = "0.4"
reqwest-middleware = { version = "0.4", features = ["multipart"] }
reqwest-retry = "0.7"
reqwest-tracing = "0.5.4"
ring = { version = "0.16", default-features = false, optional = true }
schemars = { version = "0.8", features = ["bytes", "chrono", "url", "uuid1"] }
serde = { version = "1", features = ["derive"] }
Expand Down
2 changes: 1 addition & 1 deletion google/cloud-resource-manager/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ To install the library, add the following to your `Cargo.toml` file.

```toml
[dependencies]
google-cloud-resource-manager = "0.8.0-rc.1"
google-cloud-resource-manager = "0.8.0-rc.2"
```

## Basic example
Expand Down
2 changes: 1 addition & 1 deletion google/cloud-resource-manager/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
//!
//! ```toml
//! [dependencies]
//! google-cloud-resource-manager = "0.8.0-rc.1"
//! google-cloud-resource-manager = "0.8.0-rc.2"
//! ```
//!
//! ## Basic example
Expand Down
Loading

0 comments on commit 011d903

Please sign in to comment.