Skip to content

Commit

Permalink
use default-features rather than default_features (#1342)
Browse files Browse the repository at this point in the history
According to the [cargo reference manual](https://doc.rust-lang.org/cargo/reference/features.html#the-default-feature), we should use `default-features`.  While `default_features` works with `cargo`, it can cause issues with other tools such as `cargo-edit`.
  • Loading branch information
demoray authored Aug 23, 2023
1 parent f31f3e0 commit f442544
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion sdk/identity/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ reqwest = { version = "0.11", features = ["json"], default-features = false }
tokio = { version = "1.0", features = ["macros", "rt-multi-thread"] }
env_logger = "0.10"
serde_test = "1"
azure_security_keyvault = { path = "../security_keyvault", default_features = false }
azure_security_keyvault = { path = "../security_keyvault", default-features = false }

[features]
default = ["development", "enable_reqwest"]
Expand Down
6 changes: 3 additions & 3 deletions sdk/iot_deviceupdate/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ edition = "2021"
publish = false

[dependencies]
reqwest = { version = "0.11", features = ["json"], default_features = false }
reqwest = { version = "0.11", features = ["json"], default-features = false }
time = "0.3.10"
const_format = "0.2"
serde_json = "1.0"
url = "2.2"
serde = { version = "1.0", features = ["derive"] }
getset = "0.1"
azure_core = { path = "../core", version = "0.14", default_features = false }
azure_core = { path = "../core", version = "0.14", default-features = false }
log = "0.4"
azure_identity = { path = "../identity", version = "0.14", default_features = false }
azure_identity = { path = "../identity", version = "0.14", default-features = false }

[dev-dependencies]
tokio = { version = "1.0", features = ["macros", "rt-multi-thread"] }
Expand Down
2 changes: 1 addition & 1 deletion sdk/iot_hub/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ documentation = "https://docs.rs/azure_iot_hub"

[dependencies]
async-trait = "0.1"
azure_core = { path = "../core", version = "0.14", default_features = false }
azure_core = { path = "../core", version = "0.14", default-features = false }
bytes = "1.0"
time = "0.3.10"
hmac = "0.12"
Expand Down
2 changes: 1 addition & 1 deletion sdk/messaging_eventgrid/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ categories = ["api-bindings"]
edition = "2021"

[dependencies]
azure_core = { path = "../core", version = "0.14", default_features = false }
azure_core = { path = "../core", version = "0.14", default-features = false }
time = "0.3.10"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
Expand Down
2 changes: 1 addition & 1 deletion sdk/storage_blobs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ url = "2.2"
[dev-dependencies]
tokio = { version = "1.0", features = ["macros", "rt-multi-thread"] }
env_logger = "0.10"
azure_identity = { path = "../identity", default_features = false }
azure_identity = { path = "../identity", default-features = false }
reqwest = "0.11"
mock_transport = { path = "../../eng/test/mock_transport" }
md5 = "0.7"
Expand Down
4 changes: 2 additions & 2 deletions sdk/storage_datalake/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ edition = "2021"
[dependencies]
async-trait = "0.1"
azure_core = { path = "../core", version = "0.14" }
azure_storage = { path = "../storage", version = "0.14", default_features = false }
azure_storage = { path = "../storage", version = "0.14", default-features = false }
bytes = "1.0"
time = "0.3.10"
futures = "0.3"
Expand All @@ -27,7 +27,7 @@ uuid = { version = "1.0", features = ["v4"] }
url = "2.2"

[dev-dependencies]
azure_identity = { path = "../identity", default_features = false }
azure_identity = { path = "../identity", default-features = false }
tokio = { version = "1.0", features = ["macros", "rt-multi-thread"] }
mock_transport = { path = "../../eng/test/mock_transport" }

Expand Down

0 comments on commit f442544

Please sign in to comment.