diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 653de509..9494aafa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,13 +6,20 @@ on: branches: - main - '[0-9]+.[0-9]+.x' + schedule: + - cron: '0 2 * * *' + workflow_dispatch: env: CARGO_INCREMENTAL: 0 + CARGO_NET_GIT_FETCH_WITH_CLI: true CARGO_NET_RETRY: 10 CARGO_TERM_COLOR: always + CARGO_PROFILE_TEST_BUILD_OVERRIDE_DEBUG: true RUST_BACKTRACE: 1 RUSTUP_MAX_RETRIES: 10 + RUSTFLAGS: -D warnings + RUSTDOCFLAGS: -D warnings jobs: test: diff --git a/Cargo.toml b/Cargo.toml index ccf6d12b..88f3b0e3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -144,15 +144,21 @@ unsafe_code = "forbid" rust_2018_idioms = "warn" single_use_lifetimes = "warn" non_ascii_idents = "warn" +non_local_definitions = 'warn' unreachable_pub = "warn" missing_debug_implementations = "warn" missing_docs = "warn" [workspace.lints.clippy] -all = "deny" -pedantic = "deny" +# Additional Clippy lint groups. +nursery = 'warn' +pedantic = 'warn' missing_errors_doc = "warn" needless_pass_by_value = "warn" module_name_repetitions = { level = "allow", priority = 1 } too_many_lines = { level = "allow", priority = 1 } type_complexity = { level = "allow", priority = 1 } +lint_groups_priority = { level = "allow", priority = 1 } # https://github.com/rust-lang/rust-clippy/issues/12270 + +[workspace.lints.rustdoc] +private_intra_doc_links = 'allow' diff --git a/viz/Cargo.toml b/viz/Cargo.toml index 3318cec9..452941af 100644 --- a/viz/Cargo.toml +++ b/viz/Cargo.toml @@ -89,6 +89,9 @@ tokio-rustls = { workspace = true, optional = true } tokio = { workspace = true, features = ["macros"] } tokio-util = { workspace = true, features = ["net"] } +[target.'cfg(windows)'.dependencies] +tokio-rustls = { workspace = true, optional = true, default-features = false, features = ["logging", "tls12", "ring"] } + [dev-dependencies] tokio = { workspace = true, features = ["macros", "rt", "rt-multi-thread"] }