Skip to content

Commit

Permalink
const-oid v0.10.0-pre.2 (#1307)
Browse files Browse the repository at this point in the history
  • Loading branch information
tarcieri authored Jan 5, 2024
1 parent c940804 commit 450f194
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion const-oid/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "const-oid"
version = "0.10.0-pre.1"
version = "0.10.0-pre.2"
authors = ["RustCrypto Developers"]
license = "Apache-2.0 OR MIT"
description = """
Expand Down
8 changes: 8 additions & 0 deletions const-oid/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,14 @@ impl<'a, const MAX_SIZE: usize> From<&'a ObjectIdentifier<MAX_SIZE>> for &'a Obj
}
}

impl<'a> TryFrom<&'a [u8]> for &'a ObjectIdentifierRef {
type Error = Error;

fn try_from(ber_bytes: &'a [u8]) -> Result<Self> {
ObjectIdentifierRef::from_bytes(ber_bytes)
}
}

impl fmt::Debug for ObjectIdentifierRef {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(f, "ObjectIdentifierRef({})", self)
Expand Down
2 changes: 1 addition & 1 deletion der/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ rust-version = "1.71"
[dependencies]
arbitrary = { version = "1.3", features = ["derive"], optional = true }
bytes = { version = "1", optional = true, default-features = false }
const-oid = { version = "=0.10.0-pre.1", optional = true }
const-oid = { version = "=0.10.0-pre.2", optional = true }
der_derive = { version = "=0.8.0-pre", optional = true }
flagset = { version = "0.4.4", optional = true }
pem-rfc7468 = { version = "=1.0.0-pre", optional = true, features = ["alloc"] }
Expand Down
2 changes: 1 addition & 1 deletion pkcs1/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ spki = { version = "=0.8.0-pre" }
pkcs8 = { version = "=0.11.0-pre", optional = true, default-features = false }

[dev-dependencies]
const-oid = { version = "=0.10.0-pre.1", features = ["db"] }
const-oid = { version = "=0.10.0-pre.2", features = ["db"] }
hex-literal = "0.4"
tempfile = "3"

Expand Down

0 comments on commit 450f194

Please sign in to comment.