Expand description
Parse Ruso Scripting Language (RSL) source into an AST and compile to
ruso-runtime bytecode.
§Developer documentation
Re-exports§
pub use script::ast;pub use script::ast::Program;pub use script::ast::Stmt;pub use script::ParseError;pub use script::parse;
Modules§
Structs§
- Bytecode
Program - Compiled script ready for the executor (probes, metadata, and instruction stream).
- Qualified
Match - A single matcher: a response field tested against a predicate.
Enums§
- Compile
Error - Evidence
Kind - A proof string attached to a finding. Every rule names an explicit source
(
.body,.response, or.header "<name>"); an optionalregexextracts capture group 1 (or the whole match) from that source instead of taking it whole. - Extract
Source - Where an
extractpulls a value from (HTTP only). - Load
Error - Error from
load_program: reading the file failed, or its contents did not parse. - Severity
- Finding severity, in ascending order of urgency (
Infois the catch-all used when a check declares noseverity).
Functions§
- compile
- compile_
program - Compile a parsed
Programinto aBytecodeProgram. - compile_
to_ bytes - Compile a
Programand serialize it to a raw.rbcbyte buffer. - encode_
bytecode - load_
program - Read and parse an
.rslfile into aProgramAST. - run
- Compile a
Programand run it against a single target in one step. - run_
bytecode - Run an already-compiled
BytecodeProgramagainst a single target. - run_
bytes - Decode a raw
.rbcbyte buffer and run it against a single target. - run_
program - Run a pre-shared
Arc<BytecodeProgram>against a single target.