Git Product home page Git Product logo

cargo-appimage's Introduction

Cargo AppImage

This a cargo program that allows you to convert your Rust programs into AppImages.

Installation

  1. Make sure that appimagetool is in your path. It can be downloaded from here
  2. Install this program with
cargo install cargo-appimage
  1. cd inside of the root directory of your crate and create an icon called icon.png

    1. Note this can simply be an empty file for development. In fact an empty file is generated if you forget to make one.
  2. (optional) create a section in your Cargo.toml similar to the following with any additional assets to add to the AppImg:

    [package.metadata.appimage]
    assets = ["images", "sounds"]
  3. (optional) If you are using external crates that use other programs or are not written in pure rust, you may want to check if you need to embed some shared libraries into your AppImage:

    1. Running cargo appimage with this option in your Cargo.toml will automatically make a libs folder and put all of the shared objects your rust program uses in their respective directories.
    [package.metadata.appimage]
    auto_link = true
    1. AppImages aren't supposed to have EVERY library that your executable links to inside of the AppImage, so delete the libraries that you expect will be on every linux system (libc, libgcc, libpthread, ld-linux, libdl, etc.)

    2. Remove the Cargo.toml option above and run cargo appimage again, now only the libs you want should be embedded in the Appimage

  4. run this command

    cargo appimage
    1. Note all arguments passed into cargo-appimage are redirected to cargo
    cargo appimage --features=min

cargo-appimage's People

Contributors

cessen avatar jhessin avatar stratusfearme21 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.