mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-10-31 10:06:32 +08:00 
			
		
		
		
	 9b618d2447
			
		
	
	9b618d2447
	
	
	
		
			
			Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: shashank_attarde <shashank.attarde@juspay.in> Co-authored-by: Aprabhat19 <amishaprabhat@gmail.com> Co-authored-by: Amisha Prabhat <55580080+Aprabhat19@users.noreply.github.com>
		
			
				
	
	
		
			17 lines
		
	
	
		
			355 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			355 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| mod inner;
 | |
| 
 | |
| use proc_macro::TokenStream;
 | |
| 
 | |
| #[proc_macro_derive(EnumNums)]
 | |
| pub fn enum_nums(ts: TokenStream) -> TokenStream {
 | |
|     inner::enum_nums_inner(ts)
 | |
| }
 | |
| 
 | |
| #[proc_macro]
 | |
| pub fn knowledge(ts: TokenStream) -> TokenStream {
 | |
|     match inner::knowledge_inner(ts.into()) {
 | |
|         Ok(ts) => ts.into(),
 | |
|         Err(e) => e.into_compile_error().into(),
 | |
|     }
 | |
| }
 |