accepts-codegen 0.0.1

Rust toolkit for composing synchronous and asynchronous acceptor pipelines
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use proc_macro2::Span;
use syn::{
    Expr, LitStr,
    token::{Else, Eq},
};

pub trait LitStrConstructExt {
    fn from_value(str: &str) -> LitStr;
}

impl LitStrConstructExt for LitStr {
    fn from_value(value: &str) -> LitStr {
        LitStr::new(value, Span::call_site())
    }
}