Skip to main content

Module parser

Module parser 

Source
Expand description

Hand-rolled TOML parser that extracts [[upstream]], [[route]], [[tcp_proxy]], [[udp_proxy]], [[ws_proxy]] sections from rws.config.toml into a flat SectionMap.

The output is a HashMap<String, Vec<(String, String)>> where each key is a section path (e.g. "route[0].action.proxy") and each value is the list of key-value pairs found in that section.

Functions§

parse
Parse a TOML string into a SectionMap.

Type Aliases§

SectionMap
Section path → list of (key, value) pairs.