Closed animesh-sharama closed 1 year ago
We have not yet released google-cloud-default
with the addition of with_credentials
.
We plan to release it in a week or two. Until then, please use the main branch directly.
google-cloud-default = { git = "https://github.com/yoshidan/google-cloud-rust", branch="main",
directly using main branch results as follows:
google-cloud-default = { git = "https://github.com/yoshidan/google-cloud-rust", branch="main"}
results into the same error:
.with_credentials(cred))
^^^^^^^^^^^^^^^^ method not found in `ClientConfig`
do I need to configure anything else?
If you use the main branch, components other than google-cloud-default must also be in the main branch.
google-cloud-storage = { git = "https://github.com/yoshidan/google-cloud-rust", branch="main",
google-cloud-auth = { git = "https://github.com/yoshidan/google-cloud-rust", branch="main",
Here is the example.
You can check the cargo tree
to make sure that only the main branch is really used and not duplicated in other versions.
$ cargo tree | grep google-cloud-default
├── google-cloud-default v0.1.1 (https://github.com/yoshidan/google-cloud-rust?branch=main#cb14a257)
$cargo tree | grep google-cloud-auth
├── google-cloud-auth v0.9.1 (https://github.com/yoshidan/google-cloud-rust?branch=main#cb14a257) (*)
yes I am using the main branch for
all the components, below is my cargo.toml:
google-cloud-storage = { git = "https://github.com/yoshidan/google-cloud-rust", branch="main"}
google-cloud-auth = { git = "https://github.com/yoshidan/google-cloud-rust", branch="main"}
google-cloud-default = { git = "https://github.com/yoshidan/google-cloud-rust", branch="main"}
still the same error,
ClientConfig::default().with_credentials(cred)
^^^^^^^^^^^^^^^^ method not found in `ClientConfig`
Now the with_auth
also doesn't work:
ClientConfig::default().with_auth()
| ^^^^^^^^^ method not found in `ClientConfig`
I checked the cargo tree
the output is the same as the one you have shown.
Any other things I can try?
You should be able to use it by setting features
in google-cloud-default.
google-cloud-default = { git = "https://github.com/yoshidan/google-cloud-rust", branch="main", features=["storage","spanner","pubsub"]}
If it still doesn't improve, could you please paste the Cargo.toml and entire line of source code? I think I can find the flaws.
thanks its resolved.
I an trying to run the example from the repo:
The
Cargo.toml
is:I get the following error:
can someone point what am I missing?