Ruta graveolens  ·  notes from a language experiment  ·  cultivated since 2025

E0705: Std lib not found

CodeCategoryStability
E0705IntrinsicPermanent

Explanation

@import("std") requested the trusted standard-library facade, but neither the project's vendored standard library nor the configured toolchain standard library supplied it.

Likely cause

The Rue installation is incomplete, RUE_STD_PATH does not name a valid standard-library directory, or a source-only compiler embedding requested std without supplying trusted standard-library sources.

Examples

Import std when no standard library is available

// --- main.rue
const std = @import("std");
fn main() -> i32 { 0 }

Remove an unnecessary standard-library import

// --- main.rue
fn main() -> i32 { 0 }

References