]> git.proxmox.com Git - perlmod.git/log
perlmod.git
3 months agobump perlmod-bin to 0.2.0-3 master
Wolfgang Bumiller [Tue, 2 Jan 2024 13:15:01 +0000 (14:15 +0100)]
bump perlmod-bin to 0.2.0-3

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 months agoperlmod-bin: fix generated libfile invocation
Wolfgang Bumiller [Tue, 2 Jan 2024 13:13:34 +0000 (14:13 +0100)]
perlmod-bin: fix generated libfile invocation

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 months agobump perlmod-macro to 0.8.4-1
Wolfgang Bumiller [Tue, 19 Dec 2023 07:42:02 +0000 (08:42 +0100)]
bump perlmod-macro to 0.8.4-1

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 months agoperlmod: search LD_LIBRARY_PATH before @INC/auto dirs
Wolfgang Bumiller [Tue, 19 Dec 2023 07:38:40 +0000 (08:38 +0100)]
perlmod: search LD_LIBRARY_PATH before @INC/auto dirs

This is for the code generated for `#[package(write = true)]`.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 months agobump perlmod-bin to 0.2.0-2
Wolfgang Bumiller [Mon, 18 Dec 2023 09:38:45 +0000 (10:38 +0100)]
bump perlmod-bin to 0.2.0-2

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 months agoperlmod-bin: actually use 'libfile'
Wolfgang Bumiller [Mon, 18 Dec 2023 09:36:49 +0000 (10:36 +0100)]
perlmod-bin: actually use 'libfile'

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 months agoupload command pattern fixup
Wolfgang Bumiller [Mon, 18 Dec 2023 09:31:36 +0000 (10:31 +0100)]
upload command pattern fixup

perlmod-bin is not prefixed with `rust-`

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 months agobump perlmod-bin to 0.2.0-1
Wolfgang Bumiller [Mon, 18 Dec 2023 08:46:03 +0000 (09:46 +0100)]
bump perlmod-bin to 0.2.0-1

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 months agogenpackage: add --include-file option to add extra code
Wolfgang Bumiller [Mon, 18 Dec 2023 08:43:21 +0000 (09:43 +0100)]
genpackage: add --include-file option to add extra code

We'll use this to inject a 'use SslProbe.pm;' in pve and pmg to avoid
openssl-probe manipulating environment variables.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 months agogenpackage: change library loading
Wolfgang Bumiller [Mon, 18 Dec 2023 08:26:47 +0000 (09:26 +0100)]
genpackage: change library loading

Replace the 'libdirs()' function with a 'libfile()' function.
To text a fixed file, we should only place that one file in there in
test suites.

Additionally, search LD_LIBRARY_PATH before the auto-dirs, which
should make custom testing via the command line easier as well.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 months agogenpackage: make 'init()' optional
Wolfgang Bumiller [Mon, 18 Dec 2023 08:26:33 +0000 (09:26 +0100)]
genpackage: make 'init()' optional

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 months agogenpackage: use strict and warnings
Wolfgang Bumiller [Mon, 18 Dec 2023 08:26:14 +0000 (09:26 +0100)]
genpackage: use strict and warnings

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
5 months agobump d/control
Wolfgang Bumiller [Fri, 3 Nov 2023 12:29:37 +0000 (13:29 +0100)]
bump d/control

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
6 months agobump perlmod to 0.13.4-1
Wolfgang Bumiller [Fri, 6 Oct 2023 07:05:13 +0000 (09:05 +0200)]
bump perlmod to 0.13.4-1

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
6 months agotest: expose setenv, unsetenv and use_safe_putenv
Wolfgang Bumiller [Thu, 5 Oct 2023 11:38:36 +0000 (13:38 +0200)]
test: expose setenv, unsetenv and use_safe_putenv

mostly for local leak testing with valgrind

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
6 months agoadd ffi::use_safe_putenv and glue for it
Wolfgang Bumiller [Thu, 5 Oct 2023 09:03:23 +0000 (11:03 +0200)]
add ffi::use_safe_putenv and glue for it

This causes changes to environment variables to leak instead of crash,
which is arguably better. This will be removed (and fixed) in perl
5.38.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
6 months agobuildsys: explicitly resolver 2
Wolfgang Bumiller [Thu, 5 Oct 2023 09:02:59 +0000 (11:02 +0200)]
buildsys: explicitly resolver 2

to shut up a warning

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
6 months agobuild: update upload target
Fabian Grünbichler [Tue, 3 Oct 2023 08:01:57 +0000 (10:01 +0200)]
build: update upload target

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
6 months agoperlmod-macro: bump to 0.8.3
Fabian Grünbichler [Tue, 3 Oct 2023 06:34:55 +0000 (08:34 +0200)]
perlmod-macro: bump to 0.8.3

6 months agoupdate to syn-2
Wolfgang Bumiller [Mon, 2 Oct 2023 08:33:32 +0000 (10:33 +0200)]
update to syn-2

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
9 months agobump perlmod to 0.13.3-1 and perlmod-macro to 0.8.2-1
Wolfgang Bumiller [Wed, 26 Jul 2023 07:55:17 +0000 (09:55 +0200)]
bump perlmod to 0.13.3-1 and perlmod-macro to 0.8.2-1

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
9 months agomacro: move 'boot' call into the 'Once' section
Wolfgang Bumiller [Wed, 26 Jul 2023 07:56:15 +0000 (09:56 +0200)]
macro: move 'boot' call into the 'Once' section

This also means boot function call chains must not cause circular
dependencies at all without a way to mitigate this in code. If this
should ever be a problem, we can move it out again, but this should
rather not be necessary.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
9 months agomacro: upgrade boot attribute to a full path
Wolfgang Bumiller [Wed, 26 Jul 2023 07:37:58 +0000 (09:37 +0200)]
macro: upgrade boot attribute to a full path

This is a lot more flexible than just a single ident.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
9 months agomacro: update docs
Wolfgang Bumiller [Tue, 25 Jul 2023 11:46:39 +0000 (13:46 +0200)]
macro: update docs

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
9 months agotest 'boot' attribute
Wolfgang Bumiller [Tue, 25 Jul 2023 11:41:47 +0000 (13:41 +0200)]
test 'boot' attribute

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
9 months agomacro: add 'boot' attribute to packages
Wolfgang Bumiller [Tue, 25 Jul 2023 11:40:34 +0000 (13:40 +0200)]
macro: add 'boot' attribute to packages

This is supposed to be a function executed after the 'boot' method has
finished registering the XS callbacks.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
9 months agomacro: allow calling boot fns with None as parameter
Wolfgang Bumiller [Tue, 25 Jul 2023 11:32:47 +0000 (13:32 +0200)]
macro: allow calling boot fns with None as parameter

This allows using them from other modules for initialization.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
9 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>
9 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>
11 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>
11 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>
11 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>
11 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>
11 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>
11 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>
11 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>
12 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>
16 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>
19 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>
20 months 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>
22 months 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>
22 months 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>