cargo-pkg 0.2.70

A simple subcommand for the Cargo package manager for building GTK packages from Rust projects.
cargo-pkg-0.2.70 is not a library.


  • Rust 1.41+


Install cargo pkg by running: cargo install cargo-pkg.

Initialize Project

To create new project, run cargo pkg new

This will create a project with ID with following structure.

├── Cargo.toml
├── data
│   ├── icons
│   ├──
│   ├──
│   ├──
│   ├──
│   └── resources
├── po
│   ├── LINGUAS
│   └──
└── src

To change application ID in all file names <NEW_ID> and chnage ID in Cargo.toml

id = "<NEW_ID>"
name = "Foo Bar"

To change package name only change require is name = "Foo Bar" in toml.

Building & Installing Package

Once your crate has been configured, run cargo pkg install _build to build release targets for your application and install to _build directory.

To build and run application cargo pkg run _build.

Cargo install flags can be supplied to cargo pkg run <INSTALL_FLAGS> _build for example cargo pkg run --debug -j 1 _build.


Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.