Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the intended/planned way of configuring/installing software that uses Rust Cargo as build system?

Tags:

People also ask

Where does cargo install to?

All binaries installed with cargo install are stored in the installation root's bin folder. If you installed Rust using rustup.rs and don't have any custom configurations, this directory will be $HOME/. cargo/bin. Ensure that directory is in your $PATH to be able to run programs you've installed with cargo install .

How does Rust cargo work?

Cargo is Rust's build system and package manager. With this tool, you'll get a repeatable build because it allows Rust packages to declare their dependencies in the manifest, Cargo. toml . When you install Rust through rustup , Cargo is also installed.

What does cargo build do?

Cargo is Rust's build system and package manager. Most Rustaceans use this tool to manage their Rust projects because Cargo handles a lot of tasks for you, such as building your code, downloading the libraries your code depends on, and building those libraries.


Existing build systems usually have some kind of install targets, that is used either manually (for installing in /usr/local or other location that user can access) or automatically (by package build systems of binary based distros or by package managers of source based ones).

What is the intended way of installing software that uses Cargo? How an analog of make install should look like?

Cargo itself uses additional configure/make stuff that handles configuration, detection of system dependencies, running cargo build and installation.

Is this the right way for any other software built with Cargo? It means are there plans to cover this tasks by Cargo itself or is Cargo intended only as a tool for dependency fetching and compilation without any configuration/detection of installed deps/installation?

Or are any plans to add this functionality?