Skip to content

Commit

Permalink
Limit rcgen-based tests to architectures that *ring* 0.16 supports.
Browse files Browse the repository at this point in the history
...since it uses *ring* 0.16.
  • Loading branch information
briansmith committed Oct 7, 2023
1 parent cef4925 commit ae1fffb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,13 @@ untrusted = "0.9"

[dev-dependencies]
base64 = "0.9.1"
rcgen = { version = "0.11.3", default-features = false }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"

# XXX: rcgen can only build on archs that *ring* 0.16 supports.
[target.'cfg(any(target_arch = "aarch64", target_arch = "arm", target_arch = "wasm32", target_arch = "x86", target_arch = "x86_64"))'.dev-dependencies]
rcgen = { version = "0.11.3", default-features = false }

[profile.bench]
opt-level = 3
debug = false
Expand Down
8 changes: 8 additions & 0 deletions src/verify_cert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,14 @@ where
Err(Error::UnknownIssuer.into())
}

// XXX: rcgen can only build on archs that *ring* 0.16 supports.
#[cfg(any(
target_arch = "aarch64",
target_arch = "arm",
target_arch = "wasm32",
target_arch = "x86",
target_arch = "x86_64"
))]
#[cfg(feature = "alloc")]
#[cfg(test)]
mod tests {
Expand Down

0 comments on commit ae1fffb

Please sign in to comment.