Skip to content

Commit

Permalink
Fix build issues (#1625)
Browse files Browse the repository at this point in the history
* Fix build issues, inherit workspace lints

* More fixes

* Add empty workspace.lints to resolve services/ errors

* services/autorest/Cargo.toml is a workspace
  • Loading branch information
heaths authored Mar 13, 2024
1 parent e88ec52 commit 22ab112
Show file tree
Hide file tree
Showing 299 changed files with 1,476 additions and 291 deletions.
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ members = [
"./eng/test/mock_transport"
]
resolver = "2"

[workspace.lints]
1 change: 1 addition & 0 deletions sdk/core/src/error/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ macro_rules! ensure_ne {
mod tests {
use super::super::*;

#[allow(dead_code)]
#[derive(Debug, PartialEq, Copy, Clone)]
struct OperationError;

Expand Down
1 change: 1 addition & 0 deletions sdk/storage_blobs/examples/list_containers2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ use serde::Serialize;

#[derive(Debug, Clone, Serialize)]
#[serde(rename_all = "snake_case")]
#[allow(dead_code)]
struct SampleEntity {
pub something: String,
}
Expand Down
5 changes: 4 additions & 1 deletion services/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -291,4 +291,7 @@ members = [
"svc/webpubsub",
]

resolver = "2"
resolver = "2"

[workspace.lints.clippy]
empty-docs = "allow"
3 changes: 3 additions & 0 deletions services/autorust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@ members = [
]

resolver = "2"

[workspace.lints]

6 changes: 5 additions & 1 deletion services/autorust/azure-autorust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,8 @@ publish = false
[dependencies]
autorust_codegen = { path = "../codegen" }
clap = { version = "4.0", features = ["derive"] }
rayon = "1.8"
rayon = "1.8"

[lints]
workspace = true

4 changes: 4 additions & 0 deletions services/autorust/codegen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,7 @@ cargo_toml = "0.19"
[dev-dependencies]
thiserror = "1.0"
crates_io_api = "0.9"

[lints]
workspace = true

3 changes: 3 additions & 0 deletions services/autorust/codegen/templates/Cargo.toml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,6 @@ default_tag = ["{{default_tag}}"]
{%- for feature in features %}
"{{feature}}" = []
{%- endfor %}

[lints]
workspace = true
4 changes: 4 additions & 0 deletions services/autorust/openapi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,7 @@ thiserror = "1.0"
assert-json-diff = "2.0"
serde_yaml = "0.9"
camino = "1.1"

[lints]
workspace = true

6 changes: 5 additions & 1 deletion services/mgmt/activedirectory/Cargo.toml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion services/mgmt/addons/Cargo.toml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion services/mgmt/adhybridhealthservice/Cargo.toml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion services/mgmt/adp/Cargo.toml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion services/mgmt/advisor/Cargo.toml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion services/mgmt/agrifood/Cargo.toml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion services/mgmt/alertsmanagement/Cargo.toml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion services/mgmt/analysisservices/Cargo.toml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion services/mgmt/apicenter/Cargo.toml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion services/mgmt/apimanagement/Cargo.toml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion services/mgmt/app/Cargo.toml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion services/mgmt/appcomplianceautomation/Cargo.toml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion services/mgmt/appconfiguration/Cargo.toml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion services/mgmt/applicationinsights/Cargo.toml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion services/mgmt/appplatform/Cargo.toml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion services/mgmt/arcdata/Cargo.toml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion services/mgmt/attestation/Cargo.toml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion services/mgmt/authorization/Cargo.toml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion services/mgmt/automanage/Cargo.toml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion services/mgmt/automation/Cargo.toml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion services/mgmt/baremetalinfrastructure/Cargo.toml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion services/mgmt/batch/Cargo.toml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion services/mgmt/billing/Cargo.toml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion services/mgmt/billingbenefits/Cargo.toml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion services/mgmt/blockchain/Cargo.toml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion services/mgmt/blueprint/Cargo.toml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion services/mgmt/botservice/Cargo.toml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion services/mgmt/cdn/Cargo.toml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion services/mgmt/changeanalysis/Cargo.toml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 22ab112

Please sign in to comment.