mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-22 05:28:42 +00:00

* Refactor: Create new crate binstalk-git-repo-api Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * Fix CI lint warnings Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * Fix `just check`: Rm deleted features from `cargo-hack` check Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * Refactor: Extract new mod error Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * Ret artifact url in `has_release_artifact` So that we can use it to download from private repositories. Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * Move `test_graph_ql_error_type` to mod `error` Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * Fix running `cargo test` in `binstalk-git-repo-api`` Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * Remove unnecessary import in mod `error::test` Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * Rename mod `request`` to `release_artifacts` Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * Impl draft version of fetching repo info Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * Refactor: Move `HasReleaseArtifacts` failure variants into `GhApiError` Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * Refactor: Use `GhRepo` in `GhRelease` Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * Fix testing Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * Refactor: Return `'static` future Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * Refactor: Make sure `'static` Future is returned To make it easier to create generic function Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * Add logging to unit testing Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * Fix unit testing Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * Refactor: Extract new fn `GhApiClient::do_fetch` Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * Rm unused `percent_encode_http_url_path` Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * Fix `cargo test` run on CI `cargo test` run all tests in one process. As such, `set_global_default` would fail on the second call. Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * Optimize `GhApiClient::do_fetch`: Avoid unnecessary restful API call Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * Refactor: Rm param `auth_token` for restful API fn which is always set to `None` Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * Impl new API `GhApiClient::get_repo_info` Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * Fix unit test for `GhApiClient::get_repo_info` Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * Refactor testing: Parameter-ize testing Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * Parallelise `test_get_repo_info` Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * Refactor: Create parameter-ised `test_has_release_artifact` Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * Parallelize `test_has_release_artifact` Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * Refactor: `gh_api_client::test::create_client` shall not be `async` as there is no `.await` in it. Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * Return `Url` in `GhApiClient::has_release_artifact` Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * Impl new API `GhApiClient::download_artifact` Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * Remove unused deps added to binstalk-git-repo-api Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * Fix clippy lints Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * Add new API `GhApiClient::remote_client` Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * Add `GhApiClient::has_gh_token` Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * Add `GhRepo::try_extract_from_url` Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * Rename `ReleaseArtifactUrl` to `GhReleaseArtifactUrl` Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * Add new fn `Download::with_data_verifier` Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * feature: Support private repository Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * Fix clippy lints Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * Add e2e-test/private-github-repo Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * Fix clippy lints Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * Fix `launch_baseline_find_tasks`: Retry on rate limit Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * Fix test failure: Retry on rate limit Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * Temporarily enable debug output for e2e-test-private-github-repo Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * Fix `get_repo_info`: Retry on rate limit Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * Improve `debug!` logging Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * Add more debug logging Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * Add more debugging Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * Add more debug logging Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * Apply suggestions from code review * Fix compilation Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * Fix cargo fmt Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * Add crate binstalk-git-repo-api to release-pr.yml * Update crates/binstalk-git-repo-api/Cargo.toml * Apply suggestions from code review * Update crates/binstalk/Cargo.toml --------- Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
71 lines
2.4 KiB
TOML
71 lines
2.4 KiB
TOML
[package]
|
|
name = "binstalk"
|
|
description = "The binstall toolkit (library interface)"
|
|
repository = "https://github.com/cargo-bins/cargo-binstall"
|
|
documentation = "https://docs.rs/binstalk"
|
|
version = "0.23.1"
|
|
rust-version = "1.65.0"
|
|
authors = ["ryan <ryan@kurte.nz>"]
|
|
edition = "2021"
|
|
license = "GPL-3.0-only"
|
|
|
|
[dependencies]
|
|
binstalk-bins = { version = "0.4.0", path = "../binstalk-bins" }
|
|
binstalk-downloader = { version = "0.10.3", path = "../binstalk-downloader", default-features = false }
|
|
binstalk-git-repo-api = { version = "0.0.0", path = "../binstalk-git-repo-api" }
|
|
binstalk-fetchers = { version = "0.4.1", path = "../binstalk-fetchers", features = [
|
|
"quickinstall",
|
|
] }
|
|
binstalk-registry = { version = "0.8.0", path = "../binstalk-registry" }
|
|
binstalk-types = { version = "0.7.0", path = "../binstalk-types" }
|
|
cargo-toml-workspace = { version = "6.0.0", path = "../cargo-toml-workspace" }
|
|
command-group = { version = "5.0.1", features = ["with-tokio"] }
|
|
compact_str = { version = "0.7.0", features = ["serde"] }
|
|
detect-targets = { version = "0.1.17", path = "../detect-targets", features = [
|
|
"tracing",
|
|
] }
|
|
either = "1.11.0"
|
|
itertools = "0.13.0"
|
|
jobslot = { version = "0.2.11", features = ["tokio"] }
|
|
leon = "3.0.0"
|
|
maybe-owned = "0.3.4"
|
|
miette = "7.0.0"
|
|
semver = { version = "1.0.17", features = ["serde"] }
|
|
simple-git = { version = "0.2.4", optional = true }
|
|
strum = "0.26.1"
|
|
target-lexicon = { version = "0.12.11", features = ["std"] }
|
|
tempfile = "3.5.0"
|
|
thiserror = "1.0.61"
|
|
tokio = { version = "1.35.0", features = [
|
|
"rt",
|
|
"process",
|
|
"sync",
|
|
], default-features = false }
|
|
tracing = "0.1.39"
|
|
url = { version = "2.3.1", features = ["serde"] }
|
|
|
|
[features]
|
|
default = ["static", "rustls", "git"]
|
|
|
|
git = ["binstalk-registry/git", "simple-git"]
|
|
git-max-perf = ["git", "simple-git/git-max-perf"]
|
|
|
|
static = ["binstalk-downloader/static"]
|
|
pkg-config = ["binstalk-downloader/pkg-config"]
|
|
|
|
zlib-ng = ["binstalk-downloader/zlib-ng"]
|
|
|
|
rustls = ["binstalk-downloader/rustls", "binstalk-registry/rustls"]
|
|
native-tls = ["binstalk-downloader/native-tls", "binstalk-registry/native-tls"]
|
|
|
|
trust-dns = ["binstalk-downloader/trust-dns"]
|
|
|
|
# Experimental HTTP/3 client, this would require `--cfg reqwest_unstable`
|
|
# to be passed to `rustc`.
|
|
http3 = ["binstalk-downloader/http3"]
|
|
|
|
zstd-thin = ["binstalk-downloader/zstd-thin"]
|
|
cross-lang-fat-lto = ["binstalk-downloader/cross-lang-fat-lto"]
|
|
|
|
[package.metadata.docs.rs]
|
|
rustdoc-args = ["--cfg", "docsrs"]
|