Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Installation

Prerequisites

  • Rust 1.70+
  • clang (for hgl build / hgl run) — optional for interpreter-only use

macOS

xcode-select --install

Linux

sudo apt install clang

Install Han

For most Rust users, install Han from crates.io:

cargo install han-lang

The crates.io package is named han-lang. The language name remains Han, and the installed command-line tool remains hgl.

The default crates.io install does not enable Python interop, so the CLI does not require a local Python dynamic library. Enable it explicitly with cargo install han-lang --features python if you need the 파이썬() / 파이썬_값() built-ins.

To install from a local checkout instead:

git clone https://github.com/xodn348/han.git
cd han
cargo install --path .

After either install path, hgl is available globally.

Verify Installation

hgl --help