Crate sway_core   Copy item path  Source  pub use asm_generation::from_ir::compile_ir_context_to_finalized_asm ;pub use asm_generation::CompiledBytecode ;pub use asm_generation::FinalizedEntry ;pub use semantic_analysis::namespace ;pub use semantic_analysis::namespace::Namespace ;pub use language::Programs ;pub use engine_threading::Engines ;pub use obs_engine::ObservabilityEngine ;pub use obs_engine::Observer ;pub use type_system ::*;abi_generation  asm_generation  compiler_generated  This module encapsulates generation of various elements generated internally by the compiler,
e.g., unique names of variables in desugared code and similar.
It also provides functions for inspecting such generated elements. decl_engine  The DeclEngine  allows the compiler to add a layer of
separation between AST nodes  and
declarations. engine_threading  error Tools related to handling/recovering from Sway compile errors and reporting them to the user. fuel_prelude  ir_generation  language marker_traits  obs_engine  query_engine  semantic_analysis  Type checking for Sway. source_map  transform type_system  types has_changes  BuildConfig  Configuration for the overall build and compilation process. CompiledAsm  LspConfig PanicOccurrence  A possible occurrence of a panic expression that is located in code at PanicOccurrence::loc . PanickingCallOccurrence   Represents a function call that could panic during execution.
E.g., for the following code: ParsedModuleTree   PrintAsm  Which ASM to print. PrintIr Which IR states to print. Submodule Backtrace BuildTarget  DbgGeneration OptLevel PRELUDE_CONFIGURABLES_OFFSET_IN_BYTES     Offset (in bytes) of the CONFIGURABLES_OFFSET section in the prelude. PRELUDE_CONFIGURABLES_SIZE_IN_BYTES     Size of the prelude’s CONFIGURABLES_OFFSET section, in bytes. PRELUDE_SIZE_IN_BYTES    Total size of the prelude in bytes. Instructions start right after. asm_to_bytecode   Given the assembly (opcodes), compile to CompiledBytecode , containing the asm in bytecode form. ast_to_asm   Given an AST compilation result, try compiling to a CompiledAsm,
containing the asm in opcode form (not raw bytes/bytecode). build_module_dep_graph    compile_to_asm   Given input Sway source code, try compiling to a CompiledAsm,
containing the asm in opcode form (not raw bytes/bytecode). compile_to_ast   compile_to_bytecode   Given input Sway source code, compile to CompiledBytecode , containing the asm in bytecode form. dump_trait_impls_for_typename     parse Given an input Arc<str> and an optional BuildConfig , parse the input into a lexed::LexedProgram  and parsed::ParseProgram . parse_tree_type   Parses the tree kind in the input provided. parsed_to_ast   set_bytecode_configurables_offset    Given bytecode, overwrite the existing offset to configurables offset in the prelude with the given one. write_dwarf  PanicOccurrences  PanicOccurrence s mapped to their corresponding panic error codes.PanickingCallOccurrences   PanickingCallOccurrence s mapped to their corresponding panicking call codes.SourceHash  Submodules Contains the lexed and parsed submodules ‘deps’ of a module.