-
Notifications
You must be signed in to change notification settings - Fork 176
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
New properties API #5548
New properties API #5548
Conversation
b22195f
to
2d865b1
Compare
2d865b1
to
2b907ce
Compare
Will fix docs tests after initial review. |
}; | ||
} | ||
|
||
pub use crate::provider::props::BidiClass; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
issue: I'd rather not do this; these types are tagged as unstable in the docs.
Can we instead just use regular integers in the data and convert here? we erase the type anyway
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should consider them stable instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The reason I moved them is that they have make_ule
, and the ULE types should not be stable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@robertbastian Right, I wish to also consider them stable, which is why I don't want them in the provider module.
Don't worry about make_ule
, those are going to go away before 1.0 #5127 . I've been waiting for this PR to land to make that change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall happy with the direction here, mostly have comments on code organization:
- I think the properties should all canonically live in
crate::props
, not underprovider
. Don't worry about the ULE types, they're going away - I think enumerated properties should automatically generate names
Since this is a large PR and unwieldy to review I'm okay merging this with followups.
}; | ||
} | ||
|
||
pub use crate::provider::props::BidiClass; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@robertbastian Right, I wish to also consider them stable, which is why I don't want them in the provider module.
Don't worry about make_ule
, those are going to go away before 1.0 #5127 . I've been waiting for this PR to land to make that change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving with the two code organization bits as followups. I'm happy to do the props one since I want to touch that code anyway.
If you mean merging
|
I meant having the macro generate names too. Not merging the traits. |
I'll take on this followup |
#3573