Skip to content

Commit ebd29d1

Browse files
committed
make minicbor imports public
1 parent 723dbe4 commit ebd29d1

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

rust/signed_doc/src/lib.rs

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
//! Catalyst documents signing crate
2+
3+
mod content;
4+
mod error;
5+
mod metadata;
6+
mod signature;
7+
28
use std::{
39
convert::TryFrom,
410
fmt::{Display, Formatter},
@@ -8,13 +14,8 @@ use std::{
814
use anyhow::anyhow;
915
use content::Content;
1016
use coset::CborSerializable;
11-
12-
mod content;
13-
mod error;
14-
mod metadata;
15-
mod signature;
16-
1717
pub use metadata::{AdditionalFields, DocumentRef, Metadata, UuidV7};
18+
pub use minicbor::{decode, Decode, Decoder};
1819
pub use signature::KidUri;
1920
use signature::Signatures;
2021

@@ -88,8 +89,8 @@ impl CatalystSignedDocument {
8889
}
8990
}
9091

91-
impl minicbor::Decode<'_, ()> for CatalystSignedDocument {
92-
fn decode(d: &mut minicbor::Decoder<'_>, (): &mut ()) -> Result<Self, minicbor::decode::Error> {
92+
impl Decode<'_, ()> for CatalystSignedDocument {
93+
fn decode(d: &mut Decoder<'_>, (): &mut ()) -> Result<Self, decode::Error> {
9394
let start = d.position();
9495
d.skip()?;
9596
let end = d.position();

0 commit comments

Comments
 (0)