package

github.com/LePichu/rust-crystal-ffi-example

master / published Mar 5, 2023 / repository

Example demonstrating how to use Rust from Crystal!

Rust to Crystal FFI Example.

This is a demo repository showing how to use Rust with Crystal.

Prerequisites:

Running Locally:

  • Clone the repository to your local machine.
  • Run cargo build; shards run to build and execute the example.

How does it work?

This example does what Crystal needs, C ABI functions. We are exposing Rust code to C ABI which is then picked up by Crystal to use.

API

This version publishes no documented types.