litext 0.3.0

Just what you need for extracting string literal contents at compile time
Documentation
#[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_extract_litstr_signature() {
    fn _check_extract_litstr(
        input: litext::TokenStream,
    ) -> Result<litext::LitStr, litext::TokenStream> {
        litext::extract_litstr(input)
    }
    assert!(true);
}

#[test]
fn test_litstr_methods() {
    fn _check_litstr(lit: litext::LitStr) {
        let _: &str = lit.value();
        let _: litext::Span = lit.span();
    }
    assert!(true);
}

#[test]
fn test_litstr_value_method() {
    fn _check_litstr_value(lit: litext::LitStr) {
        let _s: &str = lit.value();
    }
    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) {}
    fn _check_litstr(_: litext::LitStr) {}
    assert!(true);
}