Refactor: Extract new crate binstalk-bins (#1294)

To reduce `binstalk` codegen and enable reuse of it.

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2023-08-16 07:48:42 +10:00 committed by GitHub
parent 76c72469eb
commit 0c5a65fb35
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 114 additions and 87 deletions

View file

@ -30,6 +30,7 @@ dirs = "5.0.1"
file-format = { version = "0.18.0", default-features = false }
fs-lock = { version = "0.1.0", path = "../fs-lock" }
gh-token = "0.1.2"
home = "0.5.5"
log = { version = "0.4.18", features = ["std"] }
miette = "5.9.0"
mimalloc = { version = "0.1.37", default-features = false, optional = true }

View file

@ -15,7 +15,6 @@ use binstalk::{
remote::{Certificate, Client},
tasks::AutoAbortJoinHandle,
},
home::cargo_home,
ops::{
self,
resolve::{CrateName, Resolution, ResolutionFetch, VersionReqExt},
@ -25,6 +24,7 @@ use binstalk::{
use binstalk_manifests::cargo_config::Config;
use binstalk_manifests::cargo_toml_binstall::PkgOverride;
use file_format::FileFormat;
use home::cargo_home;
use log::LevelFilter;
use miette::{miette, Result, WrapErr};
use tokio::task::block_in_place;

View file

@ -196,6 +196,7 @@ pub fn logging(log_level: LevelFilter, json_output: bool) {
let allowed_targets = (log_level != LevelFilter::Trace).then_some([
"atomic_file_install",
"binstalk",
"binstalk_bins",
"binstalk_downloader",
"binstalk_fetchers",
"binstalk_registry",