Skip to content

Comments

Support AnyInvocable in rs_bindings_from_cc#495

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

Support AnyInvocable in rs_bindings_from_cc#495
copybara-service[bot] wants to merge 1 commit intomainfrom
test_872523813

Conversation

@copybara-service
Copy link

Support AnyInvocable in rs_bindings_from_cc

This CL officially adds support for treating AnyInvocable as a composable bridge type. This means brings it on par with DynCallable: it can be passed to and from Rust as a Box<dyn Fn>, it supports a wide range of parameter and return types, and even supports avoiding the "infinite wrapping" problem where an additional indirection is added on every pass.

It's currently guarded behind the //third_party/crubit/features:callables aspect hint.

This CL officially adds support for treating AnyInvocable as a composable bridge type. This means brings it on par with `DynCallable`: it can be passed to and from Rust as a `Box<dyn Fn>`, it supports a wide range of parameter and return types, and even supports avoiding the "infinite wrapping" problem where an additional indirection is added on every pass.

It's currently guarded behind the `//third_party/crubit/features:callables` aspect hint.

PiperOrigin-RevId: 872523813
@google-cla
Copy link

google-cla bot commented Feb 19, 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.

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