Refactor: Extract new crate binstalk-registry (#1289)

To speedup codegen of `binstalk` and enable it to be reused.

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2023-08-13 17:16:53 +10:00 committed by GitHub
parent 6c801a97ae
commit 623f7ff4ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 373 additions and 127 deletions

33
Cargo.lock generated
View file

@ -246,8 +246,8 @@ version = "0.15.0"
dependencies = [
"async-trait",
"atomic-file-install",
"base16",
"binstalk-downloader",
"binstalk-registry",
"binstalk-types",
"cargo-toml-workspace",
"command-group",
@ -264,18 +264,13 @@ dependencies = [
"normalize-path",
"once_cell",
"semver",
"serde",
"serde_json",
"sha2",
"strum",
"target-lexicon",
"tempfile",
"thiserror",
"tokio",
"toml_edit",
"tracing",
"url",
"xz2",
]
[[package]]
@ -335,6 +330,32 @@ dependencies = [
"url",
]
[[package]]
name = "binstalk-registry"
version = "0.0.0"
dependencies = [
"async-trait",
"base16",
"binstalk-downloader",
"binstalk-types",
"cargo-toml-workspace",
"compact_str",
"leon",
"miette",
"normalize-path",
"once_cell",
"semver",
"serde",
"serde_json",
"sha2",
"tempfile",
"thiserror",
"tokio",
"toml_edit",
"tracing",
"url",
]
[[package]]
name = "binstalk-types"
version = "0.5.0"