Skip to main content

Crate ruso_runtime

Crate ruso_runtime 

Source
Expand description

Ruso VM: execute compiled bytecode against HTTP, DNS, TCP, and UDP targets.

Compilers (e.g. ruso-script) must target opcode::VERSION and the instruction set documented in opcode.

§Developer documentation

Re-exports§

pub use contract::BodyValue;
pub use contract::CmpOp;
pub use contract::CmpValue;
pub use contract::EvidenceKind;
pub use contract::ExtractSource;
pub use contract::FieldKind;
pub use contract::HttpMethod;
pub use contract::InlinePart;
pub use contract::InlinePartBody;
pub use contract::MatchPredicate;
pub use contract::ObjectBody;
pub use contract::QualifiedField;
pub use contract::QualifiedMatch;
pub use contract::Severity;
pub use opcode::BytecodeProgram;
pub use opcode::MAGIC;
pub use opcode::Opcode;
pub use opcode::Pc;
pub use opcode::VERSION;
pub use util::truncate_str;

Modules§

contract
Shared types embedded in Ruso bytecode (constant pools and probe specs).
disasm
Human-readable bytecode disassembly.
opcode
Opcode and bytecode wire-format contract (version 1).
util
Shared utility helpers with no domain dependencies.

Structs§

CheckMetadata
ExecutionResult
Executor
ExecutorConfig
Finding
HttpRequestSpec
PortCache
PortCheck
Result of probing one host:port (from cache or live TCP connect).
ProgramSpec
Report
SocketProbeSpec
Generic socket options (shared by dns/tcp/udp probes).

Enums§

BytecodeError
ProbeKind
RuntimeError
VariableValue

Functions§

build_client
bytes_to_hex
bytes_to_hex_dump
decode_bytecode
encode_bytecode
format_human
hex_to_bytes
load_bytecode_input
Decode a hex string into raw bytecode bytes.
parse_duration
Parse a duration string with one of the supported suffixes: