Wolfgang Bumiller
814014b874
macro: support env vars in package attributes
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-10-13 12:52:02 +02: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
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
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