GPGme bindings for Rust
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.travis Update travis ci config Jun 14, 2018
examples Update for gpgme 1.12 Oct 13, 2018
gpgme-sys Rewrite use statements to use nested includes Oct 17, 2018
src Rewrite use statements to use nested includes Oct 17, 2018
systest Add systest crate for testing sys crate abi Jul 21, 2018
tests Use features stablized in rust 1.26 Jun 12, 2018
.gitignore Add travis ci configuration Jun 18, 2015
.gitmodules Update build_helper submodule Jun 14, 2018
.travis.yml Add systest crate for testing sys crate abi Jul 21, 2018
COPYING Initial commit May 14, 2015
Cargo.toml
README.md Bump version [ci skip] Jun 14, 2018
build.rs
rustfmt.toml Use features stablized in rust 1.26 Jun 12, 2018

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