Calling & Building / Toolchain

Toolchain

LSP Server

aero --lsp starts a JSON-RPC 2.0 LSP server (stdin/stdout) providing:

  • diagnostics
  • code completion
  • go-to-definition
  • hover
  • A companion VS Code extension (aero-lang-vscode, offline .vsix install, includes syntax highlighting + LSP).

    aero fmt

    rustfmt-style formatting:

    aero fmt main.aero            # 格式化
    aero fmt main.aero --check    # 只校验,不写回
    aero fmt main.aero --width 100 --indent 4

    aero clippy (100+ rules)

    Static checking, categorized as: Naming / Correctness / Style / Complexity / Perf / Pedantic, with severity levels Error / Warning / Style / Note.

    Example rules:

  • Naming: fn_non_snake_case, var_non_snake_case, struct_non_upper_camel, const_non_screaming_snake
  • Correctness: division_by_zero, float_equality, same_then_else, unreachable_after_return, infinite_loop_no_break
  • Various other Style / Complexity / Perf / Pedantic rules
  • aero clippy main.aero

    aero cov Coverage

    Instruments every statement → runs → outputs per-line hit counts and the total coverage percentage (only counting user source code).

    Aero 文档 · 基于 Aero 1.2.0 文档整理 · MIT
    SereinTeam