Conan vs Dart pub
Conan
conan.ioDart pub
dart.devSide by side
| Figure | Conan | Dart pub |
|---|---|---|
| Price from | Free | — |
| Free plan | Yes | — |
| Free trial | — | — |
| Open source | — | — |
| Windows | Yes | Yes |
| macOS | Yes | Yes |
| Linux | Yes | Yes |
| iOS | Yes | — |
| Android | Yes | — |
| Plans published | 2 | 0 |
| Spec score · Package Managers | 9.0 (#3) | 7.8 (#46) |
| Spec score · Package Management Software | 8.9 (#2) | 7.7 (#11) |
| Dependency resolution | Yes | Pub manages dependency versions to find versions compatible with each other and with the Dart SDK version. |
| Free plan | Yes | Yes |
| Lockfile support | Yes | Yes |
| Offline installation | Yes | Yes |
| Package formats | Conan recipes and binary packages | Dart packages |
| Private registry auth | Yes | Yes |
| Supported platforms | Linux,Windows,macOS,Android,iOS,embedded and bare-metal targets | Windows,Linux,macOS |
| Workspace support | Yes | Yes |
Plans
In their own words
Conan
Conan is a free, open-source package manager for C and C++ projects. It manages dependencies and binary packages through Conan recipes, with dependency resolution, lockfiles, workspaces, private registry authentication and offline installation. Binary configurations can vary by architecture, compiler and version, runtime, and C++ standard library. If a matching binary is unavailable, Conan can build from source on demand. It supports Windows, Linux, macOS, Android, iOS, embedded and bare-metal targets, as well as desktop, server and mobile platforms. Build integrations include CMake, MSBuild, Makefiles, Meson and SCons; other integrations include Docker, MinGW, WSL and JFrog Artifactory. Teams can share and reuse native binaries. Artifactory Community Edition offers self-hosted private package hosting, with a WebUI, authentication and permissions. Conan is released under the MIT License. The listed plan describes the package manager as free and open source; no price is stated for either plan.
Dart pub
Dart pub is Dart’s package manager for finding and managing shared libraries and tools. It resolves dependency versions compatible with one another and the installed Dart SDK, and records selected versions in a lockfile so application teams can keep dependency versions consistent. Packages may come from pub.dev, other hosted repositories, Git repositories, local paths, or supported SDKs. Developers can use pub through the dart or Flutter command-line tools, and most Dart-savvy IDEs support package workflows. The `dart pub publish` command uploads packages to pub.dev. Before publishing, pub checks for possible secret leaks using limited patterns and may warn or refuse publication; packages published to pub.dev cannot have Git or local path dependencies in their pubspec. Security advisories draw on the GitHub Advisory Database for Dart and Flutter packages. Pub can often resolve dependencies offline from its shared cache. It supports Windows, Linux, and macOS, and is free and open source.