Skip to main content

Module engine

Module engine 

Source

Structs§

BashEngine
CEngine
CSharpEngine
CppEngine
CrystalEngine
DartEngine
ElixirEngine
ExecutionOutcome
GoEngine
GroovyEngine
HaskellEngine
JavaEngine
JavascriptEngine
JuliaEngine
KotlinEngine
LanguageRegistry
LuaEngine
NimEngine
PerlEngine
PhpEngine
PythonEngine
REngine
RubyEngine
RustEngine
SwiftEngine
TypeScriptEngine
ZigEngine

Enums§

ExecutionPayload

Traits§

LanguageEngine
LanguageSession

Functions§

build_install_command
Build a full install command for a package in the given language. Returns None if the language has no package manager.
cache_lookup
Look up a cached binary for the given source hash. Returns Some(path) if a valid cached binary exists.
cache_store
Store a compiled binary in the cache. Copies the binary to the cache directory.
default_language
detect_language_for_source
ensure_known_language
execution_timeout
Default execution timeout: 60 seconds. Override with RUN_TIMEOUT_SECS env var.
hash_source
Hash source code for cache lookup.
package_install_command
Returns the package install command for a language, if one exists. Returns (binary, args_before_package) so the caller can append the package name.
try_cached_execution
Execute a cached binary, returning the Output. Returns None if no cache entry.
wait_with_timeout
Wait for a child process with a timeout. Kills the process if it exceeds the limit. Returns the Output on success, or an error on timeout.