-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build(deps): bump cryptography from 41.0.6 to 42.0.4 #233
Conversation
Bumps [cryptography](https://github.com/pyca/cryptography) from 41.0.6 to 42.0.4. - [Changelog](https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst) - [Commits](pyca/cryptography@41.0.6...42.0.4) --- updated-dependencies: - dependency-name: cryptography dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
I started to look into the nightly clippy failures. I found this issue upstream, and the suggested workaround is quite similar to what the main rustls repo is already doing and so probably makes sense to adopt. Here's a branch to try it out and fix up some of the easy findings. I must be missing something obvious because the one last finding I see is this gated import in |
Have admin-merged this one.
This worked for me:
(and that matches the conditional against no_std, meaning that the crate gets the |
Actually, what about always setting diff --git a/src/alg_tests.rs b/src/alg_tests.rs
index f0fe5ae..4d2ade9 100644
--- a/src/alg_tests.rs
+++ b/src/alg_tests.rs
@@ -14,6 +14,8 @@
#![allow(clippy::duplicate_mod)]
+use std::prelude::v1::*;
+
use base64::{engine::general_purpose, Engine as _};
use crate::error::{DerTypeId, Error};
diff --git a/src/cert.rs b/src/cert.rs
index fdf1c94..4e280b1 100644
--- a/src/cert.rs
+++ b/src/cert.rs
@@ -343,6 +343,7 @@ mod tests {
use super::*;
#[cfg(feature = "alloc")]
use crate::crl::RevocationReason;
+ use std::prelude::v1::*;
#[test]
// Note: cert::parse_cert is crate-local visibility, and EndEntityCert doesn't expose the
diff --git a/src/crl/mod.rs b/src/crl/mod.rs
index 2ac9241..3355c40 100644
--- a/src/crl/mod.rs
+++ b/src/crl/mod.rs
@@ -237,6 +237,7 @@ pub struct CrlsRequired(pub(crate) ());
#[cfg(test)]
mod tests {
use super::*;
+ use std::println;
#[test]
// redundant clone, clone_on_copy allowed to verify derived traits.
diff --git a/src/crl/types.rs b/src/crl/types.rs
index 148dcf4..2576966 100644
--- a/src/crl/types.rs
+++ b/src/crl/types.rs
@@ -900,6 +900,8 @@ impl TryFrom<u8> for RevocationReason {
#[cfg(test)]
mod tests {
use pki_types::CertificateDer;
+ use std::prelude::v1::*;
+ use std::println;
use super::*;
use crate::cert::Cert;
diff --git a/src/der.rs b/src/der.rs
index 38a0001..aebc513 100644
--- a/src/der.rs
+++ b/src/der.rs
@@ -423,6 +423,7 @@ macro_rules! oid {
#[cfg(test)]
mod tests {
use super::DerTypeId;
+ use std::prelude::v1::*;
#[test]
fn test_optional_boolean() {
diff --git a/src/end_entity.rs b/src/end_entity.rs
index 41a9efa..605f022 100644
--- a/src/end_entity.rs
+++ b/src/end_entity.rs
@@ -186,6 +186,7 @@ impl<'a> Deref for EndEntityCert<'a> {
mod tests {
use super::*;
use crate::test_utils;
+ use std::prelude::v1::*;
// This test reproduces https://github.com/rustls/webpki/issues/167 --- an
// end-entity cert where the common name is a `PrintableString` rather than
diff --git a/src/lib.rs b/src/lib.rs
index 5b05632..5d2fc9d 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -26,7 +26,7 @@
//! | `ring` | Enable use of the *ring* crate for cryptography. |
//! | `aws_lc_rs` | Enable use of the aws-lc-rs crate for cryptography. |
-#![cfg_attr(not(test), no_std)]
+#![no_std]
#![warn(unreachable_pub)]
#![deny(missing_docs, clippy::as_conversions)]
#![allow(
@@ -40,7 +40,7 @@
// Enable documentation for all features on docs.rs
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
-#[cfg(feature = "std")]
+#[cfg(any(feature = "std", test))]
extern crate std;
#[cfg(any(test, feature = "alloc"))]
diff --git a/src/test_utils.rs b/src/test_utils.rs
index 9685bcf..0b5dd7e 100644
--- a/src/test_utils.rs
+++ b/src/test_utils.rs
@@ -1,4 +1,5 @@
#![cfg(feature = "alloc")]
+use std::prelude::v1::*;
use crate::types::CertificateDer;
diff --git a/src/verify_cert.rs b/src/verify_cert.rs
index 733d498..6cc6d77 100644
--- a/src/verify_cert.rs
+++ b/src/verify_cert.rs
@@ -704,6 +704,8 @@ mod tests {
use super::*;
use crate::test_utils::{issuer_params, make_end_entity, make_issuer};
use crate::trust_anchor::anchor_from_trusted_cert;
+ use std::dbg;
+ use std::prelude::v1::*;
#[test]
fn eku_key_purpose_id() {
|
Yeah, agreed
I like that approach 👍 Thanks for picking up where I left off. |
Bumps cryptography from 41.0.6 to 42.0.4.
Changelog
Sourced from cryptography's changelog.
... (truncated)
Commits
fe18470
Bump for 42.0.4 release (#10445)aaa2dd0
Fix ASN.1 issues in PKCS#7 and S/MIME signing (#10373) (#10442)7a4d012
Fixes #10422 -- don't crash when a PKCS#12 key and cert don't match (#10423) ...df314bb
backport actions m1 switch to 42.0.x (#10415)c49a7a5
changelog and version bump for 42.0.3 (#10396)396bcf6
fix provider loading take two (#10390) (#10395)0e0e46f
backport: initialize openssl's legacy provider in rust (#10323) (#10333)2202123
changelog and version bump 42.0.2 (#10268)f7032bd
bump openssl in CI (#10298) (#10299)002e886
Fixes #10294 -- correct accidental change to exchange kwarg (#10295) (#10296)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase
will rebase this PR@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it@dependabot merge
will merge this PR after your CI passes on it@dependabot squash and merge
will squash and merge this PR after your CI passes on it@dependabot cancel merge
will cancel a previously requested merge and block automerging@dependabot reopen
will reopen this PR if it is closed@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditions
will show all of the ignore conditions of the specified dependency@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)You can disable automated security fix PRs for this repo from the Security Alerts page.