Skip to content

Commit

Permalink
chore: Move s2n-tls-hyper to a separate workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
dougch committed Dec 17, 2024
1 parent dee300e commit 239b731
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 7 deletions.
4 changes: 4 additions & 0 deletions bindings/rust/standard/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[workspace]
members = [
"s2n-tls-hyper"
]
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description = "A compatbility crate allowing s2n-tls to be used with the hyper H
version = "0.0.1"
authors = ["AWS s2n"]
edition = "2021"
rust-version = "1.63.0"
rust-version = "1.70.0"
repository = "https://github.com/aws/s2n-tls"
license = "Apache-2.0"
publish = false
Expand All @@ -13,8 +13,8 @@ publish = false
default = []

[dependencies]
s2n-tls = { version = "=0.3.9", path = "../bindings/rust/s2n-tls" }
s2n-tls-tokio = { version = "=0.3.9", path = "../bindings/rust/s2n-tls-tokio" }
s2n-tls = { version = "=0.3", path = "../../s2n-tls" }
s2n-tls-tokio = { version = "=0.3", path = "../../s2n-tls-tokio" }
hyper = { version = "1" }
hyper-util = { version = "0.1", features = ["client-legacy", "tokio", "http1", "http2"] }
tower-service = { version = "0.3" }
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ pub mod echo;

/// NOTE: this certificate and key are used for testing purposes only!
pub const CERT_PEM: &[u8] =
include_bytes!(concat!(env!("CARGO_MANIFEST_DIR"), "/../certs/cert.pem"));
pub const KEY_PEM: &[u8] = include_bytes!(concat!(env!("CARGO_MANIFEST_DIR"), "/../certs/key.pem"));
include_bytes!(concat!(env!("CARGO_MANIFEST_DIR"), "/../../certs/cert.pem"));
pub const KEY_PEM: &[u8] = include_bytes!(concat!(env!("CARGO_MANIFEST_DIR"), "/../../certs/key.pem"));

pub fn config() -> Result<config::Builder, Error> {
let mut builder = config::Config::builder();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -231,11 +231,11 @@ async fn ipv6() -> Result<(), Box<dyn Error + Send + Sync>> {
// matches this identity.
let localhost_ipv6_cert: &[u8] = include_bytes!(concat!(
env!("CARGO_MANIFEST_DIR"),
"/../certs/cert_localhost_ipv6.pem"
"/../../certs/cert_localhost_ipv6.pem"
));
let localhost_ipv6_key: &[u8] = include_bytes!(concat!(
env!("CARGO_MANIFEST_DIR"),
"/../certs/key_localhost_ipv6.pem"
"/../../certs/key_localhost_ipv6.pem"
));

let mut builder = config::Config::builder();
Expand Down

0 comments on commit 239b731

Please sign in to comment.