]> git.proxmox.com Git - proxmox.git/commitdiff
sys: drop sortable and identity macros
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 1 Mar 2023 12:40:39 +0000 (13:40 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 1 Mar 2023 12:40:40 +0000 (13:40 +0100)
We should not use the sys crate to pull in the sortable
macro, just depend on its crate instead...
And the identity macro used to be required by the sortable
macro, but is not anymore and has been deprecated for a
while, so we can now drop it.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
proxmox-sys/Cargo.toml
proxmox-sys/src/lib.rs

index 161eea356a551eeaf4c3c608b01963925643c7d1..2b44bd0198b4950432594f7fa8b18459d2589813 100644 (file)
@@ -21,16 +21,12 @@ serde_json.workspace = true
 serde = { workspace = true, features = [ "derive" ] }
 zstd = { workspace = true, optional = true}
 
-# Macro crates:
-proxmox-sortable-macro = { workspace = true, optional = true }
-
 proxmox-io.workspace = true
 proxmox-lang.workspace = true
 proxmox-time.workspace = true
 
 [features]
 default = []
-sortable-macro = ["dep:proxmox-sortable-macro"]
 logrotate = ["dep:zstd"]
 acl = []
 crypt = []
index 8a6b9ef3659ae588d8f78f405f22f14e439af4f3..7e590586bca32ffe927bcaa9b1fbc031a6678f54 100644 (file)
@@ -18,20 +18,6 @@ pub mod systemd;
 mod worker_task_context;
 pub use worker_task_context::*;
 
-#[deprecated(
-    since = "0.2.2",
-    note = "the sortable macro does not require this anymore, it will be removed"
-)]
-/// An identity (nop) macro. Used by the `#[sortable]` proc macro.
-#[cfg(feature = "sortable-macro")]
-#[macro_export]
-macro_rules! identity {
-    ($($any:tt)*) => ($($any)*)
-}
-
-#[cfg(feature = "sortable-macro")]
-pub use proxmox_sortable_macro::sortable;
-
 #[allow(deprecated)]
 use fd::Fd;