Expand description
Stable public facade over xrat’s reusable proxy-management logic.
This crate intentionally exposes a curated subset of the workspace: domain
types, subscription/protocol parsing, engine config generation, and probing.
Experimental application services require the services feature.
use xrat_sdk::{config::parse_link, engines::xray::generate_runtime_config};
let node = parse_link(
"vless://11111111-1111-1111-1111-111111111111@example.com:443#edge"
)?.expect("supported link");
let config = generate_runtime_config(&node, 1080, Some(8080))?;
let json = serde_json::to_string_pretty(&config)?;
assert!(json.contains("outbounds"));