Include ffi_utils in generated C header files and ensure headers correctness

Description

As reported on the dev forum and on GitHub, currently it's not possible to use automatically generated C headers because of missing type definitions. One of the missing definitions is FfiResult.

1. Check that types from ffi_utils are included in generated C headers.

2. Make sure that it's possible to use these headers and compile a minimal C/C++ program.

3. Consider implementing a simple integration test for C bindings and run it with each CI pass.

4. Integrate ffi_utils::header_gen into safe_bindgen.

5. Use safe_bingen instead of deprecated moz-cheddar to generate C headers.

Environment

None

Gliffy Diagrams

Activity

Nikita Baksalyar May 4, 2018 at 2:15 PM

Merged as part of PR 636

Nikita Baksalyar April 11, 2018 at 10:14 AM

Paused, switched to

Nikita Baksalyar April 4, 2018 at 11:10 AM

Paused, temporarily switched to

Nikita Baksalyar March 16, 2018 at 5:30 PM

Updated story points from 4 to 8 (included points 4-5)

Done

Details

Assignee

Reporter

Start date

End date

Story Points

Components

Priority

Created March 8, 2018 at 12:45 PM
Updated September 11, 2018 at 9:02 AM
Resolved May 4, 2018 at 2:15 PM