Wolfgang Bumiller 
							
						 
					 
					
						
						
						
						
							
						
						
							740eda0643 
							
						 
					 
					
						
						
							
							adjust path for DynaLoader  
						
						 
						
						... 
						
						
						
						We usually have multiple packages but only a single library,
so rather than making package look in subdirectories named
after them, just look in the toplevel `auto/` directory.
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com> 
						
					 
					
						2021-02-22 14:12:25 +01:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Wolfgang Bumiller 
							
						 
					 
					
						
						
						
						
							
						
						
							705d6989ad 
							
						 
					 
					
						
						
							
							macro: support tuple return types in functions  
						
						 
						
						... 
						
						
						
						These are now *list* return types in perl.
However, currently there is no support for 'wantarray' or
lists of dynamic length.
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com> 
						
					 
					
						2021-02-16 10:39:37 +01:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Wolfgang Bumiller 
							
						 
					 
					
						
						
						
						
							
						
						
							fa4d4a654c 
							
						 
					 
					
						
						
							
							macro: make generated helpers #[doc(hidden)]  
						
						 
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com> 
						
					 
					
						2021-02-15 14:05:02 +01:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Wolfgang Bumiller 
							
						 
					 
					
						
						
						
						
							
						
						
							7de9fdf07b 
							
						 
					 
					
						
						
							
							introduce try_from_ref argument attribute  
						
						 
						
						... 
						
						
						
						and document attributes in the #[export] macro documentation
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com> 
						
					 
					
						2020-11-27 15:35:08 +01:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Wolfgang Bumiller 
							
						 
					 
					
						
						
						
						
							
						
						
							241e69eed8 
							
						 
					 
					
						
						
							
							guard '-L./target/debug' lib path by debug_assertions  
						
						 
						
						... 
						
						
						
						A release build shouldn't add the local search path for
libraries to the perl modules.
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com> 
						
					 
					
						2020-11-27 13:03:46 +01:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Wolfgang Bumiller 
							
						 
					 
					
						
						
						
						
							
						
						
							81e9f75763 
							
						 
					 
					
						
						
							
							clippy lints  
						
						 
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com> 
						
					 
					
						2020-11-27 12:06:01 +01:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Wolfgang Bumiller 
							
						 
					 
					
						
						
						
						
							
						
						
							dd7f83c3ee 
							
						 
					 
					
						
						
							
							deserialize by reference  
						
						 
						
						... 
						
						
						
						Allow deserializing things such as `&[u8]` to reference the
original data instead of requiring a `Vec<u8>` instead.
Introduces `perlmod::from_ref_value` next to
`perlmod::from_value` with a new signature.
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com> 
						
					 
					
						2020-11-26 13:50:07 +01:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Wolfgang Bumiller 
							
						 
					 
					
						
						
						
						
							
						
						
							8a062e94c3 
							
						 
					 
					
						
						
							
							more doc improvements  
						
						 
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com> 
						
					 
					
						2020-11-25 15:13:57 +01:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Wolfgang Bumiller 
							
						 
					 
					
						
						
						
						
							
						
						
							2991a46a31 
							
						 
					 
					
						
						
							
							fix #[export(name=...)], drop deprecated make_package  
						
						 
						
						... 
						
						
						
						The `make_package` macro is tedious to use. We now simply
depend on new-enough rustc for `package` to work.
The change to #[export] allows writing:
    #[export(name = "DESTROY")]
    fn destroy(#[raw] this: Value) { ... }
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com> 
						
					 
					
						2020-11-25 14:35:34 +01:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Wolfgang Bumiller 
							
						 
					 
					
						
						
						
						
							
						
						
							3348e1b840 
							
						 
					 
					
						
						
							
							perl namespacing, since we can bless now  
						
						 
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com> 
						
					 
					
						2020-11-24 11:13:55 +01:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Wolfgang Bumiller 
							
						 
					 
					
						
						
						
						
							
						
						
							913a8a72ce 
							
						 
					 
					
						
						
							
							support functions without return values  
						
						 
						
						... 
						
						
						
						this makes for surprisingly ugly code
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com> 
						
					 
					
						2020-11-24 11:05:55 +01:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Wolfgang Bumiller 
							
						 
					 
					
						
						
						
						
							
						
						
							0cdb12e277 
							
						 
					 
					
						
						
							
							add support for raw parameters  
						
						 
						
						... 
						
						
						
						#[export]
    fn foo(#[raw] this: Value) -> Result<(), Error>;
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com> 
						
					 
					
						2020-11-24 10:36:03 +01:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Wolfgang Bumiller 
							
						 
					 
					
						
						
						
						
							
						
						
							29e61fa65e 
							
						 
					 
					
						
						
							
							add 'raw_return' function attribute  
						
						 
						
						... 
						
						
						
						A function declared with a raw_return attribute like this:
    #[export(raw_return)]
    fn foo() -> Result<Value, Error>;
will not perform serialization on the 'Value', but return
the "raw" value to perl. This allows returning blessed
values.
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com> 
						
					 
					
						2020-11-24 09:37:59 +01:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Wolfgang Bumiller 
							
						 
					 
					
						
						
						
						
							
						
						
							568aba2b75 
							
						 
					 
					
						
						
							
							fix export() attribute arg parsing  
						
						 
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com> 
						
					 
					
						2020-11-24 09:23:12 +01:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Wolfgang Bumiller 
							
						 
					 
					
						
						
						
						
							
						
						
							9525acd643 
							
						 
					 
					
						
						
							
							add some function name mangling to xs exports  
						
						 
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com> 
						
					 
					
						2020-10-16 11:08:50 +02:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Wolfgang Bumiller 
							
						 
					 
					
						
						
						
						
							
						
						
							fb6b493d63 
							
						 
					 
					
						
						
							
							switch from failure to anyhow  
						
						 
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com> 
						
					 
					
						2020-04-20 12:38:49 +02:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Wolfgang Bumiller 
							
						 
					 
					
						
						
						
						
							
						
						
							e199764961 
							
						 
					 
					
						
						
							
							macro: verify parameter count  
						
						 
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com> 
						
					 
					
						2020-01-13 14:21:45 +01:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Wolfgang Bumiller 
							
						 
					 
					
						
						
						
						
							
						
						
							b813397be8 
							
						 
					 
					
						
						
							
							macro: derive library name from Cargo.toml  
						
						 
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com> 
						
					 
					
						2020-01-10 12:24:32 +01:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Wolfgang Bumiller 
							
						 
					 
					
						
						
						
						
							
						
						
							f0475cd5a1 
							
						 
					 
					
						
						
							
							silence cippy and add some ffi documentation  
						
						 
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com> 
						
					 
					
						2020-01-10 11:55:48 +01:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Wolfgang Bumiller 
							
						 
					 
					
						
						
						
						
							
						
						
							ac1ed61147 
							
						 
					 
					
						
						
							
							crate level documentation  
						
						 
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com> 
						
					 
					
						2020-01-10 11:37:22 +01:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Wolfgang Bumiller 
							
						 
					 
					
						
						
						
						
							
						
						
							96b50cd846 
							
						 
					 
					
						
						
							
							macro: pull in 'perlmod' dependency in for doctests  
						
						 
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com> 
						
					 
					
						2020-01-10 11:28:05 +01:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Wolfgang Bumiller 
							
						 
					 
					
						
						
						
						
							
						
						
							1b2a3cc024 
							
						 
					 
					
						
						
							
							macro: document package  
						
						 
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com> 
						
					 
					
						2020-01-10 11:22:49 +01:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Wolfgang Bumiller 
							
						 
					 
					
						
						
						
						
							
						
						
							0272d6cd05 
							
						 
					 
					
						
						
							
							macro: document make_package  
						
						 
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com> 
						
					 
					
						2020-01-10 11:17:53 +01:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Wolfgang Bumiller 
							
						 
					 
					
						
						
						
						
							
						
						
							06a18771dd 
							
						 
					 
					
						
						
							
							make_package macro implementation  
						
						 
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com> 
						
					 
					
						2020-01-10 10:47:42 +01:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Wolfgang Bumiller 
							
						 
					 
					
						
						
						
						
							
						
						
							b03c149435 
							
						 
					 
					
						
						
							
							macro: some refactoring  
						
						 
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com> 
						
					 
					
						2020-01-10 10:18:42 +01:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Wolfgang Bumiller 
							
						 
					 
					
						
						
						
						
							
						
						
							f7d912bd07 
							
						 
					 
					
						
						
							
							macro: factor out package writing  
						
						 
						
						... 
						
						
						
						to reuse in the stable-rust make_package macro
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com> 
						
					 
					
						2020-01-10 10:10:47 +01:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Wolfgang Bumiller 
							
						 
					 
					
						
						
						
						
							
						
						
							abdf721d90 
							
						 
					 
					
						
						
							
							macro: add export macro, support renaming xs functions  
						
						 
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com> 
						
					 
					
						2020-01-10 09:58:07 +01:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Wolfgang Bumiller 
							
						 
					 
					
						
						
						
						
							
						
						
							f7cc8c37fc 
							
						 
					 
					
						
						
							
							import  
						
						 
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com> 
						
					 
					
						2020-01-09 15:01:14 +01:00