GPGme bindings for Rust
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.travis
examples
gpgme-sys
src
systest
tests
.gitignore
.gitmodules
.travis.yml
COPYING
Cargo.toml
README.md
build.rs
rustfmt.toml

README.md

gpgme-rs

Build Status LGPL-2.1 licensed Crates.io

GPGME bindings for Rust.

Documentation

Requirements

The wrapper is usable with GPGME 1.2.0 or later. Some features may require a more recent version.

By default, the gpgme-sys crate will attempt to build the bundled version of the library from source using autoconf, automake and various C build tools. The bundled feature flag controls this functionality and can be disabled by using default-features = false in dependent crates and/or overridden by setting the environment variable GPGME_USE_BUNDLED to the empty string, no, off, or false to disable or anything else to enable. An existing installation may be specified using GPGME_LIB_DIR, GPGME_LIBS, GPGME_STATIC (optional) and GPGME_INCLUDE. Alternatively the path to the gpgme configuration program (gpgme-config) may be specified using GPGME_CONFIG.

Usage

Put this in your Cargo.toml:

[dependencies]
gpgme = "0.8"

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