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
#![deny(missing_docs)]
use sha2::Digest;
pub mod annotations;
pub mod client;
pub mod errors;
pub mod manifest;
mod reference;
mod regexp;
pub mod secrets;
mod token_cache;
#[doc(inline)]
pub use client::Client;
#[doc(inline)]
pub use reference::{ParseError, Reference};
#[doc(inline)]
pub use token_cache::RegistryOperation;
#[macro_use]
extern crate lazy_static;
pub(crate) fn sha256_digest(bytes: &[u8]) -> String {
format!("sha256:{:x}", sha2::Sha256::digest(bytes))
}