mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-27 12:02:07 +03:00
c9a509c805
This PR sets up a `cargo xtask clippy` command for running `cargo clippy` with our defined set of options. The intent is to make this easier to manage as we start enabling more Clippy rules. Release Notes: - N/A
16 lines
1.2 KiB
TOML
16 lines
1.2 KiB
TOML
# This config is different from config.toml in this directory, as the latter is recognized by Cargo.
|
|
# This file is placed in $HOME/.cargo/config.toml on CI runs. Cargo then merges Zeds .cargo/config.toml with $HOME/.cargo/config.toml
|
|
# with preference for settings from Zeds config.toml.
|
|
# TL;DR: If a value is set in both ci-config.toml and config.toml, config.toml value takes precedence.
|
|
# Arrays are merged together though. See: https://doc.rust-lang.org/cargo/reference/config.html#hierarchical-structure
|
|
# The intent for this file is to configure CI build process with a divergance from Zed developers experience; for example, in this config file
|
|
# we use `-D warnings` for rustflags (which makes compilation fail in presence of warnings during build process). Placing that in developers `config.toml`
|
|
# would be incovenient.
|
|
# We *could* override things like RUSTFLAGS manually by setting them as environment variables, but that is less DRY; worse yet, if you forget to set proper environment variables
|
|
# in one spot, that's going to trigger a rebuild of all of the artifacts. Using ci-config.toml we can define these overrides for CI in one spot and not worry about it.
|
|
[build]
|
|
rustflags = ["-D", "warnings"]
|
|
|
|
[alias]
|
|
xtask = "run --package xtask --"
|