extern crate phf_codegen; extern crate regex; extern crate marksman_escape; use std::ascii::AsciiExt; use std::path::Path; mod sqlstate; mod types; fn main() { let path = Path::new("../src"); sqlstate::build(path); types::build(path); } fn snake_to_camel(s: &str) -> String { let mut out = String::new(); let mut upper = true; for ch in s.chars() { if ch == '_' { upper = true; } else { let ch = if upper { upper = false; ch.to_ascii_uppercase() } else { ch }; out.push(ch); } } out }