-
Notifications
You must be signed in to change notification settings - Fork 64
Open
Labels
A-frameworkAffects the framework crates and the translator for themAffects the framework crates and the translator for themhelp wantedExtra attention is neededExtra attention is needed
Milestone
Description
In #329 I authored a pretty large file, which naturally lead me to thinking about how that process could be improved upon:
- Some
rustdocfork that allows one to go through, click a button, and have the source-code updated to mark it as safe (perhaps with a comment). - Are property accessors always safe? I know that setters are not, since they may need to maintain an invariant, but it seems like if you have a reference to a type, you should always be able to access any data it holds? Maybe just for certain types (like, we could do
NSData: Shared { ... }, and then allNSDataproperties would become safe). - A way to make icrate generate
#[method(myMethod)] pub(crate) fn myMethod_unchecked(...)for instances where one would like to modify the method but keep the name the same (e.g.NSData::bytes) - Checks in
header-translatorthat verify that the data entry is actually used (and e.g. not declaredclass X { ... }on a protocol).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-frameworkAffects the framework crates and the translator for themAffects the framework crates and the translator for themhelp wantedExtra attention is neededExtra attention is needed