Go to file
Wolfgang Bumiller 13e3d8b87e pve: build test stub of Proxmox::Lib::PVE for tests
this replaces the libdirs() sub with one containing:
- ../target (for when run from build/pve-rs)
- ../../target (for when run from toplevel/pve-rs

This way we can run 'make check' both from within `pve-rs`
as well as from the package building process.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-11-15 13:42:18 +01:00
.cargo import basic skeleton 2021-11-09 08:54:06 +01:00
common buildsys: generate .pm files in packages 2022-11-15 13:22:34 +01:00
pmg-rs buildsys: generate .pm files in packages 2022-11-15 13:22:34 +01:00
Proxmox/Lib package template: introduce libdirs() method 2022-11-15 13:25:21 +01:00
pve-rs pve: build test stub of Proxmox::Lib::PVE for tests 2022-11-15 13:42:18 +01:00
scripts buildsys: add genpackage.pl script 2022-03-01 10:54:15 +01:00
.gitignore fixup .gitignore 2022-03-01 11:46:49 +01:00
Cargo.toml generate and install perl package files 2022-03-01 10:54:15 +01:00
defines.mk buildsys: generate Proxmox::Lib within the product Makefiles 2022-11-15 13:13:59 +01:00
Makefile buildsys: generate .pm files in packages 2022-11-15 13:22:34 +01:00
README.md Add some dev tips to a README 2021-11-09 12:02:53 +01:00
rustfmt.toml import basic skeleton 2021-11-09 08:54:06 +01:00

Hints for development:

With the current perlmod, the .pm files don't actually change anymore, since the exported method setup is now handled by the bootstrap rust-function generated by perlmod, so for quicker debugging, you can just keep the installed .pm files from the package and simply link the library to the debug one like so:

NOTE: You may need to adapt the perl version number in this path:

# ln -sf $PWD/target/debug/libpve_rs.so /usr/lib/x86_64-linux-gnu/perl5/5.32/auto/libpve_rs.so

Then just restart pvedaemon/pveproxy after running make pve.