mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-24 22:30:03 +00:00
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:
parent
76c72469eb
commit
0c5a65fb35
14 changed files with 114 additions and 87 deletions
|
@ -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 }
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue