Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update openapi definition in order to access soft_delete confi… #175

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

ftison
Copy link

@ftison ftison commented Dec 26, 2024

…guration of Cloud Storage

@ftison
Copy link
Author

ftison commented Dec 26, 2024

I tested creating a bucket by changing the value of soft_delete. It works.

However, I don't understand how to uncomment the end of src/api_client.rs

To avoid the error:

error[E0592]: duplicate definitions with name `init_tls_config`
   --> gcloud-sdk/src/api_client.rs:232:5
    |
224 |     fn init_tls_config(domain_name: String) -> tonic::transport::ClientTlsConfig {
    |     ---------------------------------------------------------------------------- other definition for `init_tls_config`
...
232 |     fn init_tls_config(domain_name: String) -> tonic::transport::ClientTlsConfig {
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ duplicate definitions for `init_tls_config`

@ftison ftison marked this pull request as ready for review December 26, 2024 06:28
@abdolence
Copy link
Owner

abdolence commented Dec 26, 2024

Hey,

I've created a separated PR to verify this and merged it.
Seems everything was as usual.

duplicate definitions with name init_tls_config

This usually happens when you have incompatible feature toggles in your deps.
Try to disable default features and use everything explicitly like this:

default-features = false, features = ["google-rest-storage-v1","tls-webpki-roots"]

I verified using example in this repo:

cargo run --package gcs-rest-client-example --bin gcs-rest-client-example

@abdolence abdolence marked this pull request as draft December 26, 2024 10:30
@ftison ftison marked this pull request as ready for review December 27, 2024 01:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants