ui

source of std::process

1// The running process's environment.2//3// `arguments` is a lang item (LANGUAGE_SPEC.md section 6.1a) at the4// canonical path std::process::arguments: this declaration provides the5// signature, and the compiler supplies the value. Natively the program's6// entry wrapper captures argc/argv at startup; under `alloyc run` the7// interpreter serves the arguments following the program path. In both8// cases the first argument is the program's own path, matching C.910// The command line, one borrowed byte slice per argument, valid for the11// whole program run. Calls are replaced by the compiler; this body never12// executes. Unavailable at compile time (section 7.2).13exp fn arguments() -> &[&[u8]] {14    return &[];15}1617// The platform the program is built for, `linux-x86_64`, `linux-aarch64`,18// `windows-x86_64`, `macos-arm64`, `macos-x86_64`, `wasi-wasm32` or19// `web-wasm32` (section 6.4). The compiler replaces each call with the20// build's target, so an `if` comparing it with a string literal builds21// only the branch taken and the other may name what the target lacks.22exp fn target() -> &[u8] {23    return &"linux-x86_64";24}