Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
CARGO-INSTALL(1)		 Cargo Manual		      CARGO-INSTALL(1)

NAME
       cargo-install - Install a Rust binary

SYNOPSIS
       cargo install [OPTIONS] <CRATE>

       cargo install [OPTIONS] --list

DESCRIPTION
       Install a Rust binary

       This  command manages Cargo's local set of install binary crates.  Only
       packages	which have [[bin]] targets can be installed, and all  binaries
       are  installed  into the	installation root's bin	folder.	 The installa-
       tion root is determined,	in order of precedence,	by --root,  $CARGO_IN-
       STALL_ROOT,  the	 install.root  configuration key, and finally the home
       directory (which	is either $CARGO_HOME if set or	 $HOME/.cargo  by  de-
       fault).

       There  are  multiple  sources from which	a crate	can be installed.  The
       default location	is crates.io but the --git and --path flags can	change
       this  source.   If  the	source contains	more than one package (such as
       crates.io or a git repository with multiple crates)  the	  argument  is
       required	to indicate which crate	should be installed.

       Crates  from  crates.io can optionally specify the version they wish to
       install via the --vers flags, and similarly packages from git reposito-
       ries can	optionally specify the branch, tag, or revision	that should be
       installed.  If a	crate has multiple binaries, the  --bin	 argument  can
       selectively install only	one of them, and if you'd rather install exam-
       ples the	--example argument can be used as well.

       As a special convenience, omitting the <crate>  specification  entirely
       will  install  the crate	in the current directory.  That	is, install is
       equivalent to the more explicit "install	--path .".

       The --list option will list all	installed  packages  (and  their  ver-
       sions).

OPTIONS
   Query options
       --list List all installed packages (and their versions).

   Specifying what crate to install
       --vers VERS
	      Specify a	version	to install from	crates.io.

       --git URL
	      Git URL to install the specified crate from.

       --branch	BRANCH
	      Branch to	use when installing from git.

       --tag TAG
	      Tag to use when installing from git.

       --rev SHA
	      Specific commit to use when installing from git.

       --path PATH
	      Filesystem path to local crate to	install.

   Built and install options
       -h, --help
	      Print this message.

       -j N, --jobs N
	      Number of	parallel jobs, defaults	to # of	CPUs.

       --features FEATURES
	      Space-separated list of features to activate.

       --all-features
	      Build all	available features.

       -f, --force
	      Force overwriting	existing crates	or binaries

       --no-default-features
	      Do not build the default feature.

       --debug
	      Build in debug mode instead of release mode.

       --bin NAME
	      Only install the binary NAME.

       --example EXAMPLE
	      Install the example EXAMPLE instead of binaries.

       --root DIR
	      Directory	to install packages into.

       -v, --verbose
	      Use verbose output.

       -q, --quiet
	      No output	printed	to stdout.

       --color WHEN
	      Coloring:	auto, always, never.

SEE ALSO
       cargo(1), cargo-search(1), cargo-publish(1)

COPYRIGHT
       This  work  is dual-licensed under Apache 2.0 and MIT terms.  See COPY-
       RIGHT file in the cargo source distribution.

The Rust package manager	   May 2016		      CARGO-INSTALL(1)

NAME | SYNOPSIS | DESCRIPTION | OPTIONS | SEE ALSO | COPYRIGHT

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=cargo-install&sektion=1&manpath=FreeBSD+12.0-RELEASE+and+Ports>

home | help