Skip to content

Commit

Permalink
tls-utils: Make publishable, remove sdk dep (#3909)
Browse files Browse the repository at this point in the history
#### Problem

The new tls-utils crate is a great extraction of re-used logic, but it
wasn't marked publishable, even though it will need to be published due
to transitive dependencies from client crates.

Also, it has an unnecessary dependency on solana-sdk.

#### Summary of changes

Remove the solana-sdk dependency and use solana-keypair directly. And
make the crate publishable.
  • Loading branch information
joncinque authored Dec 4, 2024
1 parent a08d7fc commit 6cb7ca8
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 6 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

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

1 change: 0 additions & 1 deletion programs/sbf/Cargo.lock

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

1 change: 0 additions & 1 deletion svm/examples/Cargo.lock

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

2 changes: 0 additions & 2 deletions tls-utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
name = "solana-tls-utils"
description = "Solana TLS utilities"
documentation = "https://docs.rs/solana-tls-utils"
publish = false
version = { workspace = true }
authors = { workspace = true }
repository = { workspace = true }
Expand All @@ -14,7 +13,6 @@ edition = { workspace = true }
rustls = { workspace = true, features = ["ring"] }
solana-keypair = { workspace = true }
solana-pubkey = { workspace = true }
solana-sdk = { workspace = true }
solana-signer = { workspace = true }
x509-parser = { workspace = true }

Expand Down
2 changes: 1 addition & 1 deletion tls-utils/src/quic_client_certificate.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use {
crate::new_dummy_x509_certificate,
rustls::pki_types::{CertificateDer, PrivateKeyDer},
solana_sdk::signature::Keypair,
solana_keypair::Keypair,
};

pub struct QuicClientCertificate {
Expand Down

0 comments on commit 6cb7ca8

Please sign in to comment.