use proxmox-sortable-macro directly

instead of via proxmox-sys

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2023-03-01 13:44:44 +01:00 committed by Thomas Lamprecht
parent ad531be561
commit 26f03f9e53
25 changed files with 30 additions and 25 deletions

View File

@ -72,6 +72,7 @@ proxmox-schema = "1.3.6"
proxmox-section-config = "1"
proxmox-serde = "0.1.1"
proxmox-shared-memory = "0.2.3"
proxmox-sortable-macro = "0.1.2"
proxmox-subscription = { version = "0.3", features = [ "api-types" ] }
proxmox-sys = "0.4.2"
proxmox-tfa = { version = "2.1", features = [ "api", "api-types" ] }
@ -214,8 +215,9 @@ proxmox-schema = { workspace = true, features = [ "api-macro" ] }
proxmox-section-config.workspace = true
proxmox-serde = { workspace = true, features = [ "serde_json" ] }
proxmox-shared-memory.workspace = true
proxmox-sortable-macro.workspace = true
proxmox-subscription.workspace = true
proxmox-sys = { workspace = true, features = [ "sortable-macro", "timer" ] }
proxmox-sys = { workspace = true, features = [ "timer" ] }
proxmox-tfa.workspace = true
proxmox-time.workspace = true
proxmox-uuid.workspace = true

View File

@ -28,7 +28,8 @@ proxmox-fuse.workspace = true
proxmox-io.workspace = true
proxmox-router = { workspace = true, features = [ "cli" ] }
proxmox-schema = { workspace = true, features = [ "api-macro" ] }
proxmox-sys = { workspace = true, features = [ "sortable-macro" ] }
proxmox-sortable-macro.workspace = true
proxmox-sys.workspace = true
proxmox-time.workspace = true
pbs-api-types.workspace = true

View File

@ -15,7 +15,7 @@ use tokio::signal::unix::{signal, SignalKind};
use proxmox_router::{cli::*, ApiHandler, ApiMethod, RpcEnvironment};
use proxmox_schema::*;
use proxmox_sys::sortable;
use proxmox_sortable_macro::sortable;
use pbs_api_types::BackupNamespace;
use pbs_client::tools::key_source::get_encryption_key_password;

View File

@ -31,7 +31,8 @@ proxmox-compression.workspace = true
proxmox-rest-server.workspace = true
proxmox-router = { workspace = true, features = [ "cli", "server" ] }
proxmox-schema = { workspace = true, features = [ "api-macro" ] }
proxmox-sys = { workspace = true, features = [ "sortable-macro" ] }
proxmox-sortable-macro.workspace = true
proxmox-sys.workspace = true
proxmox-time.workspace = true
pbs-api-types.workspace = true

View File

@ -20,7 +20,7 @@ use proxmox_router::{
};
use proxmox_schema::*;
use proxmox_sys::fs::read_subdir;
use proxmox_sys::sortable;
use proxmox_sortable_macro::sortable;
use pbs_api_types::file_restore::{FileRestoreFormat, RestoreDaemonStatus};
use pbs_client::pxar::{create_archive, Flags, PxarCreateOptions, ENCODER_MAX_ENTRIES};

View File

@ -10,7 +10,7 @@ use proxmox_router::{
http_err, list_subdirs_api_method, Permission, Router, RpcEnvironment, SubdirMap,
};
use proxmox_schema::api;
use proxmox_sys::sortable;
use proxmox_sortable_macro::sortable;
use pbs_api_types::{
Authid, Userid, ACL_PATH_SCHEMA, PASSWORD_SCHEMA, PRIVILEGES, PRIV_PERMISSIONS_MODIFY,

View File

@ -6,7 +6,7 @@ use proxmox_router::{
http_err, list_subdirs_api_method, Permission, Router, RpcEnvironment, SubdirMap,
};
use proxmox_schema::api;
use proxmox_sys::sortable;
use proxmox_sortable_macro::sortable;
use proxmox_openid::{OpenIdAuthenticator, OpenIdConfig};

View File

@ -25,7 +25,7 @@ use proxmox_schema::*;
use proxmox_sys::fs::{
file_read_firstline, file_read_optional_string, replace_file, CreateOptions,
};
use proxmox_sys::sortable;
use proxmox_sortable_macro::sortable;
use proxmox_sys::{task_log, task_warn};
use pxar::accessor::aio::Accessor;

View File

@ -2,7 +2,7 @@
use proxmox_router::list_subdirs_api_method;
use proxmox_router::{Router, SubdirMap};
use proxmox_sys::sortable;
use proxmox_sortable_macro::sortable;
pub mod datastore;
pub mod metrics;

View File

@ -7,7 +7,7 @@ use proxmox_router::{
list_subdirs_api_method, ApiMethod, Permission, Router, RpcEnvironment, SubdirMap,
};
use proxmox_schema::api;
use proxmox_sys::sortable;
use proxmox_sortable_macro::sortable;
use pbs_api_types::{
Authid, PruneJobConfig, PruneJobStatus, DATASTORE_SCHEMA, JOB_ID_SCHEMA, PRIV_DATASTORE_AUDIT,

View File

@ -8,7 +8,7 @@ use proxmox_router::{
SubdirMap,
};
use proxmox_schema::api;
use proxmox_sys::sortable;
use proxmox_sortable_macro::sortable;
use pbs_api_types::{Authid, SyncJobConfig, SyncJobStatus, DATASTORE_SCHEMA, JOB_ID_SCHEMA};
use pbs_config::sync;

View File

@ -8,7 +8,7 @@ use proxmox_router::{
SubdirMap,
};
use proxmox_schema::api;
use proxmox_sys::sortable;
use proxmox_sortable_macro::sortable;
use pbs_api_types::{
Authid, VerificationJobConfig, VerificationJobStatus, DATASTORE_SCHEMA, JOB_ID_SCHEMA,

View File

@ -14,7 +14,7 @@ use proxmox_router::{
ApiHandler, ApiMethod, ApiResponseFuture, Permission, Router, RpcEnvironment, SubdirMap,
};
use proxmox_schema::*;
use proxmox_sys::sortable;
use proxmox_sortable_macro::sortable;
use pbs_api_types::{
Authid, BackupNamespace, BackupType, Operation, SnapshotVerifyState, VerifyState,

View File

@ -11,7 +11,7 @@ use serde_json::{json, Value};
use proxmox_router::{ApiHandler, ApiMethod, ApiResponseFuture, RpcEnvironment};
use proxmox_schema::*;
use proxmox_sys::sortable;
use proxmox_sortable_macro::sortable;
use pbs_api_types::{BACKUP_ARCHIVE_NAME_SCHEMA, CHUNK_DIGEST_SCHEMA};
use pbs_datastore::file_formats::{DataBlobHeader, EncryptedDataBlobHeader};

View File

@ -1,6 +1,6 @@
use proxmox_router::list_subdirs_api_method;
use proxmox_router::{Router, SubdirMap};
use proxmox_sys::sortable;
use proxmox_sortable_macro::sortable;
pub mod ldap;
pub mod openid;

View File

@ -1,6 +1,6 @@
use proxmox_router::list_subdirs_api_method;
use proxmox_router::{Router, SubdirMap};
use proxmox_sys::sortable;
use proxmox_sortable_macro::sortable;
pub mod influxdbhttp;
pub mod influxdbudp;

View File

@ -2,7 +2,7 @@
use proxmox_router::list_subdirs_api_method;
use proxmox_router::{Router, SubdirMap};
use proxmox_sys::sortable;
use proxmox_sortable_macro::sortable;
pub mod access;
pub mod acme;

View File

@ -5,7 +5,7 @@ use pbs_api_types::BackupNamespace;
use pbs_api_types::NamespaceListItem;
use proxmox_router::list_subdirs_api_method;
use proxmox_router::SubdirMap;
use proxmox_sys::sortable;
use proxmox_sortable_macro::sortable;
use serde_json::Value;
use proxmox_router::{http_bail, http_err, ApiMethod, Permission, Router, RpcEnvironment};

View File

@ -1,6 +1,6 @@
//! The Proxmox Backup Server API
use proxmox_sys::sortable;
use proxmox_sortable_macro::sortable;
pub mod access;
pub mod admin;

View File

@ -5,7 +5,8 @@ use proxmox_router::{
list_subdirs_api_method, Permission, Router, RpcEnvironment, RpcEnvironmentType, SubdirMap,
};
use proxmox_schema::api;
use proxmox_sys::{sortable, task_log};
use proxmox_sortable_macro::sortable;
use proxmox_sys::task_log;
use pbs_api_types::{
BLOCKDEVICE_NAME_SCHEMA, NODE_SCHEMA, PRIV_SYS_AUDIT, PRIV_SYS_MODIFY, UPID_SCHEMA,

View File

@ -13,7 +13,7 @@ use serde_json::{json, Value};
use tokio::io::{AsyncBufReadExt, BufReader};
use proxmox_sys::fd::fd_change_cloexec;
use proxmox_sys::sortable;
use proxmox_sortable_macro::sortable;
use proxmox_http::websocket::WebSocket;
use proxmox_router::list_subdirs_api_method;

View File

@ -5,7 +5,7 @@ use serde_json::{json, Value};
use proxmox_router::{list_subdirs_api_method, Permission, Router, RpcEnvironment, SubdirMap};
use proxmox_schema::api;
use proxmox_sys::sortable;
use proxmox_sortable_macro::sortable;
use pbs_api_types::{Authid, NODE_SCHEMA, PRIV_SYS_AUDIT, PRIV_SYS_MODIFY, SERVICE_ID_SCHEMA};

View File

@ -14,7 +14,7 @@ use proxmox_router::{
RpcEnvironment, SubdirMap,
};
use proxmox_schema::{api, BooleanSchema, IntegerSchema, ObjectSchema, Schema};
use proxmox_sys::sortable;
use proxmox_sortable_macro::sortable;
use pbs_api_types::{
Authid, TaskListItem, TaskStateType, Tokenname, Userid, DATASTORE_SCHEMA, NODE_SCHEMA,

View File

@ -14,7 +14,7 @@ use proxmox_router::{
Router, RpcEnvironment, SubdirMap,
};
use proxmox_schema::{BooleanSchema, ObjectSchema};
use proxmox_sys::sortable;
use proxmox_sortable_macro::sortable;
use pbs_api_types::{
Authid, Operation, BACKUP_ARCHIVE_NAME_SCHEMA, BACKUP_ID_SCHEMA, BACKUP_NAMESPACE_SCHEMA,

View File

@ -10,7 +10,7 @@ use proxmox_router::{
};
use proxmox_schema::api;
use proxmox_section_config::SectionConfigData;
use proxmox_sys::sortable;
use proxmox_sortable_macro::sortable;
use proxmox_sys::{task_log, task_warn};
use proxmox_uuid::Uuid;