diff --git a/Cargo.toml b/Cargo.toml index 0104c13aaa..e6102dc7aa 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,7 +18,7 @@ name = "client" path = "src/rust/lib.rs" [dependencies] -google-api-client = { version = "4.0", path = "google-api-client" } +google-apis-common = { version = "4.0", path = "google-apis-common" } clap = "2" http = "^0.2" hyper = "0.14" diff --git a/google-api-client/Cargo.toml b/google-apis-common/Cargo.toml similarity index 93% rename from google-api-client/Cargo.toml rename to google-apis-common/Cargo.toml index 0325ec1a77..eb6eb1ebf5 100644 --- a/google-api-client/Cargo.toml +++ b/google-apis-common/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "google-api-client" +name = "google-apis-common" version = "4.0.0" edition = "2021" diff --git a/google-api-client/src/lib.rs b/google-apis-common/src/lib.rs similarity index 100% rename from google-api-client/src/lib.rs rename to google-apis-common/src/lib.rs diff --git a/src/generator/templates/Cargo.toml.mako b/src/generator/templates/Cargo.toml.mako index 87a22f2f22..584e9755fe 100644 --- a/src/generator/templates/Cargo.toml.mako +++ b/src/generator/templates/Cargo.toml.mako @@ -35,7 +35,7 @@ serde = { version = "^ 1.0", features = ["derive"] } serde_json = "^ 1.0" itertools = "^ 0.10" % if 'is_executable' not in cargo: -google-api-client = { path = "../../google-api-client" } +google-apis-common = { path = "../../google-apis-common", version = "4.0" } % endif % for dep in cargo.get('dependencies', list()): ${dep} diff --git a/src/generator/templates/api/lib.rs.mako b/src/generator/templates/api/lib.rs.mako index b512c62d97..1bf1ef0faa 100644 --- a/src/generator/templates/api/lib.rs.mako +++ b/src/generator/templates/api/lib.rs.mako @@ -43,7 +43,7 @@ ${lib.docs(c)} // Re-export the hyper and hyper_rustls crate, they are required to build the hub pub use hyper; pub use hyper_rustls; -pub extern crate google_api_client as client; +pub extern crate google_apis_common as client; pub mod api; diff --git a/src/rust/api/client.rs b/src/rust/api/client.rs index 6fdf1ba1f4..c7ad4dd216 100644 --- a/src/rust/api/client.rs +++ b/src/rust/api/client.rs @@ -1,2 +1,2 @@ //! This file serves on purpose and is an artifact of the buildsystem. -//! Its content can now be found in the `google-api-client` crate. \ No newline at end of file +//! Its content can now be found in the `google-apis-common` crate. \ No newline at end of file diff --git a/src/rust/lib.rs b/src/rust/lib.rs index 78937a81de..185b0c27b7 100644 --- a/src/rust/lib.rs +++ b/src/rust/lib.rs @@ -22,7 +22,7 @@ extern crate strsim; // just pull it in the check if it compiles mod cli; -use google_api_client as api; +use google_apis_common as api; /// This module is for testing only, its code is used in mako templates #[cfg(test)]