Skip to content
weylc v0.1.0 · Preview

Download Weyl

For now, build weylc from source. Prebuilt binaries will ship with the first tagged release.

Build from source

  1. 1

    Install the Rust toolchain

    Weyl uses the Rust 2024 edition and needs Rust 1.85 or newer.

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

    Get the source

    Clone the compiler repository.

    git clone https://github.com/weyl-lang/weyl.git
    cd weyl
  3. 3

    Build and install weylc

    Installs weylc into ~/.cargo/bin. The JIT backend uses Cranelift, so no separate LLVM install is needed.

    cargo install --path crates/weylc --locked
  4. 4

    Verify the install

    Check the version and run the physical type checker on a bundled example.

    weylc --version
    weylc check examples/toric_boundary.weyl

Optional components

Lean 4 theorem-proving backend

Powers proof search and counterexample pre-checks for theorems. Install Lean via elan; the toolchain is pinned by lean/lean-toolchain (v4.36.0, with Mathlib pinned to match).

curl https://raw.githubusercontent.com/leanprover/elan/master/elan-init.sh -sSf | sh
cd lean && lake exe cache get && lake build

MCP server (LLM scheduling)

Optional. weylc runs fully without an LLM using its built-in heuristic scheduler; when wanted, serve MCP for one program over stdin/stdout.

weylc mcp --help

Weyl v0.1 · MIT License