pub fn all_sources() -> [(&'static str, &'static str); 7]Expand description
Returns all standard library machine sources as an array of
(filename, source_code) pairs.
This is useful for bulk-compiling the entire standard library or for tooling that needs to enumerate available machines.
ยงExamples
let sources = gust_stdlib::all_sources();
assert_eq!(sources.len(), 7);
// Find a specific machine by filename
let circuit_breaker = sources.iter()
.find(|(name, _)| *name == "circuit_breaker.gu")
.expect("circuit_breaker.gu should exist");
assert!(circuit_breaker.1.contains("machine CircuitBreaker"));