litext 0.2.0

Just what you need for extracting string literal contents at compile time
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#[test]
fn test_extract_signature() {
    // Just verify the extract function exists and has correct signature
    fn _check_extract(input: litext::TokenStream) -> Result<String, litext::TokenStream> {
        litext::extract(input)
    }
    assert!(true);
}

#[test]
fn test_public_types_exported() {
    // Verify public re-exports exist by using type annotations
    fn _check_ts(_: litext::TokenStream) {}
    fn _check_tt(_: litext::TokenTree) {}
    fn _check_lit(_: litext::Literal) {}
    assert!(true);
}