From 1da3ea277e29fa1576eb42f2d595b5d72b3632f4 Mon Sep 17 00:00:00 2001 From: Jason Lee Date: Sat, 13 Apr 2024 13:42:31 +0800 Subject: [PATCH] v0.5.0 --- Cargo.toml | 2 +- examples/server.rs | 11 ----------- src/lib.rs | 4 ++-- 3 files changed, 3 insertions(+), 14 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 790674c..346b70b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "diameter" -version = "0.4.0" +version = "0.5.0" edition = "2021" authors = ["Jason Lee"] description = "Rust Implementation of the Diameter Protocol." diff --git a/examples/server.rs b/examples/server.rs index 11f22b9..379ac2b 100644 --- a/examples/server.rs +++ b/examples/server.rs @@ -48,17 +48,6 @@ async fn main() { dictionary.load_xml(&xml); } - // Setup TLS - // let mut cert_file = File::open("server.crt").unwrap(); - // let mut certs = vec![]; - // cert_file.read_to_end(&mut certs).unwrap(); - // let mut key_file = File::open("server.key").unwrap(); - // let mut key = vec![]; - // key_file.read_to_end(&mut key).unwrap(); - // let pkcs8 = native_tls::Identity::from_pkcs8(&certs, &key).unwrap(); - // let config = DiameterServerConfig { - // native_tls: Some(pkcs8), - // }; let config = DiameterServerConfig { native_tls: None }; // Set up a Diameter server listening on a specific port diff --git a/src/lib.rs b/src/lib.rs index 29681df..7dbdc84 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -10,8 +10,8 @@ //! //! * [`server`] - A simple diameter server that listens for requests and sends a response. //! -//! [`server`]: https://github.com/lwlee2608/diameter-rs/blob/master/examples/server.rs -//! [`client`]: https://github.com/lwlee2608/diameter-rs/blob/master/examples/client.rs +//! [`server`]: https://github.com/lwlee2608/diameter-rs/blob/v0.5.0/examples/server.rs +//! [`client`]: https://github.com/lwlee2608/diameter-rs/blob/v0.5.0/examples/client.rs pub mod avp; pub mod diameter;