move pbs-tools/src/percent_encoding.rs to pbs-api-types/src/percent_encoding.rs

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
This commit is contained in:
Dietmar Maurer 2021-11-25 11:48:52 +01:00
parent f35e187f16
commit 577095e2f7
8 changed files with 6 additions and 5 deletions

View File

@ -12,6 +12,7 @@ lazy_static = "1.4"
libc = "0.2" libc = "0.2"
nix = "0.19.1" nix = "0.19.1"
openssl = "0.10" openssl = "0.10"
percent-encoding = "2.1"
regex = "1.2" regex = "1.2"
serde = { version = "1.0", features = ["derive"] } serde = { version = "1.0", features = ["derive"] }

View File

@ -4,6 +4,7 @@ use serde::{Deserialize, Serialize};
use anyhow::bail; use anyhow::bail;
pub mod common_regex; pub mod common_regex;
pub mod percent_encoding;
use proxmox_schema::{ use proxmox_schema::{
api, const_regex, ApiStringFormat, ApiType, ArraySchema, Schema, StringSchema, ReturnType, api, const_regex, ApiStringFormat, ApiType, ArraySchema, Schema, StringSchema, ReturnType,

View File

@ -23,9 +23,9 @@ use proxmox_http::uri::build_authority;
use proxmox_async::broadcast_future::BroadcastFuture; use proxmox_async::broadcast_future::BroadcastFuture;
use pbs_api_types::{Authid, Userid, RateLimitConfig}; use pbs_api_types::{Authid, Userid, RateLimitConfig};
use pbs_api_types::percent_encoding::DEFAULT_ENCODE_SET;
use pbs_tools::json::json_object_to_query; use pbs_tools::json::json_object_to_query;
use pbs_tools::ticket; use pbs_tools::ticket;
use pbs_tools::percent_encoding::DEFAULT_ENCODE_SET;
use super::pipe_to_stream::PipeToSendStream; use super::pipe_to_stream::PipeToSendStream;
use super::PROXMOX_BACKUP_TCP_KEEPALIVE_TIME; use super::PROXMOX_BACKUP_TCP_KEEPALIVE_TIME;

View File

@ -7,7 +7,7 @@ use futures::*;
use proxmox_router::cli::format_and_print_result; use proxmox_router::cli::format_and_print_result;
use pbs_tools::percent_encoding::percent_encode_component; use pbs_api_types::percent_encoding::percent_encode_component;
use super::HttpClient; use super::HttpClient;

View File

@ -5,7 +5,6 @@ pub mod io;
pub mod json; pub mod json;
pub mod lru_cache; pub mod lru_cache;
pub mod nom; pub mod nom;
pub mod percent_encoding;
pub mod sha; pub mod sha;
pub mod sync; pub mod sync;
pub mod ticket; pub mod ticket;

View File

@ -5,7 +5,7 @@ use proxmox_schema::api;
use proxmox_router::cli::*; use proxmox_router::cli::*;
use pbs_client::display_task_log; use pbs_client::display_task_log;
use pbs_tools::percent_encoding::percent_encode_component; use pbs_api_types::percent_encoding::percent_encode_component;
use pbs_tools::json::required_string_param; use pbs_tools::json::required_string_param;
use pbs_api_types::UPID; use pbs_api_types::UPID;

View File

@ -10,8 +10,8 @@ use proxmox_schema::api;
use pbs_client::{display_task_log, view_task_result}; use pbs_client::{display_task_log, view_task_result};
use pbs_config::sync; use pbs_config::sync;
use pbs_tools::percent_encoding::percent_encode_component;
use pbs_tools::json::required_string_param; use pbs_tools::json::required_string_param;
use pbs_api_types::percent_encoding::percent_encode_component;
use pbs_api_types::{ use pbs_api_types::{
GroupFilter, SyncJobConfig, GroupFilter, SyncJobConfig,
DATASTORE_SCHEMA, GROUP_FILTER_LIST_SCHEMA, IGNORE_VERIFIED_BACKUPS_SCHEMA, REMOTE_ID_SCHEMA, DATASTORE_SCHEMA, GROUP_FILTER_LIST_SCHEMA, IGNORE_VERIFIED_BACKUPS_SCHEMA, REMOTE_ID_SCHEMA,