Skip to content

Commit 1e2127c

Browse files
committed
Version 0.8.5. Deprecate built-in ros2 module. Fix security dependency versions.
1 parent 898ad3d commit 1e2127c

19 files changed

+34
-13
lines changed

Cargo.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rustdds"
3-
version = "0.8.4"
3+
version = "0.8.5"
44
authors = ["Juhana Helovuo <[email protected]>",
55
"Oiva Moisio <[email protected]>",
66
"Miska Melkinen <[email protected]>",
@@ -64,14 +64,14 @@ serde-xml-rs = { version = "0.6" , optional = true } # for reading spec-mandated
6464
glob = { version = "0.3" , optional = true } # for reading spec-mandated XML config files
6565
mailparse = { version = "0.14" , optional = true } # for reading S/MIME-encoded (XML) config files
6666
x509-certificate = { version = "0.21" , optional = true } # for configuration certificates
67-
x509-cert = { version = "*" , optional = true }
67+
x509-cert = { version = "0.2" , optional = true }
6868
tempfile = { version = "3" , optional = true } # for calling external openssl command. Remove when no longer used.
6969
newline-converter = { version = "0.3" , optional = true } # helper for handling S/MIME
70-
ring = { version = "*" , optional = true } # Cryptographic primitives
71-
cms = { version = "*" , optional = true } # for ASN.1 parsing
72-
der = { version = "*" , optional = true } # ASN.1 DER encoding
73-
bcder = { version = "*" , optional = true } # ASN.1 DER encoding
74-
const-oid = { version = "*" , optional = true } # more ASN.1
70+
ring = { version = "0.16" , optional = true } # Cryptographic primitives
71+
cms = { version = "0.2" , optional = true } # for ASN.1 parsing
72+
der = { version = "0.7" , optional = true } # ASN.1 DER encoding
73+
bcder = { version = "0.7" , optional = true } # ASN.1 DER encoding
74+
const-oid = { version = "0.9" , optional = true } # more ASN.1
7575

7676
[target.'cfg(windows)'.dependencies]
7777
local-ip-address = "0.5.3"

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ Currently, the implementation is complete enough to do data exchange with [ROS2]
1818

1919
The [ros2-client](https://crates.io/crates/ros2-client) is recommended for talking to ROS components. The `ros2` module within RustDDS should not be used anymore.
2020

21+
## Version 0.8.5
22+
23+
* Feature `security` merged to master, but it is still work-in-progress, so does not work yet.
24+
* Should work on Windows again
25+
* Less strict lifetime bound in deserialization
26+
* Simplify Key trait usage
27+
2128
## Version 0.8
2229

2330
New features:

src/dds/pubsub.rs

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ use crate::{
3838
reader::ReaderIngredients,
3939
writer::{WriterCommand, WriterIngredients},
4040
},
41-
security::security_plugins::SecurityPluginsHandle,
4241
serialization::{cdr_deserializer::CDRDeserializerAdapter, cdr_serializer::CDRSerializerAdapter},
4342
structure::{
4443
entity::RTPSEntity,
@@ -53,6 +52,16 @@ use super::{
5352
with_key::simpledatareader::ReaderCommand,
5453
};
5554

55+
#[cfg(feature = "security")]
56+
use crate::{
57+
security::security_plugins::SecurityPluginsHandle,
58+
};
59+
60+
#[cfg(not(feature = "security"))]
61+
use crate::{
62+
no_security::security_plugins::SecurityPluginsHandle,
63+
};
64+
5665
// -------------------------------------------------------------------
5766

5867
/// DDS Publisher
@@ -250,7 +259,7 @@ impl Publisher {
250259
.create_datawriter(self, Some(entity_id), topic, qos, writer_like_stateless)
251260
}
252261

253-
#[cfg(feature = "security")] // to avoid "never used" warning
262+
#[cfg(feature="security")] // to avoid "never used" warning
254263
pub(crate) fn create_datawriter_with_entity_id_no_key<D, SA>(
255264
&self,
256265
entity_id: EntityId,
@@ -791,7 +800,7 @@ impl Subscriber {
791800
.create_datareader(self, topic, Some(entity_id), qos, reader_like_stateless)
792801
}
793802

794-
#[cfg(feature = "security")] // to avoid "never used" warning
803+
#[cfg(feature="security")] // to avoid "never used" warning
795804
pub(crate) fn create_datareader_with_entity_id_no_key<D: 'static, SA>(
796805
&self,
797806
topic: &Topic,

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,6 @@ mod security;
177177

178178
#[cfg(not(feature = "security"))]
179179
mod no_security;
180-
#[cfg(not(feature = "security"))]
181-
use no_security as security;
182180

183181
pub(crate) mod structure;
184182

@@ -189,6 +187,8 @@ mod mio_source;
189187

190188
// Public modules
191189
pub mod dds; // this is public, but not advertised
190+
191+
#[deprecated(since = "0.8.5", note = "Use crate ros2-client instead.")]
192192
pub mod ros2;
193193
/// Helpers for (De)serialization and definitions of (De)serializer adapters
194194
pub mod serialization;

src/rtps/dp_event_loop.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ use crate::{
2626
rtps_writer_proxy::RtpsWriterProxy,
2727
writer::{Writer, WriterIngredients},
2828
},
29-
security::security_plugins::SecurityPluginsHandle,
3029
structure::{
3130
dds_cache::DDSCache,
3231
entity::RTPSEntity,
@@ -35,6 +34,12 @@ use crate::{
3534
};
3635
#[cfg(feature = "security")]
3736
use crate::discovery::secure_discovery::AuthenticationStatus;
37+
#[cfg(feature = "security")]
38+
use crate::security::security_plugins::SecurityPluginsHandle;
39+
40+
#[cfg(not(feature = "security"))]
41+
use crate::no_security::security_plugins::SecurityPluginsHandle;
42+
3843

3944
pub struct DomainInfo {
4045
pub domain_participant_guid: GUID,

0 commit comments

Comments
 (0)