From db3344c8ece855144fc5f7660ccf41b639cbd302 Mon Sep 17 00:00:00 2001 From: Andrew Lilley Brinker Date: Mon, 12 Feb 2024 21:31:47 +0000 Subject: [PATCH] Implement ArtifactID type. This initial commit just defines an artifact ID type that selects the specific construct of the GitOid type. Signed-off-by: Andrew Lilley Brinker --- omnibor/Cargo.toml | 2 +- omnibor/src/lib.rs | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/omnibor/Cargo.toml b/omnibor/Cargo.toml index a13d8be..26e30b6 100644 --- a/omnibor/Cargo.toml +++ b/omnibor/Cargo.toml @@ -11,4 +11,4 @@ repository = "https://github.com/omnibor/omnibor-rs" version = "0.1.7" [dependencies] -gitoid = "0.1.5" +gitoid = "0.3.0" diff --git a/omnibor/src/lib.rs b/omnibor/src/lib.rs index 674ac29..aeb8d24 100644 --- a/omnibor/src/lib.rs +++ b/omnibor/src/lib.rs @@ -1 +1,8 @@ -// TODO(abrinker): Complete first draft of the rewrite of this crate. +//! OmniBOR in Rust. + +use gitoid::hash::Sha256; +use gitoid::object::Blob; +use gitoid::GitOid; + +/// An OmniBOR Artifact Identifier. +pub type ArtifactId = GitOid;