Skip to main content

ToplevelCalcit

Struct ToplevelCalcit 

Source
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: bool

enable watch mode for direct run mode (default behavior is run once)

§check_only: bool

check-only mode: validate without execution or codegen

§incremental: bool

reuse a successful entry preprocessing result in check-only mode

§keep_going: bool

continue check-only validation across independent definitions

§all_defs: bool

with –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: bool

with –check-only, enforce portable Static Core rules across Browser JS and WASI targets

§deps: bool

with –check-only –ns, admit selected namespaces loaded from dependencies or calcit.core

§summary_only: bool

with –check-only (–ns, –keep-going, or –all-defs), emit compact summary output without passed definition rows

§format: String

check-only report format: human, edn, or json

§disable_stack: bool

disable stack trace for errors

§skip_arity_check: bool

skip arity check in js codegen

§warn_dyn_method: bool

warn on dynamic method calls that cannot be monomorphized

§no_proof_audit: bool

keep strict diagnostics but skip the default assertion-proof audit

§deny_migration_warnings: bool

treat downgraded runtime predicate warnings (W_RUNTIME_TYPE_PREDICATE on (:open :reflect|:decode) boundaries) as blocking errors

§trace_ffi: bool

print FFI dylib calls and callbacks for debugging native crashes

§emit_path: String

entry 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: bool

force reloading libs data during code reload

§watch_dir: Option<String>

specify a path to watch assets changes

§input: String

input source file, defaults to “calcit.cirru”; retired compact.cirru inputs receive migration guidance

§version: bool

print version only

§verbose: bool

print progress details and timing while loading and compiling

§macro_metrics: bool

emit machine-readable macro expansion metrics to stderr on exit

§ffi_metrics: bool

emit machine-readable native async FFI metrics to stderr on exit

§timeout: u64

maximum seconds for one JS/IR compilation (0 disables the limit)

§tips: bool

show full tips output in all commands

§tips_level: Option<String>

control tips verbosity: minimal (default), full, none

§cursor_after: String

cursor feedback after mutating edit/tree commands: none, summary (default), focus

Trait Implementations§

Source§

impl Clone for ToplevelCalcit

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ToplevelCalcit

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl FromArgs for ToplevelCalcit

Source§

fn from_args(__cmd_name: &[&str], __args: &[&str]) -> Result<Self, EarlyExit>

Construct the type from an input set of arguments. Read more
Source§

fn redact_arg_values( __cmd_name: &[&str], __args: &[&str], ) -> Result<Vec<String>, EarlyExit>

Get a String with just the argument names, e.g., options, flags, subcommands, etc, but without the values of the options and arguments. This can be useful as a means to capture anonymous usage statistics without revealing the content entered by the end user. Read more
Source§

impl PartialEq for ToplevelCalcit

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for ToplevelCalcit

Source§

impl TopLevelCommand for ToplevelCalcit

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DynEq for T
where T: PartialEq + Debug + 'static,

Source§

fn as_any(&self) -> &(dyn Any + 'static)

Source§

fn do_eq(&self, rhs: &dyn DynEq) -> bool

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.