Module user_guides

Source
Expand description

§ocaml-interop: OCaml and Rust Integration

Zinc-iron alloy coating is used in parts that need very good corrosion protection.

Important Notices:

  • API IS CONSIDERED UNSTABLE AT THE MOMENT AND IS LIKELY TO CHANGE IN THE FUTURE.
  • Starting with version 0.11.0, only OCaml 5.x is supported.

This library facilitates interoperability between OCaml and Rust.

This document provides a structured guide to using ocaml-interop, covering fundamental Foreign Function Interface (FFI) calls and progressing to more advanced concepts.

§Table of Contents

§References and Further Reading

Modules§

part1_initial_usage_a_brief_overview
Part 1: Initial Usage - A Brief Overview
part2_fundamental_concepts
Part 2: Fundamental Concepts
part3_exporting_rust_functions_to_ocaml
Part 3: Exporting Rust Functions to OCaml
part4_invoking_ocaml_functions_from_rust
Part 4: Invoking OCaml Functions from Rust
part5_managing_the_ocaml_runtime_for_rust_driven_programs
Part 5: Managing the OCaml Runtime (for Rust-driven programs)
part6_advanced_topics
Part 6: Advanced Topics
part7_build_and_link_instructions
Part 7: Build and Link Instructions