12 releases (breaking)

0.11.0 Nov 1, 2022
0.10.0 Aug 7, 2021
0.9.1 Sep 29, 2019
0.9.0 Jun 27, 2019
0.2.0 Jun 23, 2015

#1506 in Cryptography

Download history 469/week @ 2023-08-07 453/week @ 2023-08-14 366/week @ 2023-08-21 373/week @ 2023-08-28 780/week @ 2023-09-04 488/week @ 2023-09-11 445/week @ 2023-09-18 471/week @ 2023-09-25 633/week @ 2023-10-02 489/week @ 2023-10-09 550/week @ 2023-10-16 633/week @ 2023-10-23 659/week @ 2023-10-30 764/week @ 2023-11-06 437/week @ 2023-11-13 500/week @ 2023-11-20

2,406 downloads per month
Used in 31 crates (via gpgme)

LGPL-2.1

65KB
1.5K SLoC

gpgme-rs

Build Status crates.io version LGPL-2.1 licensed downloads

GPGME bindings for Rust.

Documentation

Using

To use the crate, add it to your depedencies:

$ cargo add gpgme

Requirements

These crates require the gpgme library (version 1.13 or later) and its development files to be installed. The build script uses the system-deps crate to attempt to locate them (or the registry on Windows).

On Debian/Ubuntu based systems:

$ sudo apt-get install libgpgme-dev

On Fedora/RHEL based systems:

$ sudo dnf install gpgme-devel

On MacOS systems:

$ brew install gnupg

On Windows systems, download and install the official Gpg4win installer. Only the i686-pc-windows-gnu target is supported.

NOTE: These crates also depend on the gpg-error crate which has its own requirements.

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

License

These crates are licensed under the LGPL-2.1 license.

Dependencies

~40–400KB