Skip to content
A Clojure to Rust transpiler
Branch: master
Clone or download


A Clojure to Rust transpiler.

orange leaves


lein run --in <src.clj> --out <>


Run the example with ./

This shell script invokes the transpiler with input file example/hello_world/hello-world.clj, produces output file example/hello_world/src/, invokes cargo run, producing the "Ferris says hello" message:

| Hello world              |
          \) /  o o  \ (/
            '_   -   _'
            / '-----' \


This is a science project. This software is alpha and subject to changes. Feedback on design and implementation is welcome. Only a subset of Clojure is implemented. The goal is to cover all the good parts.

No packaged builds are provided at this time. To use this transpiler you must download the source code.


The thing that might be awesome about compiling Clojure to Rust code is that we can target platforms like WASM or native.

Seeing the terrific stuff that Rust to WASM people are producing ( makes me think that having a concise Lisp syntax in that ecosystem would be a good thing.


Contributions in the form of issues, PRs, and suggestions are very welcome.

The interesting bits are in src/rustly/transpiler.clj, where Clojure forms are translated to Rust code.


Copyright © 2019 Timothy Pratley

This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0 which is available at

This Source Code may also be made available under the following Secondary Licenses when the conditions for such availability set forth in the Eclipse Public License, v. 2.0 are satisfied: GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version, with the GNU Classpath Exception which is available at

You can’t perform that action at this time.