@@ -68,8 +68,8 @@ set(RUST_STAMP_FILE "${CMAKE_BINARY_DIR}/.rust-toolchain.stamp")
6868
6969add_custom_command (
7070 OUTPUT "${RUST_STAMP_FILE} "
71- COMMAND rustup toolchain install ${RUST_STABLE_VERSION}
72- COMMAND rustup toolchain install ${RUST_NIGHTLY_VERSION} --component rustc-dev --component llvm-tools
71+ COMMAND rustup toolchain install ${RUST_STABLE_VERSION} --component clippy --component rustfmt
72+ COMMAND rustup toolchain install ${RUST_NIGHTLY_VERSION} --component rustc-dev --component llvm-tools --component clippy --component rustfmt
7373 COMMAND ${CMAKE_COMMAND} -E touch "${RUST_STAMP_FILE} "
7474 DEPENDS "${CMAKE_CURRENT_SOURCE_DIR} /cmake/rust-toolchain.cmake"
7575 USES_TERMINAL
@@ -91,16 +91,16 @@ set(PYTHON_SOURCES ${PROJECT_SOURCE_DIR}/tests/lit/lit/formats/Cpp2RustTest.py)
9191add_custom_target ("format"
9292 COMMAND ${CLANG_FORMAT} -i ${ALL_CXX_SOURCES}
9393 COMMAND cargo +${RUST_STABLE_VERSION} fmt --manifest-path ${PROJECT_SOURCE_DIR} /rules/Cargo.toml
94- COMMAND cargo +${RUST_STABLE_VERSION} --manifest-path ${PROJECT_SOURCE_DIR} /rule-preprocessor/Cargo.toml
94+ COMMAND cargo +${RUST_NIGHTLY_VERSION} fmt --manifest-path ${PROJECT_SOURCE_DIR} /rule-preprocessor/Cargo.toml
9595 COMMAND cargo +${RUST_STABLE_VERSION} fmt --manifest-path ${PROJECT_SOURCE_DIR} /libcc2rs/Cargo.toml
9696 COMMAND cargo +${RUST_STABLE_VERSION} fmt --manifest-path ${PROJECT_SOURCE_DIR} /libcc2rs-macros/Cargo.toml
97- COMMAND cargo +${RUST_STABLE_VERSION} clippy --fix --allow-dirty --allow-staged --all-targets --all-features
97+ COMMAND cargo +${RUST_STABLE_VERSION} clippy --fix --allow-dirty --allow-no-vcs --allow- staged --all-targets --all-features
9898 --manifest-path ${PROJECT_SOURCE_DIR} /rules/Cargo.toml -- -Dwarnings
99- COMMAND cargo +${RUST_STABLE_VERSION } clippy --fix --allow-dirty --allow-staged --all-targets --all-features
100- --manifest-path chdir ${PROJECT_SOURCE_DIR} /rule-preprocessor/Cargo.toml -- -Dwarnings
101- COMMAND cargo +${RUST_STABLE_VERSION} clippy --fix --allow-dirty --allow-staged --all-targets --all-features
102- --manifest-path $$ {PROJECT_SOURCE_DIR}/libcc2rs/Cargo.toml -- -Dwarnings
103- COMMAND cargo +${RUST_STABLE_VERSION} clippy --fix --allow-dirty --allow-staged --all-targets --all-features
99+ COMMAND cargo +${RUST_NIGHTLY_VERSION } clippy --fix --allow-dirty --allow-no-vcs --allow-staged --all-targets --all-features
100+ --manifest-path ${PROJECT_SOURCE_DIR} /rule-preprocessor/Cargo.toml -- -Dwarnings
101+ COMMAND cargo +${RUST_STABLE_VERSION} clippy --fix --allow-dirty --allow-no-vcs --allow- staged --all-targets --all-features
102+ --manifest-path ${PROJECT_SOURCE_DIR} /libcc2rs/Cargo.toml -- -Dwarnings
103+ COMMAND cargo +${RUST_STABLE_VERSION} clippy --fix --allow-dirty --allow-no-vcs --allow- staged --all-targets --all-features
104104 --manifest-path ${PROJECT_SOURCE_DIR} /libcc2rs-macros/Cargo.toml -- -Dwarnings
105105 COMMAND ${RUFF} --silent check --fix ${PYTHON_SOURCES}
106106 COMMAND ${RUFF} --silent format ${PYTHON_SOURCES}
0 commit comments