1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
//! Native Rust bindings for managing the pacman keyring on Arch Linux.
//!
//! This crate provides a structured API for interacting with `pacman-key`,
//! parsing GPG output to return Rust types.
//!
//! # Example
//!
//! ```no_run
//! use pacman_key::Keyring;
//!
//! #[tokio::main]
//! async fn main() -> pacman_key::Result<()> {
//! let keyring = Keyring::new();
//!
//! let keys = keyring.list_keys().await?;
//! for key in keys {
//! println!("{}: {}", &key.fingerprint[..16], key.uid);
//! }
//!
//! Ok(())
//! }
//! ```
//!
//! # Subprocesses
//!
//! Each operation runs its subprocesses in a new process group, which is
//! killed with SIGKILL on timeout, on cancellation, when the operation's
//! future is dropped, or when the calling process terminates. Terminal signals
//! such as Ctrl-C do not reach that group directly. A killed gpg can leave
//! stale lock files in the keyring directory; they do not block later runs.
//!
//! # Requirements
//!
//! - Arch Linux with `pacman-key` available
//! - Root access for write operations (init, populate, sign, delete)
//! - Read access to `/etc/pacman.d/gnupg` for list operations
pub use ;
pub use ;
pub use ;