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

19
Cargo.lock generated
View file

@ -244,7 +244,7 @@ dependencies = [
name = "binstalk"
version = "0.15.0"
dependencies = [
"atomic-file-install",
"binstalk-bins",
"binstalk-downloader",
"binstalk-fetchers",
"binstalk-registry",
@ -254,13 +254,11 @@ dependencies = [
"compact_str",
"detect-targets",
"either",
"home",
"itertools",
"jobslot",
"leon",
"maybe-owned",
"miette",
"normalize-path",
"semver",
"strum",
"target-lexicon",
@ -271,6 +269,20 @@ dependencies = [
"url",
]
[[package]]
name = "binstalk-bins"
version = "0.0.0"
dependencies = [
"atomic-file-install",
"binstalk-types",
"compact_str",
"leon",
"miette",
"normalize-path",
"thiserror",
"tracing",
]
[[package]]
name = "binstalk-downloader"
version = "0.7.0"
@ -520,6 +532,7 @@ dependencies = [
"file-format",
"fs-lock",
"gh-token",
"home",
"log",
"miette",
"mimalloc",