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
use syn::{Ident, Path, PathSegment, punctuated::Punctuated, token::PathSep};

use crate::common::syn::ext::{
    IdentConstructExt, PathConstructExt, PathSegmentConstructExt, PunctuatedConstructExt,
};

pub fn core_path() -> Path {
    Path::from_parts(
        Some(PathSep::default()),
        Punctuated::from_value(PathSegment::from_ident(Ident::from_str("core"))),
    )
}