custom-utils 0.11.0

Provide customized tools based on features
Documentation
1
2
3
4
5
6
7
use anyhow::Result;
use syn::File;


pub async fn parse_file(content: impl AsRef<str>) -> Result<File> {
    Ok(syn::parse_file(content.as_ref())?)
}