]> git.proxmox.com Git - perlmod.git/log
perlmod.git
13 months agomacro: ensure bootstrap functions happen only once
Wolfgang Bumiller [Tue, 25 Jul 2023 11:31:34 +0000 (13:31 +0200)]
macro: ensure bootstrap functions happen only once

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
13 months agoadd 'instantiate_magic_result' to allow error handling
Wolfgang Bumiller [Tue, 25 Jul 2023 08:22:30 +0000 (10:22 +0200)]
add 'instantiate_magic_result' to allow error handling

The previous `instantiate_magic!` macro contained a '?' and thus tried
to return with an error. This is inconvenient when trying to work with
specific serialized error types.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
16 months agobump perlmod to 0.13.2-1 and perlmod-macro to 0.8.1-1
Wolfgang Bumiller [Tue, 2 May 2023 09:47:13 +0000 (11:47 +0200)]
bump perlmod to 0.13.2-1 and perlmod-macro to 0.8.1-1

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
16 months agouse workspace package variables
Wolfgang Bumiller [Wed, 10 May 2023 08:15:58 +0000 (10:15 +0200)]
use workspace package variables

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
16 months agoperlmod-bin package for pm file generation
Wolfgang Bumiller [Mon, 8 May 2023 07:38:47 +0000 (09:38 +0200)]
perlmod-bin package for pm file generation

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
16 months agoadd ability to set the errno value
Wolfgang Bumiller [Tue, 2 May 2023 12:31:47 +0000 (14:31 +0200)]
add ability to set the errno value

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
16 months agomacro: add serialize_error attribute
Wolfgang Bumiller [Tue, 2 May 2023 07:38:39 +0000 (09:38 +0200)]
macro: add serialize_error attribute

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
16 months agomacro: fix syntax error in non-result tuple case
Wolfgang Bumiller [Tue, 2 May 2023 07:39:27 +0000 (09:39 +0200)]
macro: fix syntax error in non-result tuple case

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
16 months agobuildsys: make check should test test.pl output
Wolfgang Bumiller [Tue, 2 May 2023 07:35:22 +0000 (09:35 +0200)]
buildsys: make check should test test.pl output

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
16 months agobump d/control
Wolfgang Bumiller [Tue, 25 Apr 2023 08:00:15 +0000 (10:00 +0200)]
bump d/control

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
21 months agoclippy fixes
Wolfgang Bumiller [Fri, 9 Dec 2022 10:24:34 +0000 (11:24 +0100)]
clippy fixes

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
23 months agoclippy fixups
Wolfgang Bumiller [Thu, 22 Sep 2022 08:00:33 +0000 (10:00 +0200)]
clippy fixups

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoclippy fixes
Wolfgang Bumiller [Mon, 1 Aug 2022 08:41:11 +0000 (10:41 +0200)]
clippy fixes

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoclippy fixups
Wolfgang Bumiller [Fri, 10 Jun 2022 09:54:10 +0000 (11:54 +0200)]
clippy fixups

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoclippy: don't explicitly drop args in generated code
Wolfgang Bumiller [Fri, 10 Jun 2022 09:51:42 +0000 (11:51 +0200)]
clippy: don't explicitly drop args in generated code

While code seems to still compile, this was initially done
to explicitly get rid of potential borrows and doesn't seem
to be necessary anymore?

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agotest: write modules at build time
Wolfgang Bumiller [Tue, 29 Mar 2022 08:55:41 +0000 (10:55 +0200)]
test: write modules at build time

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agobump perlmod to 0.13.1-1
Wolfgang Bumiller [Fri, 25 Mar 2022 14:46:08 +0000 (15:46 +0100)]
bump perlmod to 0.13.1-1

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoperlmod: expose ser::is_active
Wolfgang Bumiller [Fri, 25 Mar 2022 14:45:11 +0000 (15:45 +0100)]
perlmod: expose ser::is_active

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agobump perlmod to 0.13.0-1
Wolfgang Bumiller [Fri, 4 Mar 2022 08:02:55 +0000 (09:02 +0100)]
bump perlmod to 0.13.0-1

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agofix utf8 support in substr_from_str_slice
Wolfgang Bumiller [Wed, 2 Mar 2022 12:47:03 +0000 (13:47 +0100)]
fix utf8 support in substr_from_str_slice

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agodrop Result from substr_from_str_slice
Wolfgang Bumiller [Wed, 2 Mar 2022 11:45:29 +0000 (12:45 +0100)]
drop Result from substr_from_str_slice

and add `merge_str_slice` helper

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agobump perlmod to 0.12.2-1
Wolfgang Bumiller [Tue, 1 Mar 2022 14:13:34 +0000 (15:13 +0100)]
bump perlmod to 0.12.2-1

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoallow string suffixes in substr_from_str_slice
Wolfgang Bumiller [Tue, 1 Mar 2022 14:11:41 +0000 (15:11 +0100)]
allow string suffixes in substr_from_str_slice

the range check failed if the substr was a suffix due to the
range being exclusive on the end and end being the byte
after the last one

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agobump perlmod to 0.12.1-1
Wolfgang Bumiller [Tue, 1 Mar 2022 13:42:14 +0000 (14:42 +0100)]
bump perlmod to 0.12.1-1

while this is technically an API break this is new and
not-yet used and we're in the 0.x versions after all...

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agomove substr_from_str_slice from ScalarRef to Scalar
Wolfgang Bumiller [Tue, 1 Mar 2022 13:41:27 +0000 (14:41 +0100)]
move substr_from_str_slice from ScalarRef to Scalar

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agobump perlmod to 0.12.0-1 and perlmod-macro to 0.8.0-1
Wolfgang Bumiller [Fri, 25 Feb 2022 14:51:52 +0000 (15:51 +0100)]
bump perlmod to 0.12.0-1 and perlmod-macro to 0.8.0-1

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoupdate readme
Wolfgang Bumiller [Mon, 28 Feb 2022 08:47:26 +0000 (09:47 +0100)]
update readme

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agomacro: add a write attribute to packages
Wolfgang Bumiller [Fri, 25 Feb 2022 14:45:56 +0000 (15:45 +0100)]
macro: add a write attribute to packages

the .pm file now gets written if either 'write=true' or
'file' is set, setting just 'lib' won't trigger a write
anymore

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agomacro: rename boot symbol to boot_<module>
Wolfgang Bumiller [Thu, 24 Feb 2022 10:43:21 +0000 (11:43 +0100)]
macro: rename boot symbol to boot_<module>

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agomacro: only write package files if requested
Wolfgang Bumiller [Thu, 24 Feb 2022 10:43:05 +0000 (11:43 +0100)]
macro: only write package files if requested

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agomacro: drop span hack from error handling
Wolfgang Bumiller [Thu, 24 Feb 2022 10:42:38 +0000 (11:42 +0100)]
macro: drop span hack from error handling

copying the input doesn't seem to be required anymore

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoexperimental access to defstash
Wolfgang Bumiller [Thu, 24 Feb 2022 10:04:20 +0000 (11:04 +0100)]
experimental access to defstash

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoexperimental direct substr support
Wolfgang Bumiller [Tue, 22 Feb 2022 14:21:41 +0000 (15:21 +0100)]
experimental direct substr support

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agofix 'cv' type in test
Wolfgang Bumiller [Tue, 22 Feb 2022 11:50:45 +0000 (12:50 +0100)]
fix 'cv' type in test

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agodoc updates
Wolfgang Bumiller [Thu, 3 Feb 2022 08:41:19 +0000 (09:41 +0100)]
doc updates

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agobump perlmod & macro to 0.11.0-1 and 0.7.0-1
Wolfgang Bumiller [Tue, 25 Jan 2022 08:32:25 +0000 (09:32 +0100)]
bump perlmod & macro to 0.11.0-1 and 0.7.0-1

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agodoc fixup
Wolfgang Bumiller [Thu, 13 Jan 2022 13:42:56 +0000 (14:42 +0100)]
doc fixup

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agocargo fmt
Wolfgang Bumiller [Mon, 10 Jan 2022 11:50:11 +0000 (12:50 +0100)]
cargo fmt

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agorustfmt.toml: edition 2021
Wolfgang Bumiller [Mon, 10 Jan 2022 11:49:49 +0000 (12:49 +0100)]
rustfmt.toml: edition 2021

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agomacro: pass 'cv' as Value
Wolfgang Bumiller [Fri, 7 Jan 2022 14:59:07 +0000 (15:59 +0100)]
macro: pass 'cv' as Value

to reduce the amount of required unsafe blocks

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agomacro: use raw pointer for CV parameter
Wolfgang Bumiller [Fri, 7 Jan 2022 14:54:49 +0000 (15:54 +0100)]
macro: use raw pointer for CV parameter

so generated xsubs are actually compatible with
Value::new_xsub

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agomacro: fix multiplicity parameter type
Wolfgang Bumiller [Fri, 7 Jan 2022 14:51:32 +0000 (15:51 +0100)]
macro: fix multiplicity parameter type

use ffi::Interpreter, same as what perlmod does via the
perl_fn macro

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agodoc updates
Wolfgang Bumiller [Wed, 5 Jan 2022 08:49:17 +0000 (09:49 +0100)]
doc updates

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agomacro: expose the 'cv' as parameter on exports
Wolfgang Bumiller [Tue, 4 Jan 2022 11:36:48 +0000 (12:36 +0100)]
macro: expose the 'cv' as parameter on exports

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agocleanup
Wolfgang Bumiller [Fri, 7 Jan 2022 08:11:41 +0000 (09:11 +0100)]
cleanup

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoperlmod: ffi: support visibility in perl_fn
Wolfgang Bumiller [Tue, 4 Jan 2022 08:55:53 +0000 (09:55 +0100)]
perlmod: ffi: support visibility in perl_fn

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agomacro: export: copy use chosen visibility
Wolfgang Bumiller [Wed, 22 Dec 2021 09:12:48 +0000 (10:12 +0100)]
macro: export: copy use chosen visibility

when using the export macro directly without a package we
previously always used
    #[no_mangle]
    pub extern "C"
now instead of 'pub' we copy the original function's
visibility

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agomacro: fixup export visibility
Wolfgang Bumiller [Wed, 22 Dec 2021 08:58:02 +0000 (09:58 +0100)]
macro: fixup export visibility

commi 54919078765f was incomplete, this fixes up the
remaining 2 cases

Fixes: 54919078765f ("don't export xs wrappers from modules")
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoperlmod: doc fixups
Wolfgang Bumiller [Thu, 23 Dec 2021 09:40:54 +0000 (10:40 +0100)]
perlmod: doc fixups

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agobump d/control
Wolfgang Bumiller [Fri, 17 Dec 2021 08:22:58 +0000 (09:22 +0100)]
bump d/control

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agobump perlmod to 0.10.1-1
Wolfgang Bumiller [Fri, 17 Dec 2021 08:22:58 +0000 (09:22 +0100)]
bump perlmod to 0.10.1-1

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoperlmod: deny unsafe_op_in_unsafe_fn
Wolfgang Bumiller [Fri, 17 Dec 2021 08:20:58 +0000 (09:20 +0100)]
perlmod: deny unsafe_op_in_unsafe_fn

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoperlmod: add Value::new_xsub as an unsafe fn
Wolfgang Bumiller [Fri, 17 Dec 2021 08:17:09 +0000 (09:17 +0100)]
perlmod: add Value::new_xsub as an unsafe fn

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoperlmod: perl_fn for fn types w/o body
Wolfgang Bumiller [Fri, 17 Dec 2021 08:16:53 +0000 (09:16 +0100)]
perlmod: perl_fn for fn types w/o body

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agofixup RSPL_newXS_flags to return the CV
Wolfgang Bumiller [Thu, 16 Dec 2021 13:57:03 +0000 (14:57 +0100)]
fixup RSPL_newXS_flags to return the CV

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agodoc updates
Wolfgang Bumiller [Thu, 16 Dec 2021 13:06:31 +0000 (14:06 +0100)]
doc updates

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoclippy fixes
Wolfgang Bumiller [Wed, 15 Dec 2021 09:38:53 +0000 (10:38 +0100)]
clippy fixes

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agobump perlmod to 0.10.0-1
Wolfgang Bumiller [Tue, 14 Dec 2021 12:53:04 +0000 (13:53 +0100)]
bump perlmod to 0.10.0-1

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoperlmod: introduce MagicValue
Wolfgang Bumiller [Tue, 14 Dec 2021 12:23:31 +0000 (13:23 +0100)]
perlmod: introduce MagicValue

It turns out that using `const` for the `MagicSpec` can lead
to multiple instances of it and the `TryFrom` accessing a
different vtable address than the instantiating functions.

This particularly happened when using `declare_magic!`
directly for a `Box<T>` where `T` is not declared in the
same module and is `!Sync`.

Instead, `declare_magic!()` now creates `static`s,
`MagicSpec` loses the associated value so we can safely
force it to be `Send + Sync`, and `MagicValue` is introduced
as the result of the `.with_value()` method call.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoperlmod: actually use provided magic var
Wolfgang Bumiller [Tue, 14 Dec 2021 12:22:56 +0000 (13:22 +0100)]
perlmod: actually use provided magic var

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agodoc fixup
Wolfgang Bumiller [Tue, 14 Dec 2021 11:13:17 +0000 (12:13 +0100)]
doc fixup

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agodrop imports already in 2021 prelude
Wolfgang Bumiller [Wed, 1 Dec 2021 13:13:13 +0000 (14:13 +0100)]
drop imports already in 2021 prelude

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoupgrade to edition 2021
Wolfgang Bumiller [Wed, 1 Dec 2021 12:48:40 +0000 (13:48 +0100)]
upgrade to edition 2021

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agobump perlmod to 0.9.0 and perlmod-macro to 0.6.0
Wolfgang Bumiller [Fri, 26 Nov 2021 13:02:05 +0000 (14:02 +0100)]
bump perlmod to 0.9.0 and perlmod-macro to 0.6.0

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agodocumentation update
Wolfgang Bumiller [Thu, 25 Nov 2021 09:24:10 +0000 (10:24 +0100)]
documentation update

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agotest trailing-optional parameters
Wolfgang Bumiller [Thu, 25 Nov 2021 09:17:33 +0000 (10:17 +0100)]
test trailing-optional parameters

we'll need proper tests to check that too few and too many
parameters actually trigger errors

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agomacro: implement prototypes
Wolfgang Bumiller [Thu, 25 Nov 2021 09:16:39 +0000 (10:16 +0100)]
macro: implement prototypes

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoperlmod: always use opt_level 3
Wolfgang Bumiller [Wed, 24 Nov 2021 19:59:48 +0000 (20:59 +0100)]
perlmod: always use opt_level 3

since debug mode on some systems warns about _FORTIFY_SOURCE
requiring optimizations...

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agomacro: allow optional option parameters
Wolfgang Bumiller [Wed, 24 Nov 2021 19:59:27 +0000 (20:59 +0100)]
macro: allow optional option parameters

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agodon't export xs wrappers from modules
Wolfgang Bumiller [Wed, 24 Nov 2021 19:43:51 +0000 (20:43 +0100)]
don't export xs wrappers from modules

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agomacro: fix missing parameter name in error message
Wolfgang Bumiller [Wed, 24 Nov 2021 10:57:36 +0000 (11:57 +0100)]
macro: fix missing parameter name in error message

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoUpdate the 1.0 todo list
Wolfgang Bumiller [Wed, 24 Nov 2021 08:32:12 +0000 (09:32 +0100)]
Update the 1.0 todo list

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoREADME.md update
Wolfgang Bumiller [Wed, 17 Nov 2021 12:10:32 +0000 (13:10 +0100)]
README.md update

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agobump perlmod to 0.8.2-1
Wolfgang Bumiller [Fri, 5 Nov 2021 09:15:16 +0000 (10:15 +0100)]
bump perlmod to 0.8.2-1

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agotest enum serialization
Wolfgang Bumiller [Fri, 5 Nov 2021 09:14:19 +0000 (10:14 +0100)]
test enum serialization

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoperlmod: add enum deserialization support
Wolfgang Bumiller [Fri, 5 Nov 2021 09:14:07 +0000 (10:14 +0100)]
perlmod: add enum deserialization support

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoperlmod: doc fixup
Wolfgang Bumiller [Wed, 3 Nov 2021 12:06:13 +0000 (13:06 +0100)]
perlmod: doc fixup

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agobump perlmod to 0.8.1-1
Wolfgang Bumiller [Tue, 2 Nov 2021 13:32:24 +0000 (14:32 +0100)]
bump perlmod to 0.8.1-1

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoperlmod: add as_array/as_object + mut to Value
Wolfgang Bumiller [Tue, 2 Nov 2021 13:31:37 +0000 (14:31 +0100)]
perlmod: add as_array/as_object + mut to Value

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agobump perlmod-macro to 0.5.0-1 and perlmod to 0.8.0-1
Wolfgang Bumiller [Thu, 28 Oct 2021 07:21:31 +0000 (09:21 +0200)]
bump perlmod-macro to 0.5.0-1 and perlmod to 0.8.0-1

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoperlmod: magically call Drop handlers
Wolfgang Bumiller [Wed, 27 Oct 2021 13:42:19 +0000 (15:42 +0200)]
perlmod: magically call Drop handlers

magic classes now don't need to manually implement DESTROY
anymore

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoperlmod, macro: detect perl's MULTIPLICITY flag
Wolfgang Bumiller [Wed, 27 Oct 2021 12:00:18 +0000 (14:00 +0200)]
perlmod, macro: detect perl's MULTIPLICITY flag

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agocalling convention 'fixup'
Wolfgang Bumiller [Wed, 27 Oct 2021 11:47:57 +0000 (13:47 +0200)]
calling convention 'fixup'

if we ever want to support mgvtbl methods we may need to add
support for detecting the pTHX_ parameter into our build.rs
scripts

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agomore documentation
Wolfgang Bumiller [Wed, 27 Oct 2021 11:11:11 +0000 (13:11 +0200)]
more documentation

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agomagic tests
Wolfgang Bumiller [Wed, 27 Oct 2021 09:37:45 +0000 (11:37 +0200)]
magic tests

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoadd instantiate_magic convenience macro
Wolfgang Bumiller [Wed, 27 Oct 2021 10:30:00 +0000 (12:30 +0200)]
add instantiate_magic convenience macro

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoimplement some crude magic helpers
Wolfgang Bumiller [Wed, 27 Oct 2021 09:35:51 +0000 (11:35 +0200)]
implement some crude magic helpers

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoperlmod: add magic ffi and glue
Wolfgang Bumiller [Mon, 25 Oct 2021 13:09:24 +0000 (15:09 +0200)]
perlmod: add magic ffi and glue

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoadd a comment noting an API cleanup todo
Wolfgang Bumiller [Wed, 27 Oct 2021 09:36:51 +0000 (11:36 +0200)]
add a comment noting an API cleanup todo

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoValue: add AsRef/AsMut<ScalarRef>
Wolfgang Bumiller [Wed, 27 Oct 2021 09:36:24 +0000 (11:36 +0200)]
Value: add AsRef/AsMut<ScalarRef>

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoadd Value::new_hash for convenience
Wolfgang Bumiller [Wed, 27 Oct 2021 09:36:07 +0000 (11:36 +0200)]
add Value::new_hash for convenience

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agobump perlmod to 0.7.2 and perlmod-macro to 0.4.1
Wolfgang Bumiller [Mon, 25 Oct 2021 08:06:22 +0000 (10:06 +0200)]
bump perlmod to 0.7.2 and perlmod-macro to 0.4.1

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agomacro: implement bootstrap function in rust
Wolfgang Bumiller [Thu, 21 Oct 2021 09:15:54 +0000 (11:15 +0200)]
macro: implement bootstrap function in rust

with this, the generated .pm files don't contain any
exports anymore

when implementing a `perlmod-bindgen` utility to generate
.pm files, we can now also deprecate the `lib =` module
attribute on the `package` proc macro

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agobump perlmod version to 0.7.1
Wolfgang Bumiller [Tue, 19 Oct 2021 08:31:29 +0000 (10:31 +0200)]
bump perlmod version to 0.7.1

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoupdate docs and let the bless test use Value::bless_box
Wolfgang Bumiller [Tue, 19 Oct 2021 08:30:50 +0000 (10:30 +0200)]
update docs and let the bless test use Value::bless_box

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoperlmod: add Value::bless_box
Wolfgang Bumiller [Tue, 19 Oct 2021 08:30:27 +0000 (10:30 +0200)]
perlmod: add Value::bless_box

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoperlmod-macro: improve error handling
Wolfgang Bumiller [Fri, 15 Oct 2021 07:52:54 +0000 (09:52 +0200)]
perlmod-macro: improve error handling

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoperlmod-macro: drop anyhow dependency
Wolfgang Bumiller [Fri, 15 Oct 2021 07:45:57 +0000 (09:45 +0200)]
perlmod-macro: drop anyhow dependency

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoperlmod: drop derive requirement on serde
Wolfgang Bumiller [Fri, 15 Oct 2021 07:37:24 +0000 (09:37 +0200)]
perlmod: drop derive requirement on serde

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agodrop thiserror
Wolfgang Bumiller [Fri, 15 Oct 2021 07:34:31 +0000 (09:34 +0200)]
drop thiserror

not worth it right now

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>