From b6cc4dbe63d672acba5eeca9080fcea5acf75d2f Mon Sep 17 00:00:00 2001 From: tottoto Date: Thu, 1 Jun 2023 16:23:08 +0900 Subject: [PATCH] Format toml with taplo (#1117) --- .github/workflows/lint.yml | 8 ++++++++ Cargo.toml | 4 ++-- ci/core-test/Cargo.toml | 6 +++--- deny.toml | 6 +++--- taplo.toml | 4 ++++ 5 files changed, 20 insertions(+), 8 deletions(-) create mode 100644 taplo.toml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 7e26d4e6b4..a0cf75d9de 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -27,6 +27,14 @@ jobs: env: RUSTFLAGS: "-Dwarnings" + toml: + runs-on: ubuntu-latest + container: + image: tamasfe/taplo:0.8.0 + steps: + - run: taplo lint + - run: taplo fmt --check --diff + cargo-deny: runs-on: ubuntu-latest steps: diff --git a/Cargo.toml b/Cargo.toml index b89975421c..2745c67ebc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -35,12 +35,12 @@ rustc-serialize = { version = "0.3.20", optional = true } serde = { version = "1.0.99", default-features = false, optional = true } pure-rust-locales = { version = "0.5.2", optional = true } criterion = { version = "0.4.0", optional = true } -rkyv = {version = "0.7", optional = true} +rkyv = { version = "0.7", optional = true } arbitrary = { version = "1.0.0", features = ["derive"], optional = true } [target.'cfg(all(target_arch = "wasm32", not(any(target_os = "emscripten", target_os = "wasi"))))'.dependencies] wasm-bindgen = { version = "0.2", optional = true } -js-sys = { version = "0.3", optional = true } # contains FFI bindings for the JS Date API +js-sys = { version = "0.3", optional = true } # contains FFI bindings for the JS Date API [target.'cfg(windows)'.dependencies] diff --git a/ci/core-test/Cargo.toml b/ci/core-test/Cargo.toml index b35ff9a7dc..4258f9d90c 100644 --- a/ci/core-test/Cargo.toml +++ b/ci/core-test/Cargo.toml @@ -2,8 +2,8 @@ name = "core-test" version = "0.1.0" authors = [ - "Kang Seonghoon ", - "Brandon W Maister ", + "Kang Seonghoon ", + "Brandon W Maister ", ] edition = "2018" @@ -11,4 +11,4 @@ edition = "2018" chrono = { path = "../..", default-features = false, features = ["serde"] } [features] -alloc = ["chrono/alloc"] \ No newline at end of file +alloc = ["chrono/alloc"] diff --git a/deny.toml b/deny.toml index 13b9fac5f7..0e486c8474 100644 --- a/deny.toml +++ b/deny.toml @@ -4,9 +4,9 @@ copyleft = "deny" [advisories] ignore = [ - "RUSTSEC-2020-0071", # time 0.1, doesn't affect the API we use - "RUSTSEC-2021-0145", # atty (dev-deps only, dependency of criterion) - "RUSTSEC-2022-0004", # rustc_serialize, cannot remove due to compatibility + "RUSTSEC-2020-0071", # time 0.1, doesn't affect the API we use + "RUSTSEC-2021-0145", # atty (dev-deps only, dependency of criterion) + "RUSTSEC-2022-0004", # rustc_serialize, cannot remove due to compatibility ] unmaintained = "deny" unsound = "deny" diff --git a/taplo.toml b/taplo.toml new file mode 100644 index 0000000000..5fe42eb83f --- /dev/null +++ b/taplo.toml @@ -0,0 +1,4 @@ +include = ["deny.toml", "**/Cargo.toml"] + +[formatting] +inline_table_expand = false