safe_drive_msg 0.2.6

A transpiler from ROS2's message types to Rust's types.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
/// Currently, just skip macros.
pub fn preprocess(input: &str) -> String {
    let mut result = String::new();

    for line in input.split('\n') {
        let line = line.trim();
        if !line.starts_with('#') {
            result.push_str(&format!("{line}\n"));
        }
    }

    result
}