16 releases (10 breaking)

0.11.0 Nov 1, 2022
0.10.0 Aug 7, 2021
0.9.2 Dec 10, 2019
0.9.1 Sep 29, 2019
0.4.0 Jul 14, 2015

#772 in Cryptography

Download history 1028/week @ 2024-11-14 1023/week @ 2024-11-21 1169/week @ 2024-11-28 1327/week @ 2024-12-05 1775/week @ 2024-12-12 1092/week @ 2024-12-19 839/week @ 2024-12-26 1886/week @ 2025-01-02 2312/week @ 2025-01-09 2116/week @ 2025-01-16 1965/week @ 2025-01-23 2568/week @ 2025-01-30 2306/week @ 2025-02-06 2901/week @ 2025-02-13 3412/week @ 2025-02-20 3443/week @ 2025-02-27

12,427 downloads per month
Used in 35 crates (21 directly)

LGPL-2.1

280KB
7K 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 libgpgme11-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

~0.5–2.1MB
~25K SLoC