mirror of
https://git.proxmox.com/git/proxmox
synced 2025-08-14 16:12:19 +00:00
proxmox: add sortable-macro feature
Use: # Cargo.toml: [dependencies] proxmox = { version = "0.1", features = [ "sortable-macro" ] } # file.rs use proxmox::{sortable, identity}; #[sortable] const DATA: &[u8; 4] = sorted!([3, 4, 1, 2]); Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
ceb3ff5544
commit
297aca53f7
@ -12,8 +12,10 @@ proxmox-api = { path = "../proxmox-api" }
|
|||||||
proxmox-api-macro = { path = "../proxmox-api-macro", optional = true }
|
proxmox-api-macro = { path = "../proxmox-api-macro", optional = true }
|
||||||
proxmox-sys = { path = "../proxmox-sys" }
|
proxmox-sys = { path = "../proxmox-sys" }
|
||||||
proxmox-tools = { path = "../proxmox-tools" }
|
proxmox-tools = { path = "../proxmox-tools" }
|
||||||
|
sorted-data = { path = "../sorted-data", optional = true }
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = []
|
default = []
|
||||||
valgrind = ["proxmox-tools/valgrind"]
|
valgrind = ["proxmox-tools/valgrind"]
|
||||||
api-macro = ["proxmox-api-macro"]
|
api-macro = ["proxmox-api-macro"]
|
||||||
|
sortable-macro = ["sorted-data"]
|
||||||
|
@ -8,3 +8,8 @@ pub mod api {
|
|||||||
#[cfg(feature = "api-macro")]
|
#[cfg(feature = "api-macro")]
|
||||||
pub use proxmox_api_macro::{api, router};
|
pub use proxmox_api_macro::{api, router};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(feature = "sortable-macro")]
|
||||||
|
pub use proxmox_tools::identity;
|
||||||
|
#[cfg(feature = "sortable-macro")]
|
||||||
|
pub use sorted_data::{self, sortable};
|
||||||
|
Loading…
Reference in New Issue
Block a user