Skip to content

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

Merged
copybara-service[bot] merged 1 commit intomainfrom
test_901485778
Apr 20, 2026
Merged

Construct a crate to produce the staticlib in the subcommand.#857
copybara-service[bot] merged 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).

@copybara-service copybara-service Bot force-pushed the test_901485778 branch 4 times, most recently from a30e388 to 2c17752 Compare April 20, 2026 16:35
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: 902680618
@copybara-service copybara-service Bot merged commit e542cc6 into main Apr 20, 2026
@copybara-service copybara-service Bot deleted the test_901485778 branch April 20, 2026 16:39
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