Conversation
|
Converted back to draft as I have to figure out a way to bundle |
|
For CI, perhaps use - I would anticipate that for the local development experience, have a section for requiring the tool to be installed - I would encourage with Chocolately https://community.chocolatey.org/packages/protoc |
|
Agree with the above suggesions by @justin-lovell |
|
The |
I am personally not a huge fan of any additional step to simply running |
In rubyland there is a convention that you can run a Otherwise adding it to the |
I like that alternative. Is your thinking similar to this build.rs? It looks neat. |
|
Thanks for the feedback! @rurounijones Such a I looked into downloading it, but after adding 5 dependencies just to download and extract protoc, I didn't like the idea too much anymore.
Which made this look like a way better/easier solution. I've updated the PR accordingly. I've created the dependency under my own Github user for now https://github.com/rkusa/protoc-bundled. We could also move it to I'd actually tend to keeping it as a Git dependency and not publish it to https://crates.io/. Instead of rolling our own dependency, we could also use something like https://lib.rs/crates/protoc-bin-vendored, but I am not too keen on pulling executables from yet another stranger. In the future we could move to building protoc instead of bundling/downloading it. This currently requires What do you think? |
rurounijones
left a comment
There was a problem hiding this comment.
The current dependency in a separate dependency only accessible via git sounds like a good solution.
justin-lovell
left a comment
There was a problem hiding this comment.
learned a lot from this PR. cheers.
Upgrade dependencies. This includes major upgrades. Unfortunately, the dependency that generates code out of proto files isn't bundling
protocanymore, so I am afraid we have to bundle it ourselves (or keep using the older version). Anyone against bundlingprotoc.exein the repo?