ci: Add the --order flag to cargo sort
This commit is contained in:
parent
62cd10d568
commit
1f84de4c7f
@ -14,11 +14,11 @@ repository = "https://github.com/ruma/ruma"
|
|||||||
version = "0.17.0"
|
version = "0.17.0"
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|
||||||
|
[lib]
|
||||||
|
proc-macro = true
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
proc-macro-crate = "1.0.0"
|
proc-macro-crate = "1.0.0"
|
||||||
proc-macro2 = "1.0.24"
|
proc-macro2 = "1.0.24"
|
||||||
quote = "1.0.8"
|
quote = "1.0.8"
|
||||||
syn = { version = "1.0.57", features = ["full", "visit"] }
|
syn = { version = "1.0.57", features = ["full", "visit"] }
|
||||||
|
|
||||||
[lib]
|
|
||||||
proc-macro = true
|
|
||||||
|
@ -18,6 +18,13 @@ edition = "2018"
|
|||||||
all-features = true
|
all-features = true
|
||||||
rustdoc-args = ["--cfg", "docsrs"]
|
rustdoc-args = ["--cfg", "docsrs"]
|
||||||
|
|
||||||
|
# These feature gates exist only for the tests. Disabling them results in a
|
||||||
|
# compile error.
|
||||||
|
[features]
|
||||||
|
default = ["client", "server"]
|
||||||
|
client = []
|
||||||
|
server = []
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
bytes = "1.0.1"
|
bytes = "1.0.1"
|
||||||
http = "0.2.2"
|
http = "0.2.2"
|
||||||
@ -32,10 +39,3 @@ thiserror = "1.0.23"
|
|||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
ruma-events = { version = "0.22.2", path = "../ruma-events" }
|
ruma-events = { version = "0.22.2", path = "../ruma-events" }
|
||||||
trybuild = "1.0.38"
|
trybuild = "1.0.38"
|
||||||
|
|
||||||
# These feature gates exist only for the tests. Disabling them results in a
|
|
||||||
# compile error.
|
|
||||||
[features]
|
|
||||||
default = ["client", "server"]
|
|
||||||
client = []
|
|
||||||
server = []
|
|
||||||
|
@ -14,6 +14,12 @@ edition = "2018"
|
|||||||
[package.metadata.docs.rs]
|
[package.metadata.docs.rs]
|
||||||
all-features = true
|
all-features = true
|
||||||
|
|
||||||
|
[features]
|
||||||
|
unstable-exhaustive-types = []
|
||||||
|
helper = ["ruma-client-api", "tracing"]
|
||||||
|
client = []
|
||||||
|
server = []
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
ruma-api = { version = "0.17.0", path = "../ruma-api" }
|
ruma-api = { version = "0.17.0", path = "../ruma-api" }
|
||||||
ruma-client-api = { version = "0.10.2", path = "../ruma-client-api", features = ["client"], optional = true }
|
ruma-client-api = { version = "0.10.2", path = "../ruma-client-api", features = ["client"], optional = true }
|
||||||
@ -28,9 +34,3 @@ tracing = { version = "0.1.25", optional = true }
|
|||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
matches = "0.1.8"
|
matches = "0.1.8"
|
||||||
serde_yaml = "0.8.17"
|
serde_yaml = "0.8.17"
|
||||||
|
|
||||||
[features]
|
|
||||||
unstable-exhaustive-types = []
|
|
||||||
helper = ["ruma-client-api", "tracing"]
|
|
||||||
client = []
|
|
||||||
server = []
|
|
||||||
|
@ -19,6 +19,14 @@ edition = "2018"
|
|||||||
all-features = true
|
all-features = true
|
||||||
rustdoc-args = ["--cfg", "docsrs"]
|
rustdoc-args = ["--cfg", "docsrs"]
|
||||||
|
|
||||||
|
[features]
|
||||||
|
compat = []
|
||||||
|
unstable-exhaustive-types = []
|
||||||
|
# feature dependency required for r0::room::create_room::CreationContent::into_event_content
|
||||||
|
unstable-pre-spec = ["ruma-events/unstable-pre-spec"]
|
||||||
|
client = []
|
||||||
|
server = []
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
assign = "1.1.1"
|
assign = "1.1.1"
|
||||||
bytes = "1.0.1"
|
bytes = "1.0.1"
|
||||||
@ -37,11 +45,3 @@ serde_json = "1.0.61"
|
|||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
maplit = "1.0.2"
|
maplit = "1.0.2"
|
||||||
matches = "0.1.8"
|
matches = "0.1.8"
|
||||||
|
|
||||||
[features]
|
|
||||||
compat = []
|
|
||||||
unstable-exhaustive-types = []
|
|
||||||
# feature dependency required for r0::room::create_room::CreationContent::into_event_content
|
|
||||||
unstable-pre-spec = ["ruma-events/unstable-pre-spec"]
|
|
||||||
client = []
|
|
||||||
server = []
|
|
||||||
|
@ -14,6 +14,11 @@ edition = "2018"
|
|||||||
all-features = true
|
all-features = true
|
||||||
rustdoc-args = ["--cfg", "docsrs"]
|
rustdoc-args = ["--cfg", "docsrs"]
|
||||||
|
|
||||||
|
[features]
|
||||||
|
compat = []
|
||||||
|
unstable-exhaustive-types = []
|
||||||
|
unstable-pre-spec = []
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
indexmap = { version = "1.6.2", features = ["serde-1"] }
|
indexmap = { version = "1.6.2", features = ["serde-1"] }
|
||||||
js_int = { version = "0.2.0", features = ["serde"] }
|
js_int = { version = "0.2.0", features = ["serde"] }
|
||||||
@ -27,8 +32,3 @@ wildmatch = "2.0.0"
|
|||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
maplit = "1.0.2"
|
maplit = "1.0.2"
|
||||||
matches = "0.1.8"
|
matches = "0.1.8"
|
||||||
|
|
||||||
[features]
|
|
||||||
compat = []
|
|
||||||
unstable-exhaustive-types = []
|
|
||||||
unstable-pre-spec = []
|
|
||||||
|
@ -15,11 +15,11 @@ readme = "README.md"
|
|||||||
repository = "https://github.com/ruma/ruma"
|
repository = "https://github.com/ruma/ruma"
|
||||||
version = "0.22.2"
|
version = "0.22.2"
|
||||||
|
|
||||||
|
[lib]
|
||||||
|
proc-macro = true
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
proc-macro-crate = "1.0.0"
|
proc-macro-crate = "1.0.0"
|
||||||
proc-macro2 = "1.0.24"
|
proc-macro2 = "1.0.24"
|
||||||
quote = "1.0.8"
|
quote = "1.0.8"
|
||||||
syn = { version = "1.0.57", features = ["extra-traits", "full"] }
|
syn = { version = "1.0.57", features = ["extra-traits", "full"] }
|
||||||
|
|
||||||
[lib]
|
|
||||||
proc-macro = true
|
|
||||||
|
@ -15,6 +15,13 @@ edition = "2018"
|
|||||||
all-features = true
|
all-features = true
|
||||||
rustdoc-args = ["--cfg", "docsrs"]
|
rustdoc-args = ["--cfg", "docsrs"]
|
||||||
|
|
||||||
|
[features]
|
||||||
|
compat = []
|
||||||
|
markdown = ["pulldown-cmark"]
|
||||||
|
|
||||||
|
unstable-exhaustive-types = []
|
||||||
|
unstable-pre-spec = []
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
criterion = { version = "0.3.3", optional = true }
|
criterion = { version = "0.3.3", optional = true }
|
||||||
indoc = "1.0"
|
indoc = "1.0"
|
||||||
@ -34,13 +41,6 @@ matches = "0.1.8"
|
|||||||
ruma-identifiers = { version = "0.19.1", path = "../ruma-identifiers", features = ["rand"] }
|
ruma-identifiers = { version = "0.19.1", path = "../ruma-identifiers", features = ["rand"] }
|
||||||
trybuild = "1.0.38"
|
trybuild = "1.0.38"
|
||||||
|
|
||||||
[features]
|
|
||||||
compat = []
|
|
||||||
markdown = ["pulldown-cmark"]
|
|
||||||
|
|
||||||
unstable-exhaustive-types = []
|
|
||||||
unstable-pre-spec = []
|
|
||||||
|
|
||||||
[[bench]]
|
[[bench]]
|
||||||
name = "event_deserialize"
|
name = "event_deserialize"
|
||||||
harness = false
|
harness = false
|
||||||
|
@ -18,6 +18,12 @@ version = "0.1.0"
|
|||||||
all-features = true
|
all-features = true
|
||||||
rustdoc-args = ["--cfg", "docsrs"]
|
rustdoc-args = ["--cfg", "docsrs"]
|
||||||
|
|
||||||
|
[features]
|
||||||
|
unstable-exhaustive-types = []
|
||||||
|
unstable-pre-spec = []
|
||||||
|
client = []
|
||||||
|
server = []
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
js_int = { version = "0.2.0", features = ["serde"] }
|
js_int = { version = "0.2.0", features = ["serde"] }
|
||||||
ruma-api = { version = "0.17.0", path = "../ruma-api" }
|
ruma-api = { version = "0.17.0", path = "../ruma-api" }
|
||||||
@ -31,9 +37,3 @@ serde_json = "1.0.61"
|
|||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
http = "0.2.2"
|
http = "0.2.2"
|
||||||
matches = "0.1.8"
|
matches = "0.1.8"
|
||||||
|
|
||||||
[features]
|
|
||||||
unstable-exhaustive-types = []
|
|
||||||
unstable-pre-spec = []
|
|
||||||
client = []
|
|
||||||
server = []
|
|
||||||
|
@ -9,10 +9,10 @@ repository = "https://github.com/ruma/ruma"
|
|||||||
version = "0.19.1"
|
version = "0.19.1"
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|
||||||
|
[lib]
|
||||||
|
proc-macro = true
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
quote = "1.0.8"
|
quote = "1.0.8"
|
||||||
ruma-identifiers-validation = { version = "0.4.0", path = "../ruma-identifiers-validation", default-features = false }
|
ruma-identifiers-validation = { version = "0.4.0", path = "../ruma-identifiers-validation", default-features = false }
|
||||||
syn = "1.0.55"
|
syn = "1.0.55"
|
||||||
|
|
||||||
[lib]
|
|
||||||
proc-macro = true
|
|
||||||
|
@ -13,6 +13,11 @@ edition = "2018"
|
|||||||
[package.metadata.docs.rs]
|
[package.metadata.docs.rs]
|
||||||
all-features = true
|
all-features = true
|
||||||
|
|
||||||
|
[features]
|
||||||
|
unstable-exhaustive-types = []
|
||||||
|
client = []
|
||||||
|
server = []
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
js_int = { version = "0.2.0", features = ["serde"] }
|
js_int = { version = "0.2.0", features = ["serde"] }
|
||||||
ruma-api = { version = "0.17.0", path = "../ruma-api" }
|
ruma-api = { version = "0.17.0", path = "../ruma-api" }
|
||||||
@ -23,8 +28,3 @@ serde = { version = "1.0.118", features = ["derive"] }
|
|||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
serde_json = "1.0.61"
|
serde_json = "1.0.61"
|
||||||
|
|
||||||
[features]
|
|
||||||
unstable-exhaustive-types = []
|
|
||||||
client = []
|
|
||||||
server = []
|
|
||||||
|
@ -13,6 +13,11 @@ edition = "2018"
|
|||||||
[package.metadata.docs.rs]
|
[package.metadata.docs.rs]
|
||||||
all-features = true
|
all-features = true
|
||||||
|
|
||||||
|
[features]
|
||||||
|
unstable-exhaustive-types = []
|
||||||
|
client = []
|
||||||
|
server = []
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
js_int = { version = "0.2.0", features = ["serde"] }
|
js_int = { version = "0.2.0", features = ["serde"] }
|
||||||
ruma-api = { version = "0.17.0", path = "../ruma-api" }
|
ruma-api = { version = "0.17.0", path = "../ruma-api" }
|
||||||
@ -22,8 +27,3 @@ ruma-identifiers = { version = "0.19.1", path = "../ruma-identifiers" }
|
|||||||
ruma-serde = { version = "0.4.0", path = "../ruma-serde" }
|
ruma-serde = { version = "0.4.0", path = "../ruma-serde" }
|
||||||
serde = { version = "1.0.118", features = ["derive"] }
|
serde = { version = "1.0.118", features = ["derive"] }
|
||||||
serde_json = "1.0.61"
|
serde_json = "1.0.61"
|
||||||
|
|
||||||
[features]
|
|
||||||
unstable-exhaustive-types = []
|
|
||||||
client = []
|
|
||||||
server = []
|
|
||||||
|
@ -14,6 +14,9 @@ version = "0.7.2"
|
|||||||
[package.metadata.docs.rs]
|
[package.metadata.docs.rs]
|
||||||
all-features = true
|
all-features = true
|
||||||
|
|
||||||
|
[features]
|
||||||
|
compat = ["tracing"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
base64 = "0.13.0"
|
base64 = "0.13.0"
|
||||||
ring = "0.16.19"
|
ring = "0.16.19"
|
||||||
@ -22,6 +25,3 @@ ruma-serde = { version = "0.4.0", path = "../ruma-serde" }
|
|||||||
serde_json = "1.0.60"
|
serde_json = "1.0.60"
|
||||||
tracing = { version = "0.1.25", optional = true }
|
tracing = { version = "0.1.25", optional = true }
|
||||||
untrusted = "0.7.1"
|
untrusted = "0.7.1"
|
||||||
|
|
||||||
[features]
|
|
||||||
compat = ["tracing"]
|
|
||||||
|
@ -15,33 +15,6 @@ edition = "2018"
|
|||||||
all-features = true
|
all-features = true
|
||||||
rustdoc-args = ["--cfg", "docsrs"]
|
rustdoc-args = ["--cfg", "docsrs"]
|
||||||
|
|
||||||
[dependencies]
|
|
||||||
assign = "1.1.1"
|
|
||||||
js_int = "0.2.0"
|
|
||||||
|
|
||||||
ruma-common = { version = "0.5.2", path = "../ruma-common" }
|
|
||||||
ruma-identifiers = { version = "0.19.1", path = "../ruma-identifiers", features = ["serde"] }
|
|
||||||
ruma-serde = { version = "0.4.0", path = "../ruma-serde" }
|
|
||||||
|
|
||||||
ruma-client = { version = "0.5.0", path = "../ruma-client", optional = true }
|
|
||||||
ruma-events = { version = "0.22.2", path = "../ruma-events", optional = true }
|
|
||||||
ruma-signatures = { version = "0.7.2", path = "../ruma-signatures", optional = true }
|
|
||||||
ruma-state-res = { version = "0.1.0", path = "../ruma-state-res", optional = true }
|
|
||||||
|
|
||||||
ruma-api = { version = "0.17.0", path = "../ruma-api", optional = true }
|
|
||||||
ruma-appservice-api = { version = "0.2.0", path = "../ruma-appservice-api", optional = true }
|
|
||||||
ruma-client-api = { version = "0.10.2", path = "../ruma-client-api", optional = true }
|
|
||||||
ruma-federation-api = { version = "0.1.0", path = "../ruma-federation-api", optional = true }
|
|
||||||
ruma-identity-service-api = { version = "0.1.0", path = "../ruma-identity-service-api", optional = true }
|
|
||||||
ruma-push-gateway-api = { version = "0.1.0", path = "../ruma-push-gateway-api", optional = true }
|
|
||||||
|
|
||||||
[dev-dependencies]
|
|
||||||
anyhow = "1.0.37"
|
|
||||||
isahc = "1.3.1"
|
|
||||||
serde = { version = "1.0.118", features = ["derive"] }
|
|
||||||
tokio = { version = "1.0.1", features = ["macros", "rt"] }
|
|
||||||
tokio-stream = { version = "0.1.1", default-features = false }
|
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
api = ["ruma-api"]
|
api = ["ruma-api"]
|
||||||
client = ["ruma-client"]
|
client = ["ruma-client"]
|
||||||
@ -140,6 +113,33 @@ unstable-pre-spec = [
|
|||||||
#"ruma-push-gateway-api/unstable-pre-spec",
|
#"ruma-push-gateway-api/unstable-pre-spec",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
|
assign = "1.1.1"
|
||||||
|
js_int = "0.2.0"
|
||||||
|
|
||||||
|
ruma-common = { version = "0.5.2", path = "../ruma-common" }
|
||||||
|
ruma-identifiers = { version = "0.19.1", path = "../ruma-identifiers", features = ["serde"] }
|
||||||
|
ruma-serde = { version = "0.4.0", path = "../ruma-serde" }
|
||||||
|
|
||||||
|
ruma-client = { version = "0.5.0", path = "../ruma-client", optional = true }
|
||||||
|
ruma-events = { version = "0.22.2", path = "../ruma-events", optional = true }
|
||||||
|
ruma-signatures = { version = "0.7.2", path = "../ruma-signatures", optional = true }
|
||||||
|
ruma-state-res = { version = "0.1.0", path = "../ruma-state-res", optional = true }
|
||||||
|
|
||||||
|
ruma-api = { version = "0.17.0", path = "../ruma-api", optional = true }
|
||||||
|
ruma-appservice-api = { version = "0.2.0", path = "../ruma-appservice-api", optional = true }
|
||||||
|
ruma-client-api = { version = "0.10.2", path = "../ruma-client-api", optional = true }
|
||||||
|
ruma-federation-api = { version = "0.1.0", path = "../ruma-federation-api", optional = true }
|
||||||
|
ruma-identity-service-api = { version = "0.1.0", path = "../ruma-identity-service-api", optional = true }
|
||||||
|
ruma-push-gateway-api = { version = "0.1.0", path = "../ruma-push-gateway-api", optional = true }
|
||||||
|
|
||||||
|
[dev-dependencies]
|
||||||
|
anyhow = "1.0.37"
|
||||||
|
isahc = "1.3.1"
|
||||||
|
serde = { version = "1.0.118", features = ["derive"] }
|
||||||
|
tokio = { version = "1.0.1", features = ["macros", "rt"] }
|
||||||
|
tokio-stream = { version = "0.1.1", default-features = false }
|
||||||
|
|
||||||
[[example]]
|
[[example]]
|
||||||
name = "hello_world"
|
name = "hello_world"
|
||||||
required-features = ["client-api-c", "client-ext-client-api", "client-hyper-native-tls"]
|
required-features = ["client-api-c", "client-ext-client-api", "client-hyper-native-tls"]
|
||||||
|
@ -71,7 +71,14 @@ impl CiTask {
|
|||||||
fn build_nightly(&self) -> xshell::Result<()> {
|
fn build_nightly(&self) -> xshell::Result<()> {
|
||||||
let fmt_res = cmd!("rustup run nightly cargo fmt -- --check").run();
|
let fmt_res = cmd!("rustup run nightly cargo fmt -- --check").run();
|
||||||
let clippy_res = cmd!("rustup run nightly cargo ruma-clippy -D warnings").run();
|
let clippy_res = cmd!("rustup run nightly cargo ruma-clippy -D warnings").run();
|
||||||
let sort_res = cmd!("rustup run nightly cargo sort --workspace --grouped --check").run();
|
let sort_res = cmd!(
|
||||||
|
"
|
||||||
|
rustup run nightly cargo sort
|
||||||
|
--workspace --grouped --check
|
||||||
|
--order package,lib,features,dependencies,dev-dependencies,build-dependencies
|
||||||
|
"
|
||||||
|
)
|
||||||
|
.run();
|
||||||
|
|
||||||
fmt_res.and(clippy_res).and(sort_res)
|
fmt_res.and(clippy_res).and(sort_res)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user