@@ -7,9 +7,9 @@ use super::{
77} ;
88#[ cfg( all( feature = "fe2o3_amqp" , not( target_arch = "wasm32" ) ) ) ]
99use crate :: fe2o3:: error:: Fe2o3SerializationError ;
10- #[ cfg( feature = "cplusplus " ) ]
10+ #[ cfg( feature = "ffi " ) ]
1111use crate :: Deserializable ;
12- #[ cfg( feature = "cplusplus " ) ]
12+ #[ cfg( feature = "ffi " ) ]
1313use azure_core:: error:: ErrorKind ;
1414use azure_core:: { time:: Duration , Result , Uuid } ;
1515use typespec_macros:: SafeDebug ;
@@ -312,7 +312,7 @@ impl From<String> for AmqpTarget {
312312 }
313313}
314314
315- #[ cfg( feature = "cplusplus " ) ]
315+ #[ cfg( feature = "ffi " ) ]
316316impl From < AmqpList > for AmqpTarget {
317317 fn from ( list : AmqpList ) -> Self {
318318 let mut builder = AmqpTarget :: builder ( ) ;
@@ -374,7 +374,7 @@ impl From<AmqpList> for AmqpTarget {
374374 }
375375}
376376
377- #[ cfg( feature = "cplusplus " ) ]
377+ #[ cfg( feature = "ffi " ) ]
378378impl From < AmqpTarget > for AmqpList {
379379 fn from ( target : AmqpTarget ) -> Self {
380380 let mut list = vec ! [ AmqpValue :: Null ; 7 ] ;
@@ -477,7 +477,7 @@ impl AmqpSource {
477477 }
478478}
479479
480- #[ cfg( feature = "cplusplus " ) ]
480+ #[ cfg( feature = "ffi " ) ]
481481impl From < AmqpList > for AmqpSource {
482482 fn from ( list : AmqpList ) -> Self {
483483 let mut builder = AmqpSource :: builder ( ) ;
@@ -562,7 +562,7 @@ impl From<AmqpList> for AmqpSource {
562562 }
563563}
564564
565- #[ cfg( feature = "cplusplus " ) ]
565+ #[ cfg( feature = "ffi " ) ]
566566impl From < AmqpSource > for AmqpList {
567567 fn from ( source : AmqpSource ) -> Self {
568568 let mut list = vec ! [ AmqpValue :: Null ; 11 ] ;
@@ -661,7 +661,7 @@ impl AmqpMessageHeader {}
661661/// See also [Amqp Header](https://docs.oasis-open.org/amqp/core/v1.0/os/amqp-core-messaging-v1.0-os.html#type-header) for more information
662662///
663663///
664- #[ cfg( feature = "cplusplus " ) ]
664+ #[ cfg( feature = "ffi " ) ]
665665impl From < AmqpList > for AmqpMessageHeader {
666666 fn from ( list : AmqpList ) -> Self {
667667 let mut header = AmqpMessageHeader :: default ( ) ;
@@ -695,7 +695,7 @@ impl From<AmqpList> for AmqpMessageHeader {
695695 }
696696}
697697
698- #[ cfg( feature = "cplusplus " ) ]
698+ #[ cfg( feature = "ffi " ) ]
699699impl From < AmqpMessageHeader > for AmqpList {
700700 fn from ( header : AmqpMessageHeader ) -> AmqpList {
701701 let mut list = vec ! [ AmqpValue :: Null ; 5 ] ;
@@ -786,7 +786,7 @@ impl AmqpMessageProperties {}
786786/// See also [Amqp Header](https://docs.oasis-open.org/amqp/core/v1.0/os/amqp-core-messaging-v1.0-os.html#type-properties) for more information
787787///
788788///
789- #[ cfg( feature = "cplusplus " ) ]
789+ #[ cfg( feature = "ffi " ) ]
790790impl From < AmqpList > for AmqpMessageProperties {
791791 fn from ( list : AmqpList ) -> Self {
792792 let mut message_properties = AmqpMessageProperties :: default ( ) ;
@@ -886,7 +886,7 @@ impl From<AmqpList> for AmqpMessageProperties {
886886 }
887887}
888888
889- #[ cfg( feature = "cplusplus " ) ]
889+ #[ cfg( feature = "ffi " ) ]
890890impl From < AmqpMessageProperties > for AmqpList {
891891 fn from ( properties : AmqpMessageProperties ) -> AmqpList {
892892 let mut list = vec ! [ AmqpValue :: Null ; 13 ] ;
@@ -1399,7 +1399,7 @@ impl From<AmqpList> for AmqpMessage {
13991399 }
14001400 }
14011401}
1402- #[ cfg( feature = "cplusplus " ) ]
1402+ #[ cfg( feature = "ffi " ) ]
14031403impl Deserializable < AmqpMessage > for AmqpMessage {
14041404 fn decode ( data : & [ u8 ] ) -> azure_core:: Result < AmqpMessage > {
14051405 #[ cfg( all( feature = "fe2o3_amqp" , not( target_arch = "wasm32" ) ) ) ]
@@ -2188,7 +2188,7 @@ mod tests {
21882188 assert_eq ! ( amqp_message, value. 0 ) ;
21892189 }
21902190
2191- #[ cfg( feature = "cplusplus " ) ]
2191+ #[ cfg( feature = "ffi " ) ]
21922192 {
21932193 let deserialized = AmqpMessage :: decode ( & serialized) . unwrap ( ) ;
21942194 assert_eq ! ( deserialized, message) ;
0 commit comments