Skip to content
This repository was archived by the owner on Feb 24, 2018. It is now read-only.

Byron/ruby-rust-examples

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a short collection of examples on interoperability between Ruby and Rust using Ruby's "fiddle" standard library and Rust's C interface.

Points and Lines

A simple struct on the Rust side is handled as a pointer the Ruby side.

Deals with: ownership/lifetime, integers

Messages

Passes messages between Rust and Ruby.

Deals with: strings

Cryptography

Calculates MD5 hash given an number or a string.

Deals with: cargo, crates

About

Example code of using Rust from Ruby

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 54.3%
  • Rust 44.0%
  • Makefile 1.7%