Skip to content

Commit 0306f34

Browse files
Fixed #1976 - fe2o3-amqp should be fe2o3_amqp (#2275)
1 parent 1802c57 commit 0306f34

File tree

11 files changed

+34
-33
lines changed

11 files changed

+34
-33
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/core/azure_core_amqp/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ typespec = { workspace = true, features = ["amqp"] }
3535
tracing-subscriber = { workspace = true, features = ["env-filter"] }
3636

3737
[features]
38-
default = ["fe2o3-amqp"]
38+
default = ["fe2o3_amqp"]
3939
cplusplus = []
40-
fe2o3-amqp = [
40+
fe2o3_amqp = [
4141
"dep:fe2o3-amqp",
4242
"fe2o3-amqp-types",
4343
"fe2o3-amqp-ext",
@@ -48,4 +48,4 @@ fe2o3-amqp = [
4848
]
4949

5050
[package.metadata.docs.rs]
51-
features = ["fe2o3-amqp"]
51+
features = ["fe2o3_amqp"]

sdk/core/azure_core_amqp/src/cbs.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ use azure_core::error::Result;
55

66
use super::session::AmqpSession;
77

8-
#[cfg(all(feature = "fe2o3-amqp", not(target_arch = "wasm32")))]
8+
#[cfg(all(feature = "fe2o3_amqp", not(target_arch = "wasm32")))]
99
type CbsImplementation<'a> = super::fe2o3::cbs::Fe2o3ClaimsBasedSecurity<'a>;
1010

11-
#[cfg(any(not(any(feature = "fe2o3-amqp")), target_arch = "wasm32"))]
11+
#[cfg(any(not(any(feature = "fe2o3_amqp")), target_arch = "wasm32"))]
1212
type CbsImplementation<'a> = super::noop::NoopAmqpClaimsBasedSecurity<'a>;
1313

1414
pub trait AmqpClaimsBasedSecurityApis {

sdk/core/azure_core_amqp/src/connection.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ use azure_core::{error::Result, Url};
66
use std::fmt::Debug;
77
use time::Duration;
88

9-
#[cfg(all(feature = "fe2o3-amqp", not(target_arch = "wasm32")))]
9+
#[cfg(all(feature = "fe2o3_amqp", not(target_arch = "wasm32")))]
1010
type ConnectionImplementation = super::fe2o3::connection::Fe2o3AmqpConnection;
1111

12-
#[cfg(any(not(feature = "fe2o3-amqp"), target_arch = "wasm32"))]
12+
#[cfg(any(not(feature = "fe2o3_amqp"), target_arch = "wasm32"))]
1313
type ConnectionImplementation = super::noop::NoopAmqpConnection;
1414

1515
/// Options for configuring an AMQP connection.

sdk/core/azure_core_amqp/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33

44
#![doc = include_str!("../README.md")]
55

6-
#[cfg(all(feature = "fe2o3-amqp", not(target_arch = "wasm32")))]
6+
#[cfg(all(feature = "fe2o3_amqp", not(target_arch = "wasm32")))]
77
mod fe2o3;
88

9-
#[cfg(any(not(feature = "fe2o3-amqp"), target_arch = "wasm32"))]
9+
#[cfg(any(not(feature = "fe2o3_amqp"), target_arch = "wasm32"))]
1010
mod noop;
1111

1212
pub(crate) mod cbs;

sdk/core/azure_core_amqp/src/management.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ use super::{
77
};
88
use azure_core::{credentials::AccessToken, error::Result};
99

10-
#[cfg(all(feature = "fe2o3-amqp", not(target_arch = "wasm32")))]
10+
#[cfg(all(feature = "fe2o3_amqp", not(target_arch = "wasm32")))]
1111
type ManagementImplementation = super::fe2o3::management::Fe2o3AmqpManagement;
1212

13-
#[cfg(any(not(feature = "fe2o3-amqp"), target_arch = "wasm32"))]
13+
#[cfg(any(not(feature = "fe2o3_amqp"), target_arch = "wasm32"))]
1414
type ManagementImplementation = super::noop::NoopAmqpManagement;
1515

1616
pub trait AmqpManagementApis {

sdk/core/azure_core_amqp/src/messaging.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@
22
// Licensed under the MIT license.
33

44
use super::value::{AmqpList, AmqpOrderedMap, AmqpSymbol, AmqpTimestamp, AmqpValue};
5-
#[cfg(all(feature = "fe2o3-amqp", not(target_arch = "wasm32")))]
5+
#[cfg(all(feature = "fe2o3_amqp", not(target_arch = "wasm32")))]
66
use crate::fe2o3::error::Fe2o3SerializationError;
77
#[cfg(feature = "cplusplus")]
88
use crate::Deserializable;
99
#[cfg(feature = "cplusplus")]
1010
use azure_core::error::ErrorKind;
1111
use azure_core::{Result, Uuid};
1212

13-
#[cfg(all(feature = "fe2o3-amqp", not(target_arch = "wasm32")))]
13+
#[cfg(all(feature = "fe2o3_amqp", not(target_arch = "wasm32")))]
1414
type DeliveryImplementation = super::fe2o3::messaging::messaging_types::Fe2o3AmqpDelivery;
1515

16-
#[cfg(any(not(feature = "fe2o3-amqp"), target_arch = "wasm32"))]
16+
#[cfg(any(not(feature = "fe2o3_amqp"), target_arch = "wasm32"))]
1717
type DeliveryImplementation = super::noop::NoopAmqpDelivery;
1818

1919
#[derive(Debug, Clone, PartialEq)]
@@ -1153,7 +1153,7 @@ impl AmqpMessage {
11531153

11541154
#[allow(unused_variables)]
11551155
pub fn serialize(message: &AmqpMessage) -> Result<Vec<u8>> {
1156-
#[cfg(all(feature = "fe2o3-amqp", not(target_arch = "wasm32")))]
1156+
#[cfg(all(feature = "fe2o3_amqp", not(target_arch = "wasm32")))]
11571157
{
11581158
let amqp_message: fe2o3_amqp_types::messaging::Message<
11591159
fe2o3_amqp_types::messaging::Body<fe2o3_amqp_types::primitives::Value>,
@@ -1164,7 +1164,7 @@ impl AmqpMessage {
11641164
.map_err(|e| azure_core::Error::from(Fe2o3SerializationError(e)))?;
11651165
Ok(res)
11661166
}
1167-
#[cfg(any(not(feature = "fe2o3-amqp"), target_arch = "wasm32"))]
1167+
#[cfg(any(not(feature = "fe2o3_amqp"), target_arch = "wasm32"))]
11681168
{
11691169
unimplemented!();
11701170
}
@@ -1215,7 +1215,7 @@ impl From<AmqpList> for AmqpMessage {
12151215
#[cfg(feature = "cplusplus")]
12161216
impl Deserializable<AmqpMessage> for AmqpMessage {
12171217
fn decode(data: &[u8]) -> azure_core::Result<AmqpMessage> {
1218-
#[cfg(all(feature = "fe2o3-amqp", not(target_arch = "wasm32")))]
1218+
#[cfg(all(feature = "fe2o3_amqp", not(target_arch = "wasm32")))]
12191219
{
12201220
let value = serde_amqp::de::from_slice::<
12211221
fe2o3_amqp_types::messaging::message::__private::Deserializable<
@@ -1689,10 +1689,10 @@ mod tests {
16891689
let message = AmqpMessage::builder().build();
16901690
let serialized = AmqpMessage::serialize(&message).unwrap();
16911691
assert_eq!(serialized, vec![0, 0x53, 0x77, 0x40]);
1692-
#[cfg(all(feature = "fe2o3-amqp", not(target_arch = "wasm32")))]
1692+
#[cfg(all(feature = "fe2o3_amqp", not(target_arch = "wasm32")))]
16931693
{
16941694
// Verify that the serialization of an AmqpMessage with no body matches
1695-
// the fe2o3-amqp serialization.
1695+
// the fe2o3_amqp serialization.
16961696
let body_type: fe2o3_amqp_types::messaging::Body<()> =
16971697
fe2o3_amqp_types::messaging::Body::Empty;
16981698
let amqp_message = fe2o3_amqp_types::messaging::message::Builder::new()
@@ -1904,7 +1904,7 @@ mod tests {
19041904
]
19051905
);
19061906

1907-
#[cfg(all(feature = "fe2o3-amqp", not(target_arch = "wasm32")))]
1907+
#[cfg(all(feature = "fe2o3_amqp", not(target_arch = "wasm32")))]
19081908
{
19091909
let amqp_message = fe2o3_amqp_types::messaging::message::Builder::new()
19101910
.header(

sdk/core/azure_core_amqp/src/receiver.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ use super::value::{AmqpOrderedMap, AmqpSymbol, AmqpValue};
77
use super::ReceiverSettleMode;
88
use azure_core::error::Result;
99

10-
#[cfg(all(feature = "fe2o3-amqp", not(target_arch = "wasm32")))]
10+
#[cfg(all(feature = "fe2o3_amqp", not(target_arch = "wasm32")))]
1111
type ReceiverImplementation = super::fe2o3::receiver::Fe2o3AmqpReceiver;
1212

13-
#[cfg(any(not(feature = "fe2o3-amqp"), target_arch = "wasm32"))]
13+
#[cfg(any(not(feature = "fe2o3_amqp"), target_arch = "wasm32"))]
1414
type ReceiverImplementation = super::noop::NoopAmqpReceiver;
1515

1616
/// Represents the mode of issuing credit to the sender in an AMQP receiver.

sdk/core/azure_core_amqp/src/sender.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ use super::value::{AmqpOrderedMap, AmqpSymbol, AmqpValue};
99
use super::{ReceiverSettleMode, SenderSettleMode};
1010
use azure_core::error::Result;
1111

12-
#[cfg(all(feature = "fe2o3-amqp", not(target_arch = "wasm32")))]
12+
#[cfg(all(feature = "fe2o3_amqp", not(target_arch = "wasm32")))]
1313
type SenderImplementation = super::fe2o3::sender::Fe2o3AmqpSender;
1414

15-
#[cfg(any(not(feature = "fe2o3-amqp"), target_arch = "wasm32"))]
15+
#[cfg(any(not(feature = "fe2o3_amqp"), target_arch = "wasm32"))]
1616
type SenderImplementation = super::noop::NoopAmqpSender;
1717

1818
#[derive(Debug, Default, Clone)]

sdk/core/azure_core_amqp/src/session.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ use super::{
88
use azure_core::error::Result;
99
use std::fmt::Debug;
1010

11-
#[cfg(all(feature = "fe2o3-amqp", not(target_arch = "wasm32")))]
11+
#[cfg(all(feature = "fe2o3_amqp", not(target_arch = "wasm32")))]
1212
type SessionImplementation = super::fe2o3::session::Fe2o3AmqpSession;
1313

14-
#[cfg(any(not(feature = "fe2o3-amqp"), target_arch = "wasm32"))]
14+
#[cfg(any(not(feature = "fe2o3_amqp"), target_arch = "wasm32"))]
1515
type SessionImplementation = super::noop::NoopAmqpSession;
1616

1717
#[derive(Debug, Default, Clone)]

0 commit comments

Comments
 (0)