Open DazWilkin opened 3 years ago
Hello! Sorry you had such a hard time getting started!
I have been wanting to make it easier to get a development environment and running for some time now. Although, we hope to publish all the crates sometime soon, so that might cover your use case. In the meantime, you can also specify our other repo
https://github.com/google-apis-rs/generated. It looks like you are looking for Cloud Run which is not available on master
. You could try the WIP refactor/async
branch as long as the caveats listed in https://github.com/google-apis-rs/generator/pull/30 meet your needs.
Also, this project uses https://github.com/casey/just, you might find it easier to use that rather than running everything by hand.
Hi !
I also experience the same. It is a bit challenging to get started :smile: .
Let's try https://github.com/google-apis-rs/generated.git then !
Okay, I tried and I cannot use it on front end. I need to make it Wasm compatible.
@mwilliammyers I apologize for not having responded to your reply.
Your guidance was helpful.
I continue to struggle using these repos.
I noticed in your [reply] on #24 that there's some syntax (with which I was unfamiliar) for referencing the generated package
s which clearly is preferred and much simpler but not (!?) documented.
google_serviceusage = {
git = "https://github.com/google-apis-rs/generated.git",
package = "google-serviceusage1"
}
Thanks for building this generator!
I struggled to understand how to use it.
After cloning the repo, I duly
cargo run -- --help
and was given 2 possible alternatives:When I tried
cargo run -- generate --help
:I looked for the
<spec-json-path>
in the repo but assume it isn't copy to rely on the live documents? I think, at this point, I should have just downloaded the Discovery document for Cloud Run (discovery) but, I was uncertain whether I shouldfetch-api-specs
.When I tried
cargo run -- fetch-api-specs --help
:I'm unsure what
the mapped index we produced prior
refers to. I was hopingthe original Google index
could be the URL but the URL doesn't appear to be accepted:After tweaking
fetch-api-specs
and downloading the URL to a file, the errors I received suggesting that this command does not recursively descend through the spec files that it references; I must manually download the specific service specs.Finally, I realized
fetch-api-specs
is redundant for my needs.But I still had to manually download the Cloud Run spec, again it would be nice to provide this as a URL
Then I was happily able to generate the library that I need:
Thank you for reading this far! It's a very useful tool but it's not as approachable as it could be.