Skip to content

Comments

Allow templates on crubit_internal_rust_type#522

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

Allow templates on crubit_internal_rust_type#522
copybara-service[bot] wants to merge 1 commit intomainfrom
test_874173965

Conversation

@copybara-service
Copy link

@copybara-service copybara-service bot commented Feb 23, 2026

Allow templates on crubit_internal_rust_type

This allows users to unsafely mark templated types as CRUBIT_INTERNAL_RUST_TYPE, and they will get mapped over with 1:1 template arguments to Rust. The only check is that the template types aren't bridge types, which need a transformation.

Validations like "is the layout the same?" is not performed.

@google-cla
Copy link

google-cla bot commented Feb 23, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

This allows users to unsafely mark templated types as `CRUBIT_INTERNAL_RUST_TYPE`, and they will get mapped over with 1:1 template arguments to Rust. The only check is that the template types aren't bridge types, which need a transformation.

Validations like "is the layout the same?" is not performed.

PiperOrigin-RevId: 874173965
@copybara-service copybara-service bot changed the title Add templated crubit_internal_rust_type in goldens Allow templates on crubit_internal_rust_type Feb 24, 2026
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.

0 participants