22 releases

Uses new Rust 2024

0.10.2 Dec 9, 2025
0.10.1 Aug 11, 2025
0.10.0 Jul 23, 2025
0.8.6 Jan 8, 2025
0.2.0 Nov 3, 2023

#72 in Algorithms

Download history 4479/week @ 2025-10-23 2818/week @ 2025-10-30 3184/week @ 2025-11-06 2437/week @ 2025-11-13 3720/week @ 2025-11-20 3542/week @ 2025-11-27 3803/week @ 2025-12-04 3079/week @ 2025-12-11 2001/week @ 2025-12-18 698/week @ 2025-12-25 1439/week @ 2026-01-01 3367/week @ 2026-01-08 2791/week @ 2026-01-15 2850/week @ 2026-01-22 4177/week @ 2026-01-29 4327/week @ 2026-02-05

14,804 downloads per month
Used in 6 crates (4 directly)

BSD-3-Clause

310KB
5.5K SLoC

banner

Resolvo: Fast package resolver written in Rust

License crates.io Build Status Project Chat Docs

Resolvo implements a fast package resolution algorithm based on CDCL SAT solving.

Projects using resolvo

  • rip: An async package resolver and installer for Python PyPI packages
  • rattler: Conda package resolver and installer (non-async)
  • resolvo-rpm: Experimental RPM resolver for Fedora / RedHat / OpenSUSE ... RPM packages
  • ... add yours!

Features

If resolvo is unable to find a solution it outputs a human-readable error message:

The following packages are incompatible
├─ bluesky-widgets >=0, <100 can be installed with any of the following options:
  └─ bluesky-widgets 42 would require
│     └─ suitcase-utils >=0, <54, which can be installed with any of the following options:
        └─ suitcase-utils 53
└─ suitcase-utils >=54, <100 cannot be installed because there are no viable options:
   ─ suitcase-utils 54, which conflicts with the versions reported above.

Resolvo provides a generic interface which allows integrating the solver with a variety of package managers. For instance resolvo is used in rattler and pixi to solve packages from the conda ecosystem.

Originally resolvo started out as a port/fork of libsolv but it has since then diverged substantially. However, the same CDCL algorithm based on MiniSats An Extensible SAT-solver is still used underneath. Major differences compared to libsolv are:

  • Resolvo does not come with built-in support for several packaging ecosystems but instead provides a generic interface to allow it to be used in different scenarios.
  • Resolvo has support for incremental/lazy solving. This allows users to quickly find solutions in ecosystems where retrieving package metadata is expensive.
  • Resolvo is considerably faster than libsolv in large complex cases.
  • Resolvo can easily be used in multithreaded environments.
  • Resolvo provides human-readable error messages out-of-the-box.
  • Resolvo optionally provides an async interface to allow concurrent metadata fetching.
  • However, Libsolv is more extensive and supports more complex queries.

Contributing 😍

We would love to have you contribute! See the CONTRIBUTION.md for more info. For questions, requests or a casual chat, we are very active on our discord server. You can join our discord server via this link.

Dependencies

~10–19MB
~279K SLoC