draf

(β˜… 9)

Typescript to native LLVM code. What if Typescript was a truly compiled language?

  • .gitignore
  • Cargo.lock
  • Cargo.toml
  • Makefile
  • README.md

# Installation Guide

1. Get the code
git clone https://github.com/luizfonseca/draf

Downloads the entire project code from GitHub to your computer.

cd draf

Moves into the project folder you just downloaded.

2. Official Install Script

Easy Recommended
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Downloads and runs the official install script in one line β€” this handles the full setup automatically.

βœ… After installing, open a new terminal and run the program's version command (e.g. --version) to confirm it worked.

Pulled directly from this repo's README.

3. Rust

Medium
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Rust (rustup) Installing via rustup also installs cargo.
cargo build --release

Compiles the Rust project.

cargo test

Type this command into your terminal and run it.

cargo run -- input.ts

Builds and then immediately runs the program.

RUST_LOG=debug cargo run -- input.ts

Builds and then immediately runs the program.

cargo bench

Type this command into your terminal and run it.

βœ… If cargo build finishes without errors, it worked. The executable is created under target/.

Pulled directly from this repo's README.

4. Make

Medium
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Make Usually pre-installed on Linux/macOS. On Windows, install separately (e.g. via MSYS2 or WSL).
make bin testfile=./tests/<fileName>.ts

Compiles the code based on the generated build configuration to produce an executable.

βœ… If it finishes without errors, it worked. Try running the generated executable directly.

Pulled directly from this repo's README.

// repository documentation