pub struct ToplevelCalcit {Show 32 fields
pub subcommand: Option<CalcitCommand>,
pub watch: bool,
pub check_only: bool,
pub incremental: bool,
pub keep_going: bool,
pub all_defs: bool,
pub ns: Vec<String>,
pub static_core: bool,
pub deps: bool,
pub summary_only: bool,
pub format: String,
pub disable_stack: bool,
pub skip_arity_check: bool,
pub warn_dyn_method: bool,
pub no_proof_audit: bool,
pub deny_migration_warnings: bool,
pub trace_ffi: bool,
pub emit_path: String,
pub init_fn: Option<String>,
pub reload_fn: Option<String>,
pub entry: Option<String>,
pub reload_libs: bool,
pub watch_dir: Option<String>,
pub input: String,
pub version: bool,
pub verbose: bool,
pub macro_metrics: bool,
pub ffi_metrics: bool,
pub timeout: u64,
pub tips: bool,
pub tips_level: Option<String>,
pub cursor_after: String,
}Expand description
Top-level command.
Fields§
§subcommand: Option<CalcitCommand>§watch: boolenable watch mode for direct run mode (default behavior is run once)
check_only: boolcheck-only mode: validate without execution or codegen
incremental: boolreuse a successful entry preprocessing result in check-only mode
keep_going: boolcontinue check-only validation across independent definitions
all_defs: boolwith –check-only, also check every definition in project namespaces (not only entry-reachable ones); implies –keep-going
ns: Vec<String>with –check-only, check every definition in this public namespace for the active entry target; repeat for shared and target-specific namespaces
static_core: boolwith –check-only, enforce portable Static Core rules across Browser JS and WASI targets
deps: boolwith –check-only –ns, admit selected namespaces loaded from dependencies or calcit.core
summary_only: boolwith –check-only (–ns, –keep-going, or –all-defs), emit compact summary output without passed definition rows
format: Stringcheck-only report format: human, edn, or json
disable_stack: booldisable stack trace for errors
skip_arity_check: boolskip arity check in js codegen
warn_dyn_method: boolwarn on dynamic method calls that cannot be monomorphized
no_proof_audit: boolkeep strict diagnostics but skip the default assertion-proof audit
deny_migration_warnings: booltreat downgraded runtime predicate warnings (W_RUNTIME_TYPE_PREDICATE on (:open :reflect|:decode) boundaries) as blocking errors
trace_ffi: boolprint FFI dylib calls and callbacks for debugging native crashes
emit_path: Stringentry file path, defaults to “js-out/”
init_fn: Option<String>specify init_fn which is main function
reload_fn: Option<String>specify reload_fn which is called after hot reload
entry: Option<String>select an entry; defaults to “default”
reload_libs: boolforce reloading libs data during code reload
watch_dir: Option<String>specify a path to watch assets changes
input: Stringinput source file, defaults to “calcit.cirru”; retired compact.cirru inputs receive migration guidance
version: boolprint version only
verbose: boolprint progress details and timing while loading and compiling
macro_metrics: boolemit machine-readable macro expansion metrics to stderr on exit
ffi_metrics: boolemit machine-readable native async FFI metrics to stderr on exit
timeout: u64maximum seconds for one JS/IR compilation (0 disables the limit)
tips: boolshow full tips output in all commands
tips_level: Option<String>control tips verbosity: minimal (default), full, none
cursor_after: Stringcursor feedback after mutating edit/tree commands: none, summary (default), focus