Refactor: Extract new crate binstalk-fetchers (#1291)

To reduce `binstalk` codegen and enable better reuse.

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2023-08-14 13:20:34 +10:00 committed by GitHub
parent 623f7ff4ed
commit 76c72469eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 1008 additions and 122 deletions

View file

@ -0,0 +1,31 @@
[package]
name = "binstalk-fetchers"
version = "0.0.0"
edition = "2021"
description = "The binstall fetchers"
repository = "https://github.com/cargo-bins/cargo-binstall"
documentation = "https://docs.rs/binstalk-fetchers"
rust-version = "1.65.0"
authors = ["Jiahao XU <Jiahao_XU@outlook.com>"]
license = "GPL-3.0-only"
[dependencies]
async-trait = "0.1.68"
binstalk-downloader = { version = "0.7.0", path = "../binstalk-downloader", default-features = false, features = ["gh-api-client"] }
binstalk-types = { version = "0.5.0", path = "../binstalk-types" }
compact_str = { version = "0.7.0" }
either = "1.8.1"
itertools = "0.11.0"
leon = { version = "2.0.1", path = "../leon", features = ["miette"] }
leon-macros = { version = "1.0.0", path = "../leon-macros" }
miette = "5.9.0"
once_cell = "1.18.0"
strum = "0.25.0"
thiserror = "1.0.40"
tokio = { version = "1.30.0", features = ["rt", "sync"], default-features = false }
tracing = "0.1.37"
url = "2.3.1"
[dev-dependencies]
binstalk-downloader = { version = "0.7.0", path = "../binstalk-downloader" }