[pve-devel] [PATCH proxmox-perl-rs 3/6] move apt to /perl-apt, use PERLMOD_PRODUCT env var
Wolfgang Bumiller
w.bumiller at proxmox.com
Tue Nov 9 12:26:52 CET 2021
Signed-off-by: Wolfgang Bumiller <w.bumiller at proxmox.com>
---
{pve-rs/src/apt => perl-apt}/mod.rs | 0
{pve-rs/src/apt => perl-apt}/repositories.rs | 2 +-
pve-rs/src/lib.rs | 4 ++++
pve-rs/src/openid/mod.rs | 2 +-
4 files changed, 6 insertions(+), 2 deletions(-)
rename {pve-rs/src/apt => perl-apt}/mod.rs (100%)
rename {pve-rs/src/apt => perl-apt}/repositories.rs (98%)
diff --git a/pve-rs/src/apt/mod.rs b/perl-apt/mod.rs
similarity index 100%
rename from pve-rs/src/apt/mod.rs
rename to perl-apt/mod.rs
diff --git a/pve-rs/src/apt/repositories.rs b/perl-apt/repositories.rs
similarity index 98%
rename from pve-rs/src/apt/repositories.rs
rename to perl-apt/repositories.rs
index 2d5e1da..04fa082 100644
--- a/pve-rs/src/apt/repositories.rs
+++ b/perl-apt/repositories.rs
@@ -1,4 +1,4 @@
-#[perlmod::package(name = "PVE::RS::APT::Repositories", lib = "pve_rs")]
+#[perlmod::package(name = "${PERLMOD_PRODUCT}::RS::APT::Repositories")]
mod export {
use std::convert::TryInto;
diff --git a/pve-rs/src/lib.rs b/pve-rs/src/lib.rs
index cad331d..15793ef 100644
--- a/pve-rs/src/lib.rs
+++ b/pve-rs/src/lib.rs
@@ -1,2 +1,6 @@
+//! Rust library for the Proxmox VE code base.
+
+#[path = "../../perl-apt/mod.rs"]
pub mod apt;
+
pub mod openid;
diff --git a/pve-rs/src/openid/mod.rs b/pve-rs/src/openid/mod.rs
index febe927..47eaee3 100644
--- a/pve-rs/src/openid/mod.rs
+++ b/pve-rs/src/openid/mod.rs
@@ -1,4 +1,4 @@
-#[perlmod::package(name = "PVE::RS::OpenId", lib = "pve_rs")]
+#[perlmod::package(name = "${PERLMOD_PRODUCT}::RS::OpenId")]
mod export {
use std::sync::Mutex;
use std::convert::TryFrom;
--
2.30.2
More information about the pve-devel
mailing list