Skip to content

transpile: use core::ffi::c_* instead of std::ffi::c_*#1381

Merged
kkysen merged 1 commit intomasterfrom
kkysen/use-core-for-ffi-types
Sep 29, 2025
Merged

transpile: use core::ffi::c_* instead of std::ffi::c_*#1381
kkysen merged 1 commit intomasterfrom
kkysen/use-core-for-ffi-types

Conversation

@kkysen
Copy link
Copy Markdown
Contributor

@kkysen kkysen commented Sep 27, 2025

This leaves alone std items that could be alloc, like std::vec::from_elem or std::ffi::CString::new (needs a newer rustc 1.63), but it should address most cases.

Copy link
Copy Markdown
Contributor Author

@kkysen kkysen left a comment

Choose a reason for hiding this comment

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

@chrysn, does this look good for your use case?

@kkysen kkysen force-pushed the kkysen/use-core-for-ffi-types branch from 38ec7b1 to 3dc0c87 Compare September 27, 2025 05:37
@kkysen kkysen force-pushed the kkysen/use-core-for-ffi-types branch from 3dc0c87 to 76f39c1 Compare September 27, 2025 08:29
Copy link
Copy Markdown
Contributor

@fw-immunant fw-immunant left a comment

Choose a reason for hiding this comment

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

Code changes look reasonable.

@kkysen kkysen merged commit dba9eae into master Sep 29, 2025
5 checks passed
@kkysen kkysen deleted the kkysen/use-core-for-ffi-types branch September 29, 2025 17:27
kkysen added a commit that referenced this pull request Sep 29, 2025
 merged

GitHub annoyingly does not re-run CI based on the result of
merging a PR into `master`, just that PR itself.
kkysen added a commit that referenced this pull request Sep 29, 2025
 merged (#1383)

GitHub annoyingly does not re-run CI based on the result of merging a PR
into `master`, just that PR itself.
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.

--emit-no-std broke (regression after 0.20)

2 participants