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

Safe external statics #255

Open
madsmtm opened this issue Aug 29, 2022 · 1 comment
Open

Safe external statics #255

madsmtm opened this issue Aug 29, 2022 · 1 comment
Labels
A-framework Affects the framework crates and the translator for them enhancement New feature or request

Comments

@madsmtm
Copy link
Owner

madsmtm commented Aug 29, 2022

Some types like NSErrorUserInfoKey are really just a list of certain NSStrings that may be valid where it is used.

It would be nice to have a better way of handling these!

Something like rust-lang/lang-team#149 could help here, likewise if we had associated statics.

@madsmtm madsmtm added enhancement New feature or request A-framework Affects the framework crates and the translator for them labels Aug 29, 2022
@madsmtm madsmtm changed the title Better external static strings Safe external statics Dec 23, 2022
@madsmtm madsmtm added this to the icrate v0.1.0 milestone Jan 27, 2023
@madsmtm madsmtm modified the milestones: Usable icrate, Polish icrate Sep 5, 2023
@madsmtm
Copy link
Owner Author

madsmtm commented Oct 27, 2024

This is now possible with Rust 1.82, so we can do this once that's in our MSRV.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-framework Affects the framework crates and the translator for them enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant