gpgme 0.5.0

GPGme bindings for Rust
Documentation

rust-gpgme

Build Status LGPL-2.1 licensed crates.io

GPGme bindings for Rust.

Documentation

Requirements

Version 1.2.0 or greater of GPGme is required to use this library. Some features may require a more recent version.

The gpgme-sys crate requires the gpgme-config binary to be executable in order to build the crate. The paths to this binary can be set using the environment variable GPGME_CONFIG.

The required libraries and binaries can be installed by running:

Debian / Ubuntu

$ sudo apt-get install libgpgme11-dev

Fedora 22+

$ sudo dnf install gpgme-devel

RHEL / CentOS / Fedora 21 and lower

$ sudo yum install gpgme-devel

Mac OS X

$ brew install gpgme

Usage

Put this in your Cargo.toml:

[dependencies]
gpgme = "*"

And this in your crate root:

extern crate gpgme;

Examples

Some simple example programs based on those in the GPGme sources can be found in examples.

They can be run with cargo:

$ cargo run --example keylist --
keyid   : 89ABCDEF01234567
fpr     : 0123456789ABCDEF0123456789ABCDEF01234567
caps    : esc
flags   :
userid 0: Example <example@example.org>
valid  0: Unknown