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 target-specific sharing of types #63

Open
snowsignal opened this issue Feb 10, 2023 · 1 comment
Open

Support target-specific sharing of types #63

snowsignal opened this issue Feb 10, 2023 · 1 comment
Labels
feature-request A request for a new feature

Comments

@snowsignal
Copy link
Contributor

Taken from our internal issue tracker.

Original issue description

As of today, writing something like the following doesn't work:

#[cfg_attr(target_vendor = "apple", typeshare)]

It would be nice to support that, or, more generally, the concept of typesharing a type for a specific target only.

@snowsignal
Copy link
Contributor Author

snowsignal commented Feb 10, 2023

I agree with the original issue but I think the solution would work better as part of the typeshare attribute itself, instead of an external attribute that wraps typeshare.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request A request for a new feature
Projects
None yet
Development

No branches or pull requests

1 participant