]> git.proxmox.com Git - perlmod.git/log
perlmod.git
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>
2 years agodrop rust-toolchain file
Wolfgang Bumiller [Fri, 15 Oct 2021 07:31:11 +0000 (09:31 +0200)]
drop rust-toolchain file

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agobump perlmod to 0.7.0-1
Wolfgang Bumiller [Thu, 14 Oct 2021 13:25:10 +0000 (15:25 +0200)]
bump perlmod to 0.7.0-1

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoprevent creating ScalarRef values manually
Wolfgang Bumiller [Thu, 14 Oct 2021 13:24:19 +0000 (15:24 +0200)]
prevent creating ScalarRef values manually

it is dangerous as it should only exist as a valid reference

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agobump perlmod-macro to 0.4.0 and perlmod to 0.6.0
Wolfgang Bumiller [Wed, 13 Oct 2021 09:29:43 +0000 (11:29 +0200)]
bump perlmod-macro to 0.4.0 and perlmod to 0.6.0

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoadd README.md
Wolfgang Bumiller [Thu, 14 Oct 2021 12:02:44 +0000 (14:02 +0200)]
add README.md

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoadd reference deserialization test data
Wolfgang Bumiller [Thu, 14 Oct 2021 13:13:32 +0000 (15:13 +0200)]
add reference deserialization test data

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoadd RawValue and raw value serialization
Wolfgang Bumiller [Thu, 14 Oct 2021 11:40:06 +0000 (13:40 +0200)]
add RawValue and raw value serialization

perl Values are now generally serialized as *raw* values,
for *de*serialization this can be enforced via the RawValue
type

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agomake values Clone
Wolfgang Bumiller [Thu, 14 Oct 2021 11:39:53 +0000 (13:39 +0200)]
make values Clone

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agomacro: support env vars in package attributes
Wolfgang Bumiller [Wed, 13 Oct 2021 09:43:49 +0000 (11:43 +0200)]
macro: support env vars in package attributes

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agomacro: use CARGO_PKG_NAME instead of reading Cargo.toml
Wolfgang Bumiller [Wed, 13 Oct 2021 09:28:16 +0000 (11:28 +0200)]
macro: use CARGO_PKG_NAME instead of reading Cargo.toml

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agobump version to 0.5.3-1
Wolfgang Bumiller [Mon, 19 Jul 2021 08:33:15 +0000 (10:33 +0200)]
bump version to 0.5.3-1

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agotest: set autoflush for consistency
Wolfgang Bumiller [Mon, 19 Jul 2021 07:37:08 +0000 (09:37 +0200)]
test: set autoflush for consistency

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoadd is_defined helper glue
Wolfgang Bumiller [Mon, 19 Jul 2021 07:34:32 +0000 (09:34 +0200)]
add is_defined helper glue

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agotest for broken undef detection
Fabian Ebner [Fri, 16 Jul 2021 14:34:00 +0000 (16:34 +0200)]
test for broken undef detection

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agomacro: different approach to clippy warning
Wolfgang Bumiller [Fri, 2 Jul 2021 09:54:30 +0000 (11:54 +0200)]
macro: different approach to clippy warning

currently this does in fact deduplicate code, so...

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agobump perlmod to 0.5.2-2
Wolfgang Bumiller [Fri, 2 Jul 2021 09:41:16 +0000 (11:41 +0200)]
bump perlmod to 0.5.2-2

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoperlmod: clippy fixes
Wolfgang Bumiller [Fri, 2 Jul 2021 09:39:46 +0000 (11:39 +0200)]
perlmod: clippy fixes

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agomacro: clippy fixes
Wolfgang Bumiller [Fri, 2 Jul 2021 09:37:51 +0000 (11:37 +0200)]
macro: clippy fixes

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agotest updates
Wolfgang Bumiller [Fri, 2 Jul 2021 09:32:30 +0000 (11:32 +0200)]
test updates

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoset utf8 flag as needed when serializing strings
Wolfgang Bumiller [Fri, 2 Jul 2021 09:31:50 +0000 (11:31 +0200)]
set utf8 flag as needed when serializing strings

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agobump perlmod-macro to 0.3.2-1
Wolfgang Bumiller [Wed, 30 Jun 2021 07:47:14 +0000 (09:47 +0200)]
bump perlmod-macro to 0.3.2-1

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agomacro: add newlines to errors
Wolfgang Bumiller [Wed, 30 Jun 2021 06:14:47 +0000 (08:14 +0200)]
macro: add newlines to errors

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agobump verstion to 0.5.1-1
Wolfgang Bumiller [Wed, 23 Jun 2021 08:59:22 +0000 (10:59 +0200)]
bump verstion to 0.5.1-1

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoupdate test files
Wolfgang Bumiller [Wed, 23 Jun 2021 08:58:31 +0000 (10:58 +0200)]
update test files

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agofix newtype struct deserialization
Wolfgang Bumiller [Wed, 23 Jun 2021 08:58:21 +0000 (10:58 +0200)]
fix newtype struct deserialization

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agobump version to 0.5.0-1
Wolfgang Bumiller [Mon, 21 Jun 2021 10:39:55 +0000 (12:39 +0200)]
bump version to 0.5.0-1

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoimprove PVLV handling
Wolfgang Bumiller [Thu, 10 Jun 2021 08:14:04 +0000 (10:14 +0200)]
improve PVLV handling

For the cases we're most intested in (substr and vivifyable
hash indexing) we can use perform "GET" magic to figure out
whether it was undef or not, and then simply recurse.
We'll have to deal with other cases as we run into them.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoexperimental PVLV support
Wolfgang Bumiller [Tue, 8 Jun 2021 09:28:01 +0000 (11:28 +0200)]
experimental PVLV support

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agobump perlmod to 0.4.3-1
Wolfgang Bumiller [Tue, 9 Mar 2021 14:36:31 +0000 (15:36 +0100)]
bump perlmod to 0.4.3-1

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agoarray: avoid underflow when array is empty and more is zero
Fabian Ebner [Thu, 18 Feb 2021 12:47:43 +0000 (13:47 +0100)]
array: avoid underflow when array is empty and more is zero

serializing an empty array triggered this.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
[rustfmt: Wolfgang Bumiller <w.bumiller@proxmox.com>]
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agobump d/control
Wolfgang Bumiller [Tue, 23 Feb 2021 13:27:00 +0000 (14:27 +0100)]
bump d/control

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agobump perlmod to 0.4.2-1
Wolfgang Bumiller [Tue, 23 Feb 2021 13:26:31 +0000 (14:26 +0100)]
bump perlmod to 0.4.2-1

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agoallow PVMG in deserialization
Wolfgang Bumiller [Tue, 23 Feb 2021 12:07:51 +0000 (13:07 +0100)]
allow PVMG in deserialization

they are supposed to end up being regular scalars after all,
usually

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agobump perlmod-macro to 0.3.1-1
Wolfgang Bumiller [Mon, 22 Feb 2021 13:15:46 +0000 (14:15 +0100)]
bump perlmod-macro to 0.3.1-1

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agocheck in control files
Wolfgang Bumiller [Mon, 22 Feb 2021 13:17:43 +0000 (14:17 +0100)]
check in control files

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