mirror of
https://github.com/chronotope/chrono.git
synced 2025-09-26 20:40:51 +00:00
Format toml with taplo (#1117)
This commit is contained in:
parent
26e4f24df5
commit
b6cc4dbe63
8
.github/workflows/lint.yml
vendored
8
.github/workflows/lint.yml
vendored
@ -27,6 +27,14 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
RUSTFLAGS: "-Dwarnings"
|
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:
|
cargo-deny:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
@ -35,12 +35,12 @@ rustc-serialize = { version = "0.3.20", optional = true }
|
|||||||
serde = { version = "1.0.99", default-features = false, optional = true }
|
serde = { version = "1.0.99", default-features = false, optional = true }
|
||||||
pure-rust-locales = { version = "0.5.2", optional = true }
|
pure-rust-locales = { version = "0.5.2", optional = true }
|
||||||
criterion = { version = "0.4.0", 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 }
|
arbitrary = { version = "1.0.0", features = ["derive"], optional = true }
|
||||||
|
|
||||||
[target.'cfg(all(target_arch = "wasm32", not(any(target_os = "emscripten", target_os = "wasi"))))'.dependencies]
|
[target.'cfg(all(target_arch = "wasm32", not(any(target_os = "emscripten", target_os = "wasi"))))'.dependencies]
|
||||||
wasm-bindgen = { version = "0.2", optional = true }
|
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]
|
[target.'cfg(windows)'.dependencies]
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
name = "core-test"
|
name = "core-test"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
authors = [
|
authors = [
|
||||||
"Kang Seonghoon <public+rust@mearie.org>",
|
"Kang Seonghoon <public+rust@mearie.org>",
|
||||||
"Brandon W Maister <quodlibetor@gmail.com>",
|
"Brandon W Maister <quodlibetor@gmail.com>",
|
||||||
]
|
]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|
||||||
@ -11,4 +11,4 @@ edition = "2018"
|
|||||||
chrono = { path = "../..", default-features = false, features = ["serde"] }
|
chrono = { path = "../..", default-features = false, features = ["serde"] }
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
alloc = ["chrono/alloc"]
|
alloc = ["chrono/alloc"]
|
||||||
|
@ -4,9 +4,9 @@ copyleft = "deny"
|
|||||||
|
|
||||||
[advisories]
|
[advisories]
|
||||||
ignore = [
|
ignore = [
|
||||||
"RUSTSEC-2020-0071", # time 0.1, doesn't affect the API we use
|
"RUSTSEC-2020-0071", # time 0.1, doesn't affect the API we use
|
||||||
"RUSTSEC-2021-0145", # atty (dev-deps only, dependency of criterion)
|
"RUSTSEC-2021-0145", # atty (dev-deps only, dependency of criterion)
|
||||||
"RUSTSEC-2022-0004", # rustc_serialize, cannot remove due to compatibility
|
"RUSTSEC-2022-0004", # rustc_serialize, cannot remove due to compatibility
|
||||||
]
|
]
|
||||||
unmaintained = "deny"
|
unmaintained = "deny"
|
||||||
unsound = "deny"
|
unsound = "deny"
|
||||||
|
4
taplo.toml
Normal file
4
taplo.toml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
include = ["deny.toml", "**/Cargo.toml"]
|
||||||
|
|
||||||
|
[formatting]
|
||||||
|
inline_table_expand = false
|
Loading…
x
Reference in New Issue
Block a user