Skip to content

Commit

Permalink
Update deps and version up
Browse files Browse the repository at this point in the history
  • Loading branch information
augustuswm committed Nov 11, 2024
1 parent 8838293 commit 938562d
Show file tree
Hide file tree
Showing 66 changed files with 1,082 additions and 904 deletions.
1,576 changes: 886 additions & 690 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
60 changes: 21 additions & 39 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 Expand Up @@ -596,34 +596,18 @@ impl Client {
.await?;

#[cfg(feature = "httpcache")]
let (req, cache_out) = {
let req = {
let mut req = self
.make_request(method.clone(), uri, message, media_type, authentication)
.await?;

let cache_out = if method == http::Method::GET {
let cache_out = if let Ok(body) = self.http_cache.lookup_body(&uri) {
if let Ok(out) = serde_json::from_str::<Out>(&body) {
Some(out)
} else {
None
}
} else {
None
};

if cache_out.is_some() {
if let Ok(etag) = self.http_cache.lookup_etag(&uri) {
req = req.header(http::header::IF_NONE_MATCH, etag);
}
if method == http::Method::GET {
if let Ok(etag) = self.http_cache.lookup_etag(&uri) {
req = req.header(http::header::IF_NONE_MATCH, etag);
}
}

cache_out
} else {
None
};

(req, cache_out)
req
};

let response = req.send().await?;
Expand Down Expand Up @@ -680,18 +664,16 @@ impl Client {
// header when cargo builds with --cfg feature="httpcache"
#[cfg(feature = "httpcache")]
{
if let Some(out) = cache_out {
let link = match next_link {
Some(next_link) => Ok(Some(next_link)),
None => self
.http_cache
.lookup_next_link(&uri)
.map(|next_link| next_link.map(crate::utils::NextLink)),
};
link.map(|link| (link, Response::new(status, headers, out)))
} else {
unreachable!("GitHub returned a 304 for a request without an etag: {:?} {}", method, uri);
}
let body = self.http_cache.lookup_body(&uri).unwrap();
let out = serde_json::from_str::<Out>(&body).unwrap();
let link = match next_link {
Some(next_link) => Ok(Some(next_link)),
None => self
.http_cache
.lookup_next_link(&uri)
.map(|next_link| next_link.map(crate::utils::NextLink)),
};
link.map(|link| (link, Response::new(status, headers, out)))
}
#[cfg(not(feature = "httpcache"))]
{
Expand Down Expand Up @@ -810,7 +792,7 @@ impl Client {
uri,
Message::default(),
crate::utils::MediaType::Json,
crate::auth::AuthenticationConstraint::Unconstrained
crate::auth::AuthenticationConstraint::Unconstrained,
)
.await
}
Expand All @@ -827,7 +809,7 @@ impl Client {
url.as_str(),
Message::default(),
crate::utils::MediaType::Json,
crate::auth::AuthenticationConstraint::Unconstrained
crate::auth::AuthenticationConstraint::Unconstrained,
)
.await
}
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
Loading

0 comments on commit 938562d

Please sign in to comment.