Skip to content

Commit cd75f02

Browse files
committed
Align to dependencies
1 parent 6b5f1fc commit cd75f02

File tree

6 files changed

+20
-14
lines changed

6 files changed

+20
-14
lines changed

Cargo.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "bc-envelope"
3-
version = "0.30.0"
3+
version = "0.31.0"
44
edition = "2024"
55
description = "Gordian Envelope for Rust."
66
authors = ["Blockchain Commons"]
@@ -31,8 +31,6 @@ itertools = "^0.11.0"
3131
thiserror = "^1.0.48"
3232
anyhow = "^1.0.0"
3333
bytes = "^1.5.0"
34-
regex = "^1.11.1"
35-
once_cell = "1.19.0"
3634
ssh-key = { version = "=0.6.7", optional = true, default-features = false, features = [
3735
"ecdsa",
3836
"rand_core",

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Envelopes are designed to facilitate "smart documents" with a number of unique f
2020

2121
```toml
2222
[dependencies]
23-
bc-envelope = "0.30.0"
23+
bc-envelope = "0.31.0"
2424
```
2525

2626
Basic usage examples:

run_tests.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ test_additional_features() {
2424
}
2525

2626
section "All Default Features"
27-
cargo test > /dev/null
27+
cargo test --all-targets > /dev/null
2828

2929
section "No Default Features"
3030
cargo test --no-default-features > /dev/null
@@ -42,3 +42,6 @@ test_only_features "signature"
4242
test_only_features "ssh"
4343
test_only_features "sskr"
4444
test_only_features "types"
45+
46+
section "Doc Tests"
47+
cargo test --doc > /dev/null

src/base/leaf.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,14 @@
33
44
use dcbor::prelude::*;
55

6+
#[cfg(feature = "known_value")]
67
use super::envelope::EnvelopeCase;
78
#[cfg(feature = "known_value")]
89
use crate::extension::KnownValue;
9-
use crate::{Envelope, Error};
10+
#[cfg(feature = "known_value")]
11+
use crate::Error;
12+
13+
use crate::Envelope;
1014

1115
impl Envelope {
1216
pub fn r#false() -> Self { Self::new_leaf(false) }

src/lib.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![doc(html_root_url = "https://docs.rs/bc-envelope/0.30.0")]
1+
#![doc(html_root_url = "https://docs.rs/bc-envelope/0.31.0")]
22
#![warn(rust_2018_idioms)]
33

44
//! # Gordian Envelope: A Flexible Container for Structured Data
@@ -20,7 +20,7 @@
2020
//!
2121
//! ```toml
2222
//! [dependencies]
23-
//! bc-envelope = "0.30.0"
23+
//! bc-envelope = "0.31.0"
2424
//! ```
2525
//!
2626
//! ## Specification
@@ -392,11 +392,11 @@ pub mod seal;
392392
mod string_utils;
393393

394394
#[cfg(feature = "recipient")]
395-
pub use bc_components::{EncapsulationPrivateKey, Encrypter, SigningOptions};
396-
#[cfg(feature = "recipient")]
397-
pub use bc_components::{PrivateKeyBase, PublicKeys};
395+
pub use bc_components::{
396+
EncapsulationPrivateKey, Encrypter, PrivateKeyBase, PublicKeys,
397+
};
398398
#[cfg(feature = "signature")]
399-
pub use bc_components::{Signer, Verifier};
399+
pub use bc_components::{Signer, SigningOptions, Verifier};
400400
#[cfg(feature = "signature")]
401401
pub use extension::SignatureMetadata;
402402
#[cfg(feature = "known_value")]

tests/common/test_data.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#![allow(dead_code)]
22

3-
use std::collections::HashSet;
4-
53
use bc_components::{
64
Nonce, PrivateKeyBase, PublicKeys, PublicKeysProvider, SymmetricKey,
75
};
@@ -129,7 +127,10 @@ pub fn credential() -> Envelope {
129127
.unwrap()
130128
}
131129

130+
#[cfg(feature = "signature")]
132131
pub fn redacted_credential() -> Envelope {
132+
use std::collections::HashSet;
133+
133134
let credential = credential();
134135
let mut target = HashSet::new();
135136
target.insert(credential.digest().into_owned());

0 commit comments

Comments
 (0)