update backend dependencies (#1637)

This commit is contained in:
Aiden McClelland
2022-07-12 12:18:12 -06:00
committed by GitHub
parent e5de91cbe5
commit 1367428499
32 changed files with 547 additions and 643 deletions

3
.gitmodules vendored
View File

@@ -1,6 +1,3 @@
[submodule "rpc-toolkit"]
path = rpc-toolkit
url = https://github.com/Start9Labs/rpc-toolkit.git
[submodule "patch-db"] [submodule "patch-db"]
path = patch-db path = patch-db
url = https://github.com/Start9Labs/patch-db.git url = https://github.com/Start9Labs/patch-db.git

718
backend/Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -47,19 +47,20 @@ unstable = ["patch-db/unstable"]
[dependencies] [dependencies]
aes = { version = "0.7.5", features = ["ctr"] } aes = { version = "0.7.5", features = ["ctr"] }
async-stream = "0.3.3" async-stream = "0.3.3"
async-trait = "0.1.51" async-trait = "0.1.56"
avahi-sys = { git = "https://github.com/Start9Labs/avahi-sys", version = "0.10.0", branch = "feature/dynamic-linking", features = [ avahi-sys = { git = "https://github.com/Start9Labs/avahi-sys", version = "0.10.0", branch = "feature/dynamic-linking", features = [
"dynamic", "dynamic",
], optional = true } ], optional = true }
base32 = "0.4.0" base32 = "0.4.0"
base64 = "0.13.0" base64 = "0.13.0"
base64ct = "1.5.0" base64ct = "1.5.1"
basic-cookies = "0.1.4" basic-cookies = "0.1.4"
bollard = "0.11.0" bollard = "0.13.0"
chrono = { version = "0.4.19", features = ["serde"] } chrono = { version = "0.4.19", features = ["serde"] }
clap = "2.33" clap = "3.2.8"
color-eyre = "0.5" color-eyre = "0.6.1"
cookie_store = "0.15.0" cookie_store = "0.16.1"
current_platform = "0.2.0"
digest = "0.10.3" digest = "0.10.3"
digest-old = { package = "digest", version = "0.9.0" } digest-old = { package = "digest", version = "0.9.0" }
divrem = "1.0.0" divrem = "1.0.0"
@@ -67,83 +68,80 @@ ed25519 = { version = "1.5.2", features = ["pkcs8", "pem", "alloc"] }
ed25519-dalek = { version = "1.0.1", features = ["serde"] } ed25519-dalek = { version = "1.0.1", features = ["serde"] }
emver = { version = "0.1.6", features = ["serde"] } emver = { version = "0.1.6", features = ["serde"] }
fd-lock-rs = "0.1.3" fd-lock-rs = "0.1.3"
futures = "0.3.17" futures = "0.3.21"
git-version = "0.3.5" git-version = "0.3.5"
helpers = { path = "../libs/helpers" } helpers = { path = "../libs/helpers" }
hex = "0.4.3" hex = "0.4.3"
hmac = "0.12.1" hmac = "0.12.1"
http = "0.2.5" http = "0.2.8"
hyper = "0.14.13" hyper = "0.14.20"
hyper-ws-listener = { git = "https://github.com/Start9Labs/hyper-ws-listener.git", branch = "main" } hyper-ws-listener = "0.2.0"
imbl = "1.0.1" imbl = "2.0.0"
indexmap = { version = "1.8.1", features = ["serde"] } indexmap = { version = "1.9.1", features = ["serde"] }
isocountry = "0.3.2" isocountry = "0.3.2"
itertools = "0.10.1" itertools = "0.10.3"
js_engine = { path = '../libs/js_engine', optional = true } js_engine = { path = '../libs/js_engine', optional = true }
jsonpath_lib = "0.3.0" jsonpath_lib = "0.3.0"
lazy_static = "1.4" lazy_static = "1.4.0"
libc = "0.2.103" libc = "0.2.126"
log = "0.4.14" log = "0.4.17"
models = { version = "*", path = "../libs/models" } models = { version = "*", path = "../libs/models" }
nix = "0.23.0" nix = "0.24.1"
nom = "7.0.0" nom = "7.1.1"
num = "0.4.0" num = "0.4.0"
num_enum = "0.5.4" num_enum = "0.5.7"
openssh-keys = "0.5.0" openssh-keys = "0.5.0"
openssl = { version = "0.10.36", features = ["vendored"] } openssl = { version = "0.10.41", features = ["vendored"] }
patch-db = { version = "*", path = "../patch-db/patch-db", features = [ patch-db = { version = "*", path = "../patch-db/patch-db", features = [
"trace", "trace",
] } ] }
pbkdf2 = "0.11.0" pbkdf2 = "0.11.0"
pin-project = "1.0.8" pin-project = "1.0.11"
pkcs8 = { version = "0.9.0", features = ["std"] } pkcs8 = { version = "0.9.0", features = ["std"] }
platforms = "1.1.0"
prettytable-rs = "0.8.0" prettytable-rs = "0.8.0"
proptest = "1.0.0" proptest = "1.0.0"
proptest-derive = "0.3.0" proptest-derive = "0.3.0"
rand = "0.7.3" rand = { version = "0.8.5", features = ["std"] }
regex = "1.5.4" rand-old = { package = "rand", version = "0.7.3" }
reqwest = { version = "0.11.4", features = ["stream", "json", "socks"] } regex = "1.6.0"
reqwest_cookie_store = "0.2.0" reqwest = { version = "0.11.11", features = ["stream", "json", "socks"] }
rpassword = "5.0.1" reqwest_cookie_store = "0.3.0"
rpc-toolkit = { version = "*", path = "../rpc-toolkit/rpc-toolkit" } rpassword = "6.0.1"
rust-argon2 = "0.8.3" rpc-toolkit = "0.2.0"
rust-argon2 = "1.0.0"
scopeguard = "1.1" # because avahi-sys fucks your shit up scopeguard = "1.1" # because avahi-sys fucks your shit up
serde = { version = "1.0.130", features = ["derive", "rc"] } serde = { version = "1.0.139", features = ["derive", "rc"] }
serde_cbor = { package = "ciborium", version = "0.2.0" } serde_cbor = { package = "ciborium", version = "0.2.0" }
serde_json = "1.0.68" serde_json = "1.0.82"
serde_toml = { package = "toml", version = "0.5.8" } serde_toml = { package = "toml", version = "0.5.9" }
serde_yaml = "0.8.21" serde_with = { version = "1.14.0", features = ["macros", "json"] }
serde_yaml = "0.8.25"
sha2 = "0.10.2" sha2 = "0.10.2"
sha2-old = { package = "sha2", version = "0.9.8" } sha2-old = { package = "sha2", version = "0.9.9" }
simple-logging = "2.0" simple-logging = "2.0.2"
sqlx = { version = "0.5.11", features = [ sqlx = { version = "0.6.0", features = [
"chrono", "chrono",
"offline", "offline",
"runtime-tokio-rustls", "runtime-tokio-rustls",
"sqlite", "sqlite",
] } ] }
stderrlog = "0.5.1" stderrlog = "0.5.3"
tar = "0.4.37" tar = "0.4.38"
thiserror = "1.0.29" thiserror = "1.0.31"
tokio = { version = "1.15.0", features = ["full"] } tokio = { version = "1.19.2", features = ["full"] }
tokio-compat-02 = "0.2.0" tokio-compat-02 = "0.2.0"
tokio-stream = { version = "0.1.7", features = ["io-util", "sync"] } tokio-stream = { version = "0.1.9", features = ["io-util", "sync"] }
tokio-tar = { git = "https://github.com/dr-bonez/tokio-tar.git" } tokio-tar = { git = "https://github.com/dr-bonez/tokio-tar.git" }
tokio-tungstenite = "0.14.0" tokio-tungstenite = "0.17.1"
tokio-util = { version = "0.6.8", features = ["io"] } tokio-util = { version = "0.7.3", features = ["io"] }
torut = "0.2.0" torut = "0.2.1"
tracing = "0.1" tracing = "0.1.35"
tracing-error = "0.1" tracing-error = "0.2.0"
tracing-futures = "0.2" tracing-futures = "0.2.5"
tracing-subscriber = "0.2" tracing-subscriber = { version = "0.3.14", features = ["env-filter"] }
trust-dns-server = "0.21.2" trust-dns-server = "0.21.2"
typed-builder = "0.9.1" typed-builder = "0.10.0"
url = { version = "2.2.2", features = ["serde"] } url = { version = "2.2.2", features = ["serde"] }
[dependencies.serde_with]
features = ["macros", "json"]
version = "1.10.0"
[profile.dev.package.backtrace] [profile.dev.package.backtrace]
opt-level = 3 opt-level = 3

View File

@@ -9,7 +9,7 @@ use tracing::instrument;
use crate::config::{Config, ConfigSpec}; use crate::config::{Config, ConfigSpec};
use crate::context::RpcContext; use crate::context::RpcContext;
use crate::id::{ ImageId}; use crate::id::ImageId;
use crate::procedure::{PackageProcedure, ProcedureName}; use crate::procedure::{PackageProcedure, ProcedureName};
use crate::s9pk::manifest::PackageId; use crate::s9pk::manifest::PackageId;
use crate::util::serde::{display_serializable, parse_stdin_deserializable, IoFormat}; use crate::util::serde::{display_serializable, parse_stdin_deserializable, IoFormat};
@@ -99,7 +99,7 @@ impl Action {
} }
} }
fn display_action_result(action_result: ActionResult, matches: &ArgMatches<'_>) { fn display_action_result(action_result: ActionResult, matches: &ArgMatches) {
if matches.is_present("format") { if matches.is_present("format") {
return display_serializable(action_result, matches); return display_serializable(action_result, matches);
} }

View File

@@ -24,7 +24,7 @@ pub fn auth() -> Result<(), Error> {
Ok(()) Ok(())
} }
pub fn parse_metadata(_: &str, _: &ArgMatches<'_>) -> Result<Value, Error> { pub fn parse_metadata(_: &str, _: &ArgMatches) -> Result<Value, Error> {
Ok(serde_json::json!({ Ok(serde_json::json!({
"platforms": ["cli"], "platforms": ["cli"],
})) }))
@@ -52,7 +52,7 @@ async fn cli_login(
let password = if let Some(password) = password { let password = if let Some(password) = password {
password password
} else { } else {
rpassword::prompt_password_stdout("Password: ")? rpassword::prompt_password("Password: ")?
}; };
rpc_toolkit::command_helpers::call_remote( rpc_toolkit::command_helpers::call_remote(
@@ -169,7 +169,7 @@ pub async fn session() -> Result<(), Error> {
Ok(()) Ok(())
} }
fn display_sessions(arg: SessionList, matches: &ArgMatches<'_>) { fn display_sessions(arg: SessionList, matches: &ArgMatches) {
use prettytable::*; use prettytable::*;
if matches.is_present("format") { if matches.is_present("format") {
@@ -235,7 +235,7 @@ pub async fn list(
}) })
} }
fn parse_comma_separated(arg: &str, _: &ArgMatches<'_>) -> Result<Vec<String>, RpcError> { fn parse_comma_separated(arg: &str, _: &ArgMatches) -> Result<Vec<String>, RpcError> {
Ok(arg.split(",").map(|s| s.trim().to_owned()).collect()) Ok(arg.split(",").map(|s| s.trim().to_owned()).collect())
} }
@@ -267,14 +267,14 @@ async fn cli_reset_password(
let old_password = if let Some(old_password) = old_password { let old_password = if let Some(old_password) = old_password {
old_password old_password
} else { } else {
rpassword::prompt_password_stdout("Current Password: ")? rpassword::prompt_password("Current Password: ")?
}; };
let new_password = if let Some(new_password) = new_password { let new_password = if let Some(new_password) = new_password {
new_password new_password
} else { } else {
let new_password = rpassword::prompt_password_stdout("New Password: ")?; let new_password = rpassword::prompt_password("New Password: ")?;
if new_password != rpassword::prompt_password_stdout("Confirm: ")? { if new_password != rpassword::prompt_password("Confirm: ")? {
return Err(Error::new( return Err(Error::new(
eyre!("Passwords do not match"), eyre!("Passwords do not match"),
crate::ErrorKind::IncorrectPassword, crate::ErrorKind::IncorrectPassword,

View File

@@ -114,7 +114,7 @@ impl Serialize for OsBackup {
} }
} }
fn parse_comma_separated(arg: &str, _: &ArgMatches<'_>) -> Result<BTreeSet<PackageId>, Error> { fn parse_comma_separated(arg: &str, _: &ArgMatches) -> Result<BTreeSet<PackageId>, Error> {
arg.split(',') arg.split(',')
.map(|s| s.trim().parse().map_err(Error::from)) .map(|s| s.trim().parse().map_err(Error::from))
.collect() .collect()

View File

@@ -37,7 +37,7 @@ use crate::util::serde::IoFormat;
use crate::volume::{backup_dir, BACKUP_DIR, PKG_VOLUME_DIR}; use crate::volume::{backup_dir, BACKUP_DIR, PKG_VOLUME_DIR};
use crate::{Error, ResultExt}; use crate::{Error, ResultExt};
fn parse_comma_separated(arg: &str, _: &ArgMatches<'_>) -> Result<Vec<PackageId>, Error> { fn parse_comma_separated(arg: &str, _: &ArgMatches) -> Result<Vec<PackageId>, Error> {
arg.split(',') arg.split(',')
.map(|s| s.trim().parse().map_err(Error::from)) .map(|s| s.trim().parse().map_err(Error::from))
.collect() .collect()

View File

@@ -6,7 +6,7 @@ use chrono::{DateTime, Utc};
use clap::ArgMatches; use clap::ArgMatches;
use color_eyre::eyre::eyre; use color_eyre::eyre::eyre;
use digest::generic_array::GenericArray; use digest::generic_array::GenericArray;
use digest::{Digest, OutputSizeUser}; use digest::OutputSizeUser;
use rpc_toolkit::command; use rpc_toolkit::command;
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
use sha2::Sha256; use sha2::Sha256;
@@ -186,7 +186,7 @@ pub struct PackageBackupInfo {
pub timestamp: DateTime<Utc>, pub timestamp: DateTime<Utc>,
} }
fn display_backup_info(info: BackupInfo, matches: &ArgMatches<'_>) { fn display_backup_info(info: BackupInfo, matches: &ArgMatches) {
use prettytable::*; use prettytable::*;
if matches.is_present("format") { if matches.is_present("format") {

View File

@@ -7,20 +7,24 @@ use rpc_toolkit::run_cli;
use rpc_toolkit::yajrc::RpcError; use rpc_toolkit::yajrc::RpcError;
use serde_json::Value; use serde_json::Value;
lazy_static::lazy_static! {
static ref VERSION_STRING: String = Current::new().semver().to_string();
}
fn inner_main() -> Result<(), Error> { fn inner_main() -> Result<(), Error> {
run_cli!({ run_cli!({
command: embassy::main_api, command: embassy::main_api,
app: app => app app: app => app
.name("Embassy CLI") .name("Embassy CLI")
.version(Current::new().semver().to_string().as_str()) .version(&**VERSION_STRING)
.arg( .arg(
clap::Arg::with_name("config") clap::Arg::with_name("config")
.short("c") .short('c')
.long("config") .long("config")
.takes_value(true), .takes_value(true),
) )
.arg(Arg::with_name("host").long("host").short("h").takes_value(true)) .arg(Arg::with_name("host").long("host").short('h').takes_value(true))
.arg(Arg::with_name("proxy").long("proxy").short("p").takes_value(true)), .arg(Arg::with_name("proxy").long("proxy").short('p').takes_value(true)),
context: matches => { context: matches => {
EmbassyLogger::init(); EmbassyLogger::init();
CliContext::init(matches)? CliContext::init(matches)?

View File

@@ -210,7 +210,7 @@ fn main() {
let matches = clap::App::new("embassyd") let matches = clap::App::new("embassyd")
.arg( .arg(
clap::Arg::with_name("config") clap::Arg::with_name("config")
.short("c") .short('c')
.long("config") .long("config")
.takes_value(true), .takes_value(true),
) )

View File

@@ -6,15 +6,19 @@ use rpc_toolkit::run_cli;
use rpc_toolkit::yajrc::RpcError; use rpc_toolkit::yajrc::RpcError;
use serde_json::Value; use serde_json::Value;
lazy_static::lazy_static! {
static ref VERSION_STRING: String = Current::new().semver().to_string();
}
fn inner_main() -> Result<(), Error> { fn inner_main() -> Result<(), Error> {
run_cli!({ run_cli!({
command: embassy::portable_api, command: embassy::portable_api,
app: app => app app: app => app
.name("Embassy SDK") .name("Embassy SDK")
.version(Current::new().semver().to_string().as_str()) .version(&**VERSION_STRING)
.arg( .arg(
clap::Arg::with_name("config") clap::Arg::with_name("config")
.short("c") .short('c')
.long("config") .long("config")
.takes_value(true), .takes_value(true),
), ),

View File

@@ -287,7 +287,7 @@ fn main() {
let matches = clap::App::new("embassyd") let matches = clap::App::new("embassyd")
.arg( .arg(
clap::Arg::with_name("config") clap::Arg::with_name("config")
.short("c") .short('c')
.long("config") .long("config")
.takes_value(true), .takes_value(true),
) )

View File

@@ -16,7 +16,7 @@ impl CharSet {
self.0.iter().any(|r| r.0.contains(c)) self.0.iter().any(|r| r.0.contains(c))
} }
pub fn gen<R: Rng>(&self, rng: &mut R) -> char { pub fn gen<R: Rng>(&self, rng: &mut R) -> char {
let mut idx = rng.gen_range(0, self.1); let mut idx = rng.gen_range(0..self.1);
for r in &self.0 { for r in &self.0 {
if idx < r.1 { if idx < r.1 {
return std::convert::TryFrom::try_from( return std::convert::TryFrom::try_from(

View File

@@ -21,7 +21,7 @@ pub fn init(#[context] ctx: SdkContext) -> Result<(), Error> {
.with_ctx(|_| (crate::ErrorKind::Filesystem, parent.display().to_string()))?; .with_ctx(|_| (crate::ErrorKind::Filesystem, parent.display().to_string()))?;
} }
tracing::info!("Generating new developer key..."); tracing::info!("Generating new developer key...");
let keypair = Keypair::generate(&mut rand::thread_rng()); let keypair = Keypair::generate(&mut rand_old::thread_rng());
tracing::info!("Writing key to {}", ctx.developer_key_path.display()); tracing::info!("Writing key to {}", ctx.developer_key_path.display());
let keypair_bytes = ed25519::KeypairBytes { let keypair_bytes = ed25519::KeypairBytes {
secret_key: keypair.secret.to_bytes(), secret_key: keypair.secret.to_bytes(),

View File

@@ -20,7 +20,7 @@ pub fn disk() -> Result<(), Error> {
Ok(()) Ok(())
} }
fn display_disk_info(info: DiskListResponse, matches: &ArgMatches<'_>) { fn display_disk_info(info: DiskListResponse, matches: &ArgMatches) {
use prettytable::*; use prettytable::*;
if matches.is_present("format") { if matches.is_present("format") {

View File

@@ -45,7 +45,7 @@ use crate::s9pk::manifest::{Manifest, PackageId};
use crate::s9pk::reader::S9pkReader; use crate::s9pk::reader::S9pkReader;
use crate::status::{MainStatus, Status}; use crate::status::{MainStatus, Status};
use crate::util::io::{copy_and_shutdown, response_to_reader}; use crate::util::io::{copy_and_shutdown, response_to_reader};
use crate::util::serde::{display_serializable, IoFormat, Port}; use crate::util::serde::{display_serializable, Port};
use crate::util::{display_none, AsyncFileExt, Version}; use crate::util::{display_none, AsyncFileExt, Version};
use crate::version::{Current, VersionT}; use crate::version::{Current, VersionT};
use crate::volume::{asset_dir, script_dir}; use crate::volume::{asset_dir, script_dir};
@@ -121,9 +121,9 @@ impl std::fmt::Display for MinMax {
pub async fn install( pub async fn install(
#[context] ctx: RpcContext, #[context] ctx: RpcContext,
#[arg] id: String, #[arg] id: String,
#[arg(short = "m", long = "marketplace-url", rename = "marketplace-url")] #[arg(short = 'm', long = "marketplace-url", rename = "marketplace-url")]
marketplace_url: Option<Url>, marketplace_url: Option<Url>,
#[arg(short = "v", long = "version-spec", rename = "version-spec")] version_spec: Option< #[arg(short = 'v', long = "version-spec", rename = "version-spec")] version_spec: Option<
String, String,
>, >,
#[arg(long = "version-priority", rename = "version-priority")] version_priority: Option<MinMax>, #[arg(long = "version-priority", rename = "version-priority")] version_priority: Option<MinMax>,
@@ -143,7 +143,7 @@ pub async fn install(
version, version,
version_priority, version_priority,
Current::new().compat(), Current::new().compat(),
platforms::TARGET_ARCH, &*crate::ARCH,
)) ))
.await .await
.with_kind(crate::ErrorKind::Registry)? .with_kind(crate::ErrorKind::Registry)?
@@ -159,7 +159,7 @@ pub async fn install(
man.version, man.version,
version_priority, version_priority,
Current::new().compat(), Current::new().compat(),
platforms::TARGET_ARCH, &*crate::ARCH,
)) ))
.await .await
.with_kind(crate::ErrorKind::Registry)? .with_kind(crate::ErrorKind::Registry)?
@@ -191,7 +191,7 @@ pub async fn install(
id, id,
man.version, man.version,
Current::new().compat(), Current::new().compat(),
platforms::TARGET_ARCH, &*crate::ARCH,
)) ))
.await? .await?
.error_for_status()?, .error_for_status()?,
@@ -210,7 +210,7 @@ pub async fn install(
id, id,
man.version, man.version,
Current::new().compat(), Current::new().compat(),
platforms::TARGET_ARCH, &*crate::ARCH,
)) ))
.await? .await?
.error_for_status()?, .error_for_status()?,
@@ -229,7 +229,7 @@ pub async fn install(
id, id,
man.version, man.version,
Current::new().compat(), Current::new().compat(),
platforms::TARGET_ARCH, &*crate::ARCH,
)) ))
.await? .await?
.error_for_status()?, .error_for_status()?,
@@ -959,7 +959,7 @@ pub async fn install_s9pk<R: AsyncRead + AsyncSeek + Unpin>(
dep, dep,
info.version, info.version,
Current::new().compat(), Current::new().compat(),
platforms::TARGET_ARCH, &*crate::ARCH,
)) ))
.await .await
.with_kind(crate::ErrorKind::Registry)? .with_kind(crate::ErrorKind::Registry)?
@@ -994,7 +994,7 @@ pub async fn install_s9pk<R: AsyncRead + AsyncSeek + Unpin>(
dep, dep,
info.version, info.version,
Current::new().compat(), Current::new().compat(),
platforms::TARGET_ARCH, &*crate::ARCH,
)) ))
.await .await
.with_kind(crate::ErrorKind::Registry)?; .with_kind(crate::ErrorKind::Registry)?;

View File

@@ -1,6 +1,13 @@
pub const DEFAULT_MARKETPLACE: &str = "https://marketplace.start9.com"; pub const DEFAULT_MARKETPLACE: &str = "https://marketplace.start9.com";
pub const BUFFER_SIZE: usize = 1024; pub const BUFFER_SIZE: usize = 1024;
pub const HOST_IP: [u8; 4] = [172, 18, 0, 1]; pub const HOST_IP: [u8; 4] = [172, 18, 0, 1];
pub const TARGET: &str = current_platform::CURRENT_PLATFORM;
lazy_static::lazy_static! {
pub static ref ARCH: &'static str = {
let (arch, _) = TARGET.split_once("-").unwrap();
arch
};
}
pub mod action; pub mod action;
pub mod auth; pub mod auth;

View File

@@ -111,7 +111,7 @@ pub enum LogSource {
Container(PackageId), Container(PackageId),
} }
pub fn display_logs(all: LogResponse, _: &ArgMatches<'_>) { pub fn display_logs(all: LogResponse, _: &ArgMatches) {
for entry in all.entries.iter() { for entry in all.entries.iter() {
println!("{}", entry); println!("{}", entry);
} }

View File

@@ -229,7 +229,10 @@ async fn run_main(
break; break;
} }
} }
Err(bollard::errors::Error::DockerResponseNotFoundError { .. }) => (), Err(bollard::errors::Error::DockerResponseServerError {
status_code: 404, // NOT FOUND
..
}) => (),
Err(e) => Err(e)?, Err(e) => Err(e)?,
} }
match futures::poll!(&mut runtime) { match futures::poll!(&mut runtime) {
@@ -375,8 +378,13 @@ impl Manager {
.or_else(|e| { .or_else(|e| {
if matches!( if matches!(
e, e,
bollard::errors::Error::DockerResponseConflictError { .. } bollard::errors::Error::DockerResponseServerError {
| bollard::errors::Error::DockerResponseNotFoundError { .. } status_code: 409, // CONFLICT
..
} | bollard::errors::Error::DockerResponseServerError {
status_code: 404, // NOT FOUND
..
}
) { ) {
Ok(()) Ok(())
} else { } else {
@@ -413,9 +421,18 @@ impl Manager {
) )
.await .await
{ {
Err(bollard::errors::Error::DockerResponseNotFoundError { .. }) Err(bollard::errors::Error::DockerResponseServerError {
| Err(bollard::errors::Error::DockerResponseConflictError { .. }) status_code: 404, // NOT FOUND
| Err(bollard::errors::Error::DockerResponseNotModifiedError { .. }) => (), // Already stopped ..
})
| Err(bollard::errors::Error::DockerResponseServerError {
status_code: 409, // CONFLICT
..
})
| Err(bollard::errors::Error::DockerResponseServerError {
status_code: 304, // NOT MODIFIED
..
}) => (), // Already stopped
a => a?, a => a?,
}; };
self.shared.status.store( self.shared.status.store(
@@ -566,9 +583,18 @@ async fn stop(shared: &ManagerSharedState) -> Result<(), Error> {
) )
.await .await
{ {
Err(bollard::errors::Error::DockerResponseNotFoundError { .. }) Err(bollard::errors::Error::DockerResponseServerError {
| Err(bollard::errors::Error::DockerResponseConflictError { .. }) status_code: 404, // NOT FOUND
| Err(bollard::errors::Error::DockerResponseNotModifiedError { .. }) => (), // Already stopped ..
})
| Err(bollard::errors::Error::DockerResponseServerError {
status_code: 409, // CONFLICT
..
})
| Err(bollard::errors::Error::DockerResponseServerError {
status_code: 304, // NOT MODIFIED
..
}) => (), // Already stopped
a => a?, a => a?,
}; };
shared.status.store( shared.status.store(

View File

@@ -32,7 +32,7 @@ pub fn tor() -> Result<(), Error> {
Ok(()) Ok(())
} }
fn display_services(services: Vec<OnionAddressV3>, matches: &ArgMatches<'_>) { fn display_services(services: Vec<OnionAddressV3>, matches: &ArgMatches) {
use prettytable::*; use prettytable::*;
if matches.is_present("format") { if matches.is_present("format") {

View File

@@ -188,7 +188,7 @@ pub struct WifiListOut {
security: Vec<String>, security: Vec<String>,
} }
pub type WifiList = HashMap<Ssid, WifiListInfo>; pub type WifiList = HashMap<Ssid, WifiListInfo>;
fn display_wifi_info(info: WiFiInfo, matches: &ArgMatches<'_>) { fn display_wifi_info(info: WiFiInfo, matches: &ArgMatches) {
use prettytable::*; use prettytable::*;
if matches.is_present("format") { if matches.is_present("format") {
@@ -252,7 +252,7 @@ fn display_wifi_info(info: WiFiInfo, matches: &ArgMatches<'_>) {
table_global.print_tty(false); table_global.print_tty(false);
} }
fn display_wifi_list(info: Vec<WifiListOut>, matches: &ArgMatches<'_>) { fn display_wifi_list(info: Vec<WifiListOut>, matches: &ArgMatches) {
use prettytable::*; use prettytable::*;
if matches.is_present("format") { if matches.is_present("format") {
@@ -764,7 +764,7 @@ pub async fn interface_connected(interface: &str) -> Result<bool, Error> {
Ok(v.is_some()) Ok(v.is_some())
} }
pub fn country_code_parse(code: &str, _matches: &ArgMatches<'_>) -> Result<CountryCode, Error> { pub fn country_code_parse(code: &str, _matches: &ArgMatches) -> Result<CountryCode, Error> {
CountryCode::for_alpha2(code).map_err(|_| { CountryCode::for_alpha2(code).map_err(|_| {
Error::new( Error::new(
color_eyre::eyre::eyre!("Invalid Country Code: {}", code), color_eyre::eyre::eyre!("Invalid Country Code: {}", code),

View File

@@ -127,7 +127,11 @@ impl DockerProcedure {
) )
.await .await
{ {
Ok(()) | Err(bollard::errors::Error::DockerResponseNotFoundError { .. }) => Ok(()), Ok(())
| Err(bollard::errors::Error::DockerResponseServerError {
status_code: 404, // NOT FOUND
..
}) => Ok(()),
Err(e) => Err(e), Err(e) => Err(e),
}?; }?;
} }

View File

@@ -9,7 +9,7 @@ use crate::procedure::ProcedureName;
use crate::s9pk::manifest::{Manifest, PackageId}; use crate::s9pk::manifest::{Manifest, PackageId};
use crate::{Error, ErrorKind}; use crate::{Error, ErrorKind};
pub fn display_properties(response: Value, _: &ArgMatches<'_>) { pub fn display_properties(response: Value, _: &ArgMatches) {
println!("{}", response); println!("{}", response);
} }

View File

@@ -114,7 +114,7 @@ pub async fn delete(#[context] ctx: RpcContext, #[arg] fingerprint: String) -> R
} }
} }
fn display_all_ssh_keys(all: Vec<SshKeyResponse>, matches: &ArgMatches<'_>) { fn display_all_ssh_keys(all: Vec<SshKeyResponse>, matches: &ArgMatches) {
use prettytable::*; use prettytable::*;
if matches.is_present("format") { if matches.is_present("format") {

View File

@@ -76,7 +76,7 @@ pub enum UpdateResult {
Updating, Updating,
} }
fn display_update_result(status: WithRevision<UpdateResult>, _: &ArgMatches<'_>) { fn display_update_result(status: WithRevision<UpdateResult>, _: &ArgMatches) {
match status.response { match status.response {
UpdateResult::Updating => { UpdateResult::Updating => {
println!("Updating..."); println!("Updating...");
@@ -139,7 +139,7 @@ async fn maybe_do_update(
"{}/eos/v0/latest?eos-version={}&arch={}", "{}/eos/v0/latest?eos-version={}&arch={}",
marketplace_url, marketplace_url,
Current::new().semver(), Current::new().semver(),
platforms::TARGET_ARCH, &*crate::ARCH,
)) ))
.await .await
.with_kind(ErrorKind::Network)? .with_kind(ErrorKind::Network)?
@@ -304,7 +304,7 @@ impl std::fmt::Display for EosUrl {
self.base, self.base,
self.version, self.version,
Current::new().semver(), Current::new().semver(),
platforms::TARGET_ARCH, &*crate::ARCH,
) )
} }
} }

View File

@@ -412,7 +412,7 @@ impl IoFormat {
} }
} }
pub fn display_serializable<T: Serialize>(t: T, matches: &ArgMatches<'_>) { pub fn display_serializable<T: Serialize>(t: T, matches: &ArgMatches) {
let format = match matches.value_of("format").map(|f| f.parse()) { let format = match matches.value_of("format").map(|f| f.parse()) {
Some(Ok(f)) => f, Some(Ok(f)) => f,
Some(Err(_)) => { Some(Err(_)) => {
@@ -428,7 +428,7 @@ pub fn display_serializable<T: Serialize>(t: T, matches: &ArgMatches<'_>) {
pub fn parse_stdin_deserializable<T: for<'de> Deserialize<'de>>( pub fn parse_stdin_deserializable<T: for<'de> Deserialize<'de>>(
stdin: &mut std::io::Stdin, stdin: &mut std::io::Stdin,
matches: &ArgMatches<'_>, matches: &ArgMatches,
) -> Result<T, Error> { ) -> Result<T, Error> {
let format = match matches.value_of("format").map(|f| f.parse()) { let format = match matches.value_of("format").map(|f| f.parse()) {
Some(Ok(f)) => f, Some(Ok(f)) => f,

169
libs/Cargo.lock generated
View File

@@ -18,7 +18,7 @@ version = "0.7.6"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fcb51a0695d8f838b1ee009b3fbf66bda078cd64590202a864a8f3e8c4315c47" checksum = "fcb51a0695d8f838b1ee009b3fbf66bda078cd64590202a864a8f3e8c4315c47"
dependencies = [ dependencies = [
"getrandom 0.2.6", "getrandom",
"once_cell", "once_cell",
"version_check", "version_check",
] ]
@@ -241,7 +241,7 @@ dependencies = [
"cfg-if", "cfg-if",
"hashbrown 0.12.1", "hashbrown 0.12.1",
"lock_api", "lock_api",
"parking_lot_core 0.9.3", "parking_lot_core",
] ]
[[package]] [[package]]
@@ -291,7 +291,7 @@ dependencies = [
"libc", "libc",
"log", "log",
"once_cell", "once_cell",
"parking_lot 0.12.1", "parking_lot",
"pin-project", "pin-project",
"serde", "serde",
"serde_json", "serde_json",
@@ -575,17 +575,6 @@ dependencies = [
"version_check", "version_check",
] ]
[[package]]
name = "getrandom"
version = "0.1.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8fc3cb4d91f53b50155bdcfd23f6a4c39ae1969c2ae85982b135750cccaf5fce"
dependencies = [
"cfg-if",
"libc",
"wasi 0.9.0+wasi-snapshot-preview1",
]
[[package]] [[package]]
name = "getrandom" name = "getrandom"
version = "0.2.6" version = "0.2.6"
@@ -762,7 +751,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "543682c9082b25e63d03b5acbd65ad111fd49dd93e70843e5175db4ff81d606b" checksum = "543682c9082b25e63d03b5acbd65ad111fd49dd93e70843e5175db4ff81d606b"
dependencies = [ dependencies = [
"bitmaps", "bitmaps",
"rand_core 0.6.3", "rand_core",
"rand_xoshiro", "rand_xoshiro",
"sized-chunks", "sized-chunks",
"typenum", "typenum",
@@ -1035,24 +1024,14 @@ checksum = "2a60c7ce501c71e03a9c9c0d35b861413ae925bd979cc7a4e30d060069aaac8d"
[[package]] [[package]]
name = "mio" name = "mio"
version = "0.7.14" version = "0.8.4"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8067b404fe97c70829f082dec8bcf4f71225d7eaea1d8645349cb76fa06205cc" checksum = "57ee1c23c7c63b0c9250c339ffdc69255f110b298b901b9f6c82547b7b87caaf"
dependencies = [ dependencies = [
"libc", "libc",
"log", "log",
"miow", "wasi 0.11.0+wasi-snapshot-preview1",
"ntapi", "windows-sys",
"winapi",
]
[[package]]
name = "miow"
version = "0.3.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b9f1c5b025cda876f66ef43a113f91ebc9f4ccef34843000e0adf6ebbab84e21"
dependencies = [
"winapi",
] ]
[[package]] [[package]]
@@ -1061,7 +1040,7 @@ version = "0.1.0"
dependencies = [ dependencies = [
"emver", "emver",
"patch-db", "patch-db",
"rand 0.7.3", "rand",
"serde", "serde",
"thiserror", "thiserror",
] ]
@@ -1128,15 +1107,6 @@ dependencies = [
"version_check", "version_check",
] ]
[[package]]
name = "ntapi"
version = "0.3.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c28774a7fd2fbb4f0babd8237ce554b73af68021b5f695a3cebd6c59bac0980f"
dependencies = [
"winapi",
]
[[package]] [[package]]
name = "num-bigint" name = "num-bigint"
version = "0.4.3" version = "0.4.3"
@@ -1229,17 +1199,6 @@ dependencies = [
"vcpkg", "vcpkg",
] ]
[[package]]
name = "parking_lot"
version = "0.11.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7d17b78036a60663b797adeaee46f5c9dfebb86948d1255007a1d6be0271ff99"
dependencies = [
"instant",
"lock_api",
"parking_lot_core 0.8.5",
]
[[package]] [[package]]
name = "parking_lot" name = "parking_lot"
version = "0.12.1" version = "0.12.1"
@@ -1247,21 +1206,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f" checksum = "3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f"
dependencies = [ dependencies = [
"lock_api", "lock_api",
"parking_lot_core 0.9.3", "parking_lot_core",
]
[[package]]
name = "parking_lot_core"
version = "0.8.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d76e8e1493bcac0d2766c42737f34458f1c8c50c0d23bcb24ea953affb273216"
dependencies = [
"cfg-if",
"instant",
"libc",
"redox_syscall",
"smallvec",
"winapi",
] ]
[[package]] [[package]]
@@ -1342,7 +1287,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5d5285893bb5eb82e6aaf5d59ee909a06a16737a8970984dd7746ba9283498d6" checksum = "5d5285893bb5eb82e6aaf5d59ee909a06a16737a8970984dd7746ba9283498d6"
dependencies = [ dependencies = [
"phf_shared", "phf_shared",
"rand 0.8.5", "rand",
] ]
[[package]] [[package]]
@@ -1370,18 +1315,18 @@ dependencies = [
[[package]] [[package]]
name = "pin-project" name = "pin-project"
version = "1.0.10" version = "1.0.11"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "58ad3879ad3baf4e44784bc6a718a8698867bb991f8ce24d1bcbe2cfb4c3a75e" checksum = "78203e83c48cffbe01e4a2d35d566ca4de445d79a85372fc64e378bfc812a260"
dependencies = [ dependencies = [
"pin-project-internal", "pin-project-internal",
] ]
[[package]] [[package]]
name = "pin-project-internal" name = "pin-project-internal"
version = "1.0.10" version = "1.0.11"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "744b6f092ba29c3650faf274db506afd39944f48420f6c86b17cfe0ee1cb36bb" checksum = "710faf75e1b33345361201d36d04e98ac1ed8909151a017ed384700836104c74"
dependencies = [ dependencies = [
"proc-macro2", "proc-macro2",
"quote", "quote",
@@ -1469,19 +1414,6 @@ version = "0.5.3"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "941ba9d78d8e2f7ce474c015eea4d9c6d25b6a3327f9832ee29a4de27f91bbb8" checksum = "941ba9d78d8e2f7ce474c015eea4d9c6d25b6a3327f9832ee29a4de27f91bbb8"
[[package]]
name = "rand"
version = "0.7.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6a6b1679d49b24bbfe0c803429aa1874472f50d9b363131f0e89fc356b544d03"
dependencies = [
"getrandom 0.1.16",
"libc",
"rand_chacha 0.2.2",
"rand_core 0.5.1",
"rand_hc",
]
[[package]] [[package]]
name = "rand" name = "rand"
version = "0.8.5" version = "0.8.5"
@@ -1489,18 +1421,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404"
dependencies = [ dependencies = [
"libc", "libc",
"rand_chacha 0.3.1", "rand_chacha",
"rand_core 0.6.3", "rand_core",
]
[[package]]
name = "rand_chacha"
version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f4c8ed856279c9737206bf725bf36935d8666ead7aa69b52be55af369d193402"
dependencies = [
"ppv-lite86",
"rand_core 0.5.1",
] ]
[[package]] [[package]]
@@ -1510,16 +1432,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88"
dependencies = [ dependencies = [
"ppv-lite86", "ppv-lite86",
"rand_core 0.6.3", "rand_core",
]
[[package]]
name = "rand_core"
version = "0.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "90bde5296fc891b0cef12a6d03ddccc162ce7b2aff54160af9338f8d40df6d19"
dependencies = [
"getrandom 0.1.16",
] ]
[[package]] [[package]]
@@ -1528,16 +1441,7 @@ version = "0.6.3"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d34f1408f55294453790c48b2f1ebbb1c5b4b7563eb1f418bcfcfdbb06ebb4e7" checksum = "d34f1408f55294453790c48b2f1ebbb1c5b4b7563eb1f418bcfcfdbb06ebb4e7"
dependencies = [ dependencies = [
"getrandom 0.2.6", "getrandom",
]
[[package]]
name = "rand_hc"
version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ca3129af7b92a17112d59ad498c6f81eaf463253766b90396d39ea7a39d6613c"
dependencies = [
"rand_core 0.5.1",
] ]
[[package]] [[package]]
@@ -1546,7 +1450,7 @@ version = "0.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6f97cdb2a36ed4183de61b2f824cc45c9f1037f28afe0a322e9fff4c108b5aaa" checksum = "6f97cdb2a36ed4183de61b2f824cc45c9f1037f28afe0a322e9fff4c108b5aaa"
dependencies = [ dependencies = [
"rand_core 0.6.3", "rand_core",
] ]
[[package]] [[package]]
@@ -1719,9 +1623,9 @@ checksum = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3"
[[package]] [[package]]
name = "serde" name = "serde"
version = "1.0.137" version = "1.0.139"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "61ea8d54c77f8315140a05f4c7237403bf38b72704d031543aa1d16abbf517d1" checksum = "0171ebb889e45aa68b44aee0859b3eede84c6f5f5c228e6f140c0b2a0a46cad6"
dependencies = [ dependencies = [
"serde_derive", "serde_derive",
] ]
@@ -1736,9 +1640,9 @@ dependencies = [
[[package]] [[package]]
name = "serde_derive" name = "serde_derive"
version = "1.0.137" version = "1.0.139"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1f26faba0c3959972377d3b2d306ee9f71faee9714294e41bb777f83f88578be" checksum = "dc1d3230c1de7932af58ad8ffbe1d784bd55efd5a9d84ac24f69c72d83543dfb"
dependencies = [ dependencies = [
"proc-macro2", "proc-macro2",
"quote", "quote",
@@ -1747,9 +1651,9 @@ dependencies = [
[[package]] [[package]]
name = "serde_json" name = "serde_json"
version = "1.0.81" version = "1.0.82"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9b7ce2b32a1aed03c558dc61a5cd328f15aff2dbc17daad8fb8af04d2100e15c" checksum = "82c2c1fdcd807d1098552c5b9a36e425e42e9fbd7c6a37a8425f390f781f7fa7"
dependencies = [ dependencies = [
"indexmap", "indexmap",
"itoa", "itoa",
@@ -1887,7 +1791,7 @@ checksum = "213494b7a2b503146286049378ce02b482200519accc31872ee8be91fa820a08"
dependencies = [ dependencies = [
"new_debug_unreachable", "new_debug_unreachable",
"once_cell", "once_cell",
"parking_lot 0.12.1", "parking_lot",
"phf_shared", "phf_shared",
"precomputed-hash", "precomputed-hash",
"serde", "serde",
@@ -2357,9 +2261,9 @@ checksum = "cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c"
[[package]] [[package]]
name = "tokio" name = "tokio"
version = "1.15.0" version = "1.19.2"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fbbf1c778ec206785635ce8ad57fe52b3009ae9e0c9f574a728f3049d3e55838" checksum = "c51a52ed6686dd62c320f9b89299e9dfb46f730c7a48e635c19f21d116cb1439"
dependencies = [ dependencies = [
"bytes", "bytes",
"libc", "libc",
@@ -2367,9 +2271,10 @@ dependencies = [
"mio", "mio",
"num_cpus", "num_cpus",
"once_cell", "once_cell",
"parking_lot 0.11.2", "parking_lot",
"pin-project-lite", "pin-project-lite",
"signal-hook-registry", "signal-hook-registry",
"socket2",
"tokio-macros", "tokio-macros",
"winapi", "winapi",
] ]
@@ -2613,18 +2518,18 @@ dependencies = [
"try-lock", "try-lock",
] ]
[[package]]
name = "wasi"
version = "0.9.0+wasi-snapshot-preview1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cccddf32554fecc6acb585f82a32a72e28b48f8c4c1883ddfeeeaa96f7d8e519"
[[package]] [[package]]
name = "wasi" name = "wasi"
version = "0.10.2+wasi-snapshot-preview1" version = "0.10.2+wasi-snapshot-preview1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fd6fbd9a79829dd1ad0cc20627bf1ed606756a7f77edff7b66b7064f9cb327c6" checksum = "fd6fbd9a79829dd1ad0cc20627bf1ed606756a7f77edff7b66b7064f9cb327c6"
[[package]]
name = "wasi"
version = "0.11.0+wasi-snapshot-preview1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423"
[[package]] [[package]]
name = "wasm-bindgen" name = "wasm-bindgen"
version = "0.2.81" version = "0.2.81"

View File

@@ -6,6 +6,6 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies] [dependencies]
pin-project = "1.0.8" pin-project = "1.0.11"
tokio = { version = "1.15.*", features = ["full"] } tokio = { version = "1.19.2", features = ["full"] }
models = { path = "../models" } models = { path = "../models" }

View File

@@ -6,11 +6,11 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies] [dependencies]
dashmap = "5.1.0" dashmap = "5.3.4"
deno_core = "=0.136.0" deno_core = "=0.136.0"
deno_ast = { version = "=0.15.0", features = ["transpiling"] } deno_ast = { version = "=0.15.0", features = ["transpiling"] }
dprint-swc-ext = "=0.1.1" dprint-swc-ext = "=0.1.1"
reqwest = { version = "0.11.4" } reqwest = { version = "0.11.11" }
swc_atoms = "=0.2.11" swc_atoms = "=0.2.11"
swc_common = "=0.18.7" swc_common = "=0.18.7"
swc_config = "=0.1.1" swc_config = "=0.1.1"
@@ -35,7 +35,7 @@ swc_visit = "=0.3.0"
swc_visit_macros = "=0.3.1" swc_visit_macros = "=0.3.1"
models = { path = "../models" } models = { path = "../models" }
helpers = { path = "../helpers" } helpers = { path = "../helpers" }
serde = { version = "1.0.*", features = ["derive", "rc"] } serde = { version = "1.0", features = ["derive", "rc"] }
serde_json = "1.0.*" serde_json = "1.0"
tokio = { version = "1.*.*", features = ["full"] } tokio = { version = "1", features = ["full"] }
tracing = "0.1" tracing = "0.1"

View File

@@ -9,7 +9,7 @@ edition = "2021"
patch-db = { version = "*", path = "../../patch-db/patch-db", features = [ patch-db = { version = "*", path = "../../patch-db/patch-db", features = [
"trace", "trace",
] } ] }
serde = { version = "1.0.*", features = ["derive", "rc"] } serde = { version = "1.0", features = ["derive", "rc"] }
thiserror = "1.0.*" thiserror = "1.0"
emver = { version = "0.1.6", features = ["serde"] } emver = { version = "0.1", features = ["serde"] }
rand = "0.7.*" rand = "0.8"

View File

@@ -6,6 +6,6 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies] [dependencies]
dashmap = "5.1.0" dashmap = "5.3.4"
deno_core = "0.136.0" deno_core = "=0.136.0"
deno_ast = {version="0.15.0", features = ["transpiling"]} deno_ast = { version = "=0.15.0", features = ["transpiling"] }

Submodule rpc-toolkit deleted from b4d19d71e0