diff --git a/.github/workflows/default.yml b/.github/workflows/default.yml index d08eb81..7ab92a8 100644 --- a/.github/workflows/default.yml +++ b/.github/workflows/default.yml @@ -17,6 +17,11 @@ jobs: toolchain: stable override: true + - name: Run cargo check no-feature + uses: actions-rs/cargo@v1 + with: + command: check + - name: Run cargo check isahc uses: actions-rs/cargo@v1 with: diff --git a/Cargo.lock b/Cargo.lock index a51c2b6..90335e6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -914,7 +914,7 @@ dependencies = [ [[package]] name = "roctogen" -version = "0.2.1" +version = "0.2.2" dependencies = [ "base64", "cfg-if 0.1.10", diff --git a/Cargo.toml b/Cargo.toml index 081a5d2..a14cbee 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "roctogen" -version = "0.2.1" +version = "0.2.2" authors = [ "Roctogen contributors" ] description = "Github API and models generated from the official swagger OpenAPI specification" license = "Apache-2.0" diff --git a/src/adapters/mod.rs b/src/adapters/mod.rs index fd864fd..d319938 100644 --- a/src/adapters/mod.rs +++ b/src/adapters/mod.rs @@ -84,7 +84,21 @@ pub(crate) async fn fetch_async( not(feature = "ureq"), not(target_arch = "wasm32") ))] -pub(crate) type FromJsonType = Vec; +pub(crate) fn to_json Deserialize<'de>>( + _res: http::Response>, +) -> Result { + unimplemented!("Use a client adapter feature, or target wasm"); +} + +#[cfg(all( + not(feature = "isahc"), + not(feature = "reqwest"), + not(feature = "ureq"), + not(target_arch = "wasm32") +))] +pub(crate) async fn to_json_async Deserialize<'de>>(_res: http::Response>) -> Result { + unimplemented!("Use a client adapter feature, or target wasm"); +} #[cfg(all( not(feature = "isahc"), @@ -108,8 +122,8 @@ impl GitHubResponseExt for http::Response> { not(feature = "ureq"), not(target_arch = "wasm32") ))] -impl GitHubRequestBuilder for http::Request> { - fn build(_req: GitHubRequest, _auth: &Auth) -> Result { +impl GitHubRequestBuilder> for http::Request> { + fn build(_req: GitHubRequest>, _auth: &Auth) -> Result { unimplemented!("Use a client adapter feature, or target wasm"); } }