Skip to main content

Crate rucc

Crate rucc 

Source
Expand description

rucc, an optimizing C compiler.

Design: spec/00-README.md. Layer rank 13, see spec/18-package-layout.md.

This crate is the entry point, both for the rucc binary and for anyone embedding the compiler. It re-exports the driver and nothing else: the pipeline crates are tier 3 in spec/18-package-layout.md section 18.5 and are published so the workspace can be published, not because their APIs are stable.

The stable surface is the binary’s command line behaviour, per section 18.5 tier 1.

Structs§

CliError
Why a command line was rejected.

Enums§

Action
What the command line asked for.

Constants§

USAGE
Usage text.
VERSION
The compiler’s version, taken from the workspace manifest.

Functions§

parse_args
Parses a command line, without the program name.
print_config
Renders the resolved configuration.
run
Runs the driver and returns the process exit code.