sys: drop sortable and identity macros
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>
This commit is contained in:
parent
2cf54dcf2e
commit
7e12788c60
@ -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 = []
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user