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

More FFI cleanups #5268

Merged
merged 3 commits into from
Jul 19, 2024
Merged

Conversation

robertbastian
Copy link
Member

No description provided.

@robertbastian robertbastian requested review from Manishearth and a team as code owners July 18, 2024 22:10
#[diplomat::attr(any(dart, js), rename = "for_text")]
// The only safe UTF-8 strings are those generated by the Diplomat layer in UTF-16 languages
#[diplomat::attr(supports = utf8_strings, disable)]
#[diplomat::attr(supports = utf16_strings, rename = "for_text")]
pub fn for_text_valid_utf8<'text>(
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note: because the C backend respects disable, this method is hidden from it. If we want the C backend to be the ABI backend, we have to ignore disable.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fine for now!

Manishearth
Manishearth previously approved these changes Jul 18, 2024
@robertbastian robertbastian merged commit 903a96b into unicode-org:main Jul 19, 2024
28 checks passed
@robertbastian robertbastian deleted the attr-cleanup branch July 19, 2024 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants