1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
use syn::{ parse::{Parse, ParseStream}, Error, Result, }; #[derive(Debug)] pub struct BackendArgs(); impl Parse for BackendArgs { fn parse(input: ParseStream) -> Result<Self> { Err(Error::new( input.span(), "esp32c3 backend does not accept any arguments", )) } }