3

How to install cargo-outdated in OSX without homebrew

 2 years ago
source link: https://estada.ch/2022/1/7/how-to-install-cargo-outdated-in-osx-without-homebrew/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

TLDR:

cargo install --force --features vendored-openssl cargo-outdated

Developing with Rust on macOS

Installing rust with rustup is very simple and development with VSCode and git (type git and press Enter in a terminal and follow the instructions) work great.

Until you hit an openssl dependency.

Going the native way

Using native-tls abstracts the specific details away from the platforms and on desktop systems "just works" (usually)

For most applications this is a very good strategy to reduce the maintenance workload while remaining portable.

Going the vendored way

You can not rely on the platforms and distributions? You can ship your own and vendor everything.

With cargo-vendor you can automate the process on your machine and store all your dependencies in your git repository. You want to keep an eye out for all the licenses used if you are a business.

Going the homebrew way

Homebrew tries to turn your macOS into a more Unix/Linux environment. You get a package manager where you install openssl or anything else you need but now you have to maintain two systems on the same machine.

Windows users know this state from WSL and WSL2 (Windows Subsystem for Linux) and Linux users from using wine


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK