[PATCH perl-rs v2 12/40] pve-rs: resource-scheduling: move pve_static into resource_scheduling module

Daniel Kral
2026-03-24T18:32:08Z

This is in preparation to add the upcoming pve_dynamic bindings, which
shares much of the same code paths as the pve_static implementation.

Signed-off-by: Daniel Kral <d.kral@proxmox.com>
---
changes v1 -> v2:
- move it in front of other changes done to pve_static so the code that
is shared with the upcoming pve_dynamic can already be put in separate
modules (as suggested by @Thomas)
- add more context and motivation to patch message

pve-rs/src/bindings/mod.rs | 3 +--
pve-rs/src/bindings/resource_scheduling/mod.rs | 4 ++++
.../pve_static.rs} | 2 +-
3 files changed, 6 insertions(+), 3 deletions(-)
create mode 100644 pve-rs/src/bindings/resource_scheduling/mod.rs
rename pve-rs/src/bindings/{resource_scheduling_static.rs => resource_scheduling/pve_static.rs} (98%)

diff --git a/pve-rs/src/bindings/mod.rs b/pve-rs/src/bindings/mod.rs
index c21b328..853a3dd 100644
--- a/pve-rs/src/bindings/mod.rs
+++ b/pve-rs/src/bindings/mod.rs
@@ -3,8 +3,7 @@
mod oci;
pub use oci::pve_rs_oci;

-mod resource_scheduling_static;
-pub use resource_scheduling_static::pve_rs_resource_scheduling_static;
+pub mod resource_scheduling;

mod tfa;
pub use tfa::pve_rs_tfa;
diff --git a/pve-rs/src/bindings/resource_scheduling/mod.rs b/pve-rs/src/bindings/resource_scheduling/mod.rs
new file mode 100644
index 0000000..af1fb6b
--- /dev/null
+++ b/pve-rs/src/bindings/resource_scheduling/mod.rs
@@ -0,0 +1,4 @@
+//! Resource scheduling related bindings.
+
+mod pve_static;
+pub use pve_static::pve_rs_resource_scheduling_static;
diff --git a/pve-rs/src/bindings/resource_scheduling_static.rs b/pve-rs/src/bindings/resource_scheduling/pve_static.rs
similarity index 98%
rename from pve-rs/src/bindings/resource_scheduling_static.rs
rename to pve-rs/src/bindings/resource_scheduling/pve_static.rs
index b8eac57..a83a9ab 100644
--- a/pve-rs/src/bindings/resource_scheduling_static.rs
+++ b/pve-rs/src/bindings/resource_scheduling/pve_static.rs
@@ -2,7 +2,7 @@
pub mod pve_rs_resource_scheduling_static {
//! The `PVE::RS::ResourceScheduling::Static` package.
//!
- //! Provides bindings for the resource scheduling module.
+ //! Provides bindings for the static resource scheduling module.
//!
//! See [`proxmox_resource_scheduling`].

--
2.47.3