/Rust.jl

Write Rust code in Julia

Primary LanguageJuliaOtherNOASSERTION

Rust

Build Status codecov.io

Dependencies

You must have rustc and cargo to use this package. Rustup is the recommended install method.

Usage

This is a work in progress so there are not many features right now.

Take a look at test/runtests.jl for usage examples.

Capabilities

Current:

  • Compile a Rust code string and return a dlopend library
  • Translate fully-typed methods to Rust with a macro that calls code_typed

Future:

  • Rust string support
  • Replace common Julia method patterns with their Rust equivalents
  • Parameters => Generics

Supported Types and Functions

For a list of supported types call:

keys(Rust.AST.RUST_TYPES)

For a list of supported functions call:

keys(Rust.AST.RUST_FUNCTIONS)