Skip to content

std/jule/importer

Index

fn New(info: CompileInfo): sema::Importer
struct CompileInfo
enum Compiler
enum CppStd

New

jule
fn New(info: CompileInfo): sema::Importer

Returns new default Jule package importer by the compile information.

CompileInfo

jule
struct CompileInfo {
	// Production compilation.
	Prod: bool

	// Test compilation.
	Test: bool

	// Back-end compiler to use.
	Compiler: Compiler

	// C++ standard to use.
	CppStd: CppStd
}

Compile information.

Compiler

jule
enum Compiler: str {
	Clang: "clang",
	GCC: "gcc",
}

Standard back-end compilers.

CppStd

jule
enum CppStd: str {
	Cpp14: "cpp14",
	Cpp17: "cpp17",
	Cpp20: "cpp20",
}

Supported C++ standards.