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

#1635 in Cryptography

Download history 653/week @ 2024-03-14 684/week @ 2024-03-21 597/week @ 2024-03-28 525/week @ 2024-04-04 540/week @ 2024-04-11 652/week @ 2024-04-18 473/week @ 2024-04-25 602/week @ 2024-05-02 548/week @ 2024-05-09 528/week @ 2024-05-16 410/week @ 2024-05-23 491/week @ 2024-05-30 573/week @ 2024-06-06 605/week @ 2024-06-13 740/week @ 2024-06-20 804/week @ 2024-06-27

2,799 downloads per month
Used in 30 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 dependencies:

$ 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 10 (1709 or later) systems:

$ winget install --id GnuPG.Gpg4win

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

~0–1.4MB
~13K SLoC