Crate waspy

Crate waspy 

Source
Expand description

Waspy: A Python to WebAssembly compiler written in Rust.

Waspy translates Python functions into WebAssembly, allowing Python code to run in browsers and other WebAssembly environments.

Re-exports§

pub use crate::core::options::CompilerOptions;
pub use crate::core::options::Verbosity;
pub use crate::analysis::metadata::FunctionSignature;
pub use crate::core::parser;

Modules§

analysis
Code analysis modules for Waspy.
compiler
core
Core functionality for the Waspy compiler.
ir
optimize
Optimization modules for Waspy.
stdlib
utils
Utility modules for Waspy.

Macros§

log_debug
Log a debug message (only shown with –debug)
log_error
Log an error message (always shown)
log_info
Log an info message (shown at normal verbosity and above)
log_verbose
Log a verbose message (shown with –verbose or –debug)
log_warn
Log a warning message (always shown unless quiet)

Functions§

compile_multiple_python_files
Compile multiple Python source files into a single WASM binary.
compile_multiple_python_files_with_config
Compile multiple Python source files into a single WASM binary with config awareness.
compile_multiple_python_files_with_options
Compile multiple Python source files with options.
compile_python_project
Compile a Python project directory to WebAssembly.
compile_python_project_with_options
Compile a Python project with options.
compile_python_to_wasm
Compile Python source code into a WASM binary using default options.
compile_python_to_wasm_with_options
Compile Python source code into a WASM binary with specified options.
get_python_file_metadata
Get metadata about a Python source file without compiling to WASM. Returns a list of function signatures for documentation or analysis.
get_python_project_metadata
Get metadata about an entire Python project. Returns a list of function signatures for all files.
type_to_string
Convert IR type to string