Rust에서 안전하게 C를 호출하기 위한 새로운 FFI 제안.
이 글에서는 Rust의 C FFI가 안전하지 않다는 점을 지적하며, Fil-C의 런타임 메모리 안전성 아래에서 C 코드를 호출할 수 있는 새로운 FFI의 필요성을 강조합니다. 초기 버전은 스칼라 값, 문자열, 슬라이스, 불투명 핸들을 지원합니다. 또한 전체 C 의존성 그래프를 Fil-C로 컴파일하는 방법에 대해 설명합니다.
A proposal for a new FFI to safely call C from Rust.
The article points out the unsafety of Rust's C FFI and emphasizes the need for a new FFI to call C code under the runtime memory safety of Fil-C. The initial version supports scalar values, copied strings, slices, and opaque handles. It also describes how to compile the entire C dependency graph to Fil-C.