Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support disabling APIs per-backend #2450

Closed
Manishearth opened this issue Aug 25, 2022 · 2 comments
Closed

Support disabling APIs per-backend #2450

Manishearth opened this issue Aug 25, 2022 · 2 comments
Labels
C-ffi-infra Component: Diplomat, horizontal FFI

Comments

@Manishearth
Copy link
Member

Eventually, we will have backends that support more functionality than others, as we start adding more complex things like callbacks. It would be nice to be able to write APIs (and our own tests!) that work on backends that support the feature whilst being disabled on backends that don't.

Something like #[diplomat::disable(cpp)]

@Manishearth
Copy link
Member Author

If we do this we should do this in the holistic backend attribute system designed in #2453

@Manishearth
Copy link
Member Author

Wrong repo, rust-diplomat/diplomat#233

@sffc sffc added the C-ffi-infra Component: Diplomat, horizontal FFI label Dec 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-ffi-infra Component: Diplomat, horizontal FFI
Projects
None yet
Development

No branches or pull requests

2 participants