Skip to content

Construct a crate to produce the staticlib in the subcommand.#857

Open
copybara-service[bot] wants to merge 1 commit intomainfrom
test_901485778
Open

Construct a crate to produce the staticlib in the subcommand.#857
copybara-service[bot] wants to merge 1 commit intomainfrom
test_901485778

Conversation

@copybara-service
Copy link
Copy Markdown

Construct a crate to produce the staticlib in the subcommand.

This solves the issue of how does generated Rust code for bindings
depend on bridge.rs. We create a Cargo.toml package for the generated
rust code and use that to produce a staticlib. The Cargo.toml can then
depend on bridge.rs. We're okay with this dependency being implicit
like this because we want the subcommand to control which version of
bridge.rs is used (and we only want to change versions when subcommand
versions are changed).

This solves the issue of how does generated Rust code for bindings
depend on `bridge.rs`. We create a Cargo.toml package for the generated
rust code and use that to produce a staticlib. The Cargo.toml can then
depend on `bridge.rs`. We're okay with this dependency being implicit
like this because we want the subcommand to control which version of
bridge.rs is used (and we only want to change versions when subcommand
versions are changed).

PiperOrigin-RevId: 901485778
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.

1 participant