Skip to content

Commit

Permalink
Merge pull request #164 from flavio/remove-reference
Browse files Browse the repository at this point in the history
remove reference
  • Loading branch information
flavio authored Oct 7, 2024
2 parents 41b43fe + cc56c1e commit 3e9c25d
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 463 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ http = "1.1"
http-auth = { version = "0.1", default-features = false }
jwt = "0.16"
lazy_static = "1.4"
oci-spec = "0.7.0"
olpc-cjson = "0.1"
regex = "1.6"
reqwest = { version = "0.12.4", default-features = false, features = [
Expand Down
7 changes: 1 addition & 6 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,16 @@ pub mod config;
pub(crate) mod digest;
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};
pub use oci_spec::distribution::{ParseError, Reference};
#[doc(inline)]
pub use token_cache::RegistryOperation;

#[macro_use]
extern crate lazy_static;

/// Computes the SHA256 digest of a byte vector
pub(crate) fn sha256_digest(bytes: &[u8]) -> String {
format!("sha256:{:x}", sha2::Sha256::digest(bytes))
Expand Down
Loading

0 comments on commit 3e9c25d

Please sign in to comment.