Skip to content

Commit

Permalink
refactor: remove rattler_libsolv_rs (#350)
Browse files Browse the repository at this point in the history
Removes `rattler_libsolv_rs` and replaces it with
[resolvo](https://github.com/mamba-org/resolvo).
  • Loading branch information
baszalmstra authored Sep 25, 2023
1 parent 61ed341 commit 8b82537
Show file tree
Hide file tree
Showing 52 changed files with 37 additions and 5,845 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/rust-compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ env:
RUST_BACKTRACE: 1
RUSTFLAGS: "-D warnings"
CARGO_TERM_COLOR: always
DEFAULT_FEATURES: tokio,serde,reqwest,sparse,sysinfo,libsolv_rs
DEFAULT_FEATURES: tokio,serde,reqwest,sparse,sysinfo,resolvo

jobs:
check-rustdoc-links:
Expand Down
2 changes: 1 addition & 1 deletion crates/rattler-bin/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ rattler = { version = "0.9.0", path = "../rattler", default-features = false }
rattler_networking = { version = "0.9.0", path = "../rattler_networking", default-features = false }
rattler_conda_types = { version = "0.9.0", path = "../rattler_conda_types" }
rattler_repodata_gateway = { version = "0.9.0", path = "../rattler_repodata_gateway", features = ["sparse"], default-features = false }
rattler_solve = { version = "0.9.0", path = "../rattler_solve", features = ["libsolv_rs", "libsolv_c"] }
rattler_solve = { version = "0.9.0", path = "../rattler_solve", features = ["resolvo", "libsolv_c"] }
rattler_virtual_packages = { version = "0.9.0", path = "../rattler_virtual_packages" }
reqwest = { version = "0.11.20", default-features = false }
tokio = { version = "1.32.0", features = ["rt-multi-thread", "macros"] }
Expand Down
4 changes: 2 additions & 2 deletions crates/rattler-bin/src/commands/create.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ use rattler_repodata_gateway::fetch::{
CacheResult, DownloadProgress, FetchRepoDataError, FetchRepoDataOptions,
};
use rattler_repodata_gateway::sparse::SparseRepoData;
use rattler_solve::{libsolv_c, libsolv_rs, SolverImpl, SolverTask};
use rattler_solve::{libsolv_c, resolvo, SolverImpl, SolverTask};
use reqwest::Client;
use std::{
borrow::Cow,
Expand Down Expand Up @@ -225,7 +225,7 @@ pub async fn create(opt: Opt) -> anyhow::Result<()> {
let use_libsolv_rs = opt.use_experimental_libsolv_rs;
let required_packages = wrap_in_progress("solving", move || {
if use_libsolv_rs {
libsolv_rs::Solver.solve(solver_task)
resolvo::Solver.solve(solver_task)
} else {
libsolv_c::Solver.solve(solver_task)
}
Expand Down
25 changes: 0 additions & 25 deletions crates/rattler_libsolv_rs/Cargo.toml

This file was deleted.

219 changes: 0 additions & 219 deletions crates/rattler_libsolv_rs/src/internal/arena.rs

This file was deleted.

39 changes: 0 additions & 39 deletions crates/rattler_libsolv_rs/src/internal/frozen_copy_map.rs

This file was deleted.

Loading

0 comments on commit 8b82537

Please sign in to comment.