cargo-docker

Crates.iocargo-docker
lib.rscargo-docker
version0.2.0
sourcesrc
created_at2016-09-30 16:27:29.266722
updated_at2017-04-25 18:12:23.32012
descriptionA cargo subcommand to build binary with other OS.
homepage
repositoryhttps://github.com/DenisKolodin/cargo-docker
max_upload_size
id6664
size3,200
Denis Kolodin (therustmonk)

documentation

README

cargo-docker

A cargo subcommand to build Rust code inside docker and get the result back.

It's useful to build binary with other environment. As example, you can build binary for CentOS inside Ubuntu.

Usage

To use cargo-docker you should type the following:

$ cargo docker --image=rustup/debian:jessie --output=jessie-target

Important

This command uses docker without sudo and you have to get rights to use docker.

Add docker group:

$ sudo groupadd docker
$ sudo service docker restart

Not necessary if you have installed new version of docker.

Add yourself to docker group:

$ sudo gpasswd -a ${USER} docker

Login again to update user flags.

Commit count: 7

cargo fmt