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
macro_rules! take_until {
    ($input:expr, $stop:tt) => {{
        let mut out = proc_macro2::TokenStream::new();
        while !$input.is_empty() && !$input.peek(syn::Token![$stop]) {
            let tt: proc_macro2::TokenTree = $input.parse()?;
            out.extend(std::iter::once(tt.into()));
        }
        out
    }};
}
pub(crate) use take_until;