mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-10-31 18:17:13 +08:00 
			
		
		
		
	feat(router): Add Smart Routing to route payments efficiently (#2665)
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>
This commit is contained in:
		
							
								
								
									
										16
									
								
								crates/euclid_macros/src/lib.rs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								crates/euclid_macros/src/lib.rs
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,16 @@ | ||||
| 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(), | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user
	 Prajjwal Kumar
					Prajjwal Kumar