Skip to content

Commit

Permalink
Merge branch 'main' into feat/split-crates
Browse files Browse the repository at this point in the history
  • Loading branch information
tdejager committed Sep 26, 2023
2 parents e5d9926 + 8faecd1 commit ff853a5
Show file tree
Hide file tree
Showing 16 changed files with 292 additions and 77 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/rust-compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ env:
RUST_BACKTRACE: 1
RUSTFLAGS: "-D warnings"
CARGO_TERM_COLOR: always
DEFAULT_FEATURES:

jobs:
check-rustdoc-links:
Expand Down Expand Up @@ -105,7 +104,6 @@ jobs:
run: >
cargo build
--all-targets
--features ${{ env.DEFAULT_FEATURES }}
${{ steps.build-options.outputs.CARGO_BUILD_OPTIONS}}
- name: Disable testing the tools crate if cross compiling
Expand All @@ -119,7 +117,6 @@ jobs:
run: >
cargo test
--workspace
--features ${{ env.DEFAULT_FEATURES }}
${{ steps.build-options.outputs.CARGO_BUILD_OPTIONS}}
${{ steps.test-options.outputs.CARGO_TEST_OPTIONS}}
--
Expand Down
150 changes: 135 additions & 15 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

38 changes: 38 additions & 0 deletions crates/index/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
[package]
name = "index"
authors = ["Tim de Jager <[email protected]>"]
version.workspace = true
categories.workspace = true
homepage.workspace = true
repository.workspace = true
license.workspace = true
edition.workspace = true
readme.workspace = true
rust-version.workspace = true

[features]
default = ["native-tls"]
native-tls = ['rattler_installs_packages/native-tls', 'rip/native-tls']
rustls-tls = ['rattler_installs_packages/rustls-tls', 'rip/rustls-tls']

[dependencies]
clap = { version = "4.4.5", features = ["derive"] }
dirs = "5.0.1"
indexmap = "2.0.0"
indicatif = "0.17.7"
miette = { version = "5.10.0", features = ["fancy"] }
rand = "0.8.5"
rattler_installs_packages = { path = "../rattler_installs_packages", default-features = false }
rip = { path = "../rip", default-features = false }
rusqlite = { version = "0.29.0", features = ["bundled"] }
serde_json = "1.0.107"
tokio = { version = "1.32.0", features = ["rt", "macros", "rt-multi-thread"] }
tracing = "0.1.37"
tracing-subscriber = { version = "0.3.17", features = ["env-filter"] }
url = "2.4.1"
rip_bin = {path = "../rip_bin"}


[package.metadata.release]
# Dont publish the binary
release = false
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ use rip_bin::{global_multi_progress, IndicatifWriter};
#[derive(Parser)]
#[command(author, version, about, long_about = None)]
struct Args {
/// Base URL of the Python Package Index (default https://pypi.org/simple). This should point
/// Base URL of the Python Package Index (default <https://pypi.org/simple>). This should point
/// to a repository compliant with PEP 503 (the simple repository API).
#[clap(default_value = "https://pypi.org/simple/", long)]
index_url: Url,
Expand Down
Loading

0 comments on commit ff853a5

Please sign in to comment.