I am trying to use syn::parse_file
function from syn
crate.
But, I unable to use it and found a function in the crate with feature
attribute:
#[cfg(all(feature = "parsing", feature = "full"))]
#[cfg_attr(doc_cfg, doc(cfg(all(feature = "parsing", feature = "full"))))]
pub fn parse_file(mut content: &str) -> Result<File> {
// other code
}
Unable to find any discription of this feature.
How do I enable these features in my project?
And use this function.