Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .config/nextest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ status-level = "pass"
# A profile to run only tests that use clang-tidy and/or clang-format
# NOTE: This profile is intended to keep CI runtime low. Locally, use default or all profiles

default-filter = "(kind(test) + test(use_extra_args)) - package(clang-installer)"
default-filter = "(kind(test) + test(use_extra_args)) - package(clang-tools-manager)"

# show log output from each failing test
failure-output = "final"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ jobs:
uses: actions/download-artifact@v8
with:
name: static-binary-versions
path: clang-installer
path: clang-tools-manager
- run: cargo build --bin cpp-linter --features bin --release
if: steps.cache.outputs.cache-hit != 'true' || steps.validate.outputs.cache-valid == 'false'
- name: Upload build artifact
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/binary-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@ on:
paths:
- cpp-linter/src/**
- cpp-linter/Cargo.toml
- clang-installer/src/**
- clang-installer/Cargo.toml
- clang-tools-manager/src/**
- clang-tools-manager/Cargo.toml
- Cargo.toml
- Cargo.lock
tags:
- cpp-linter/v*
- clang-installer/v*
- clang-tools-manager/v*
pull_request:
branches: [main]
paths:
- cpp-linter/src/**
- cpp-linter/Cargo.toml
- clang-installer/src/**
- clang-installer/Cargo.toml
- clang-tools-manager/src/**
- clang-tools-manager/Cargo.toml
- Cargo.toml
- Cargo.lock

Expand Down Expand Up @@ -136,7 +136,7 @@ jobs:
uses: actions/download-artifact@v8
with:
name: static-binary-versions
path: clang-installer
path: clang-tools-manager

- name: Build
run: >-
Expand Down Expand Up @@ -198,7 +198,7 @@ jobs:
if-no-files-found: error

publish:
if: startswith(github.ref, 'refs/tags/cpp-linter/v') || startswith(github.ref, 'refs/tags/clang-installer/v')
if: startswith(github.ref, 'refs/tags/cpp-linter/v') || startswith(github.ref, 'refs/tags/clang-tools-manager/v')
runs-on: ubuntu-latest
needs: [create-assets]
permissions:
Expand Down Expand Up @@ -229,6 +229,6 @@ jobs:
uses: rust-lang/crates-io-auth-action@bbd81622f20ce9e2dd9622e3218b975523e45bbe # v1.0.4
- name: Publish package
env:
PKG_NAME: ${{ startsWith(github.ref_name, 'cpp-linter') && 'cpp-linter' || 'clang-installer' }}
PKG_NAME: ${{ startsWith(github.ref_name, 'cpp-linter') && 'cpp-linter' || 'clang-tools-manager' }}
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}
run: cargo publish -p ${PKG_NAME}
4 changes: 2 additions & 2 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ jobs:
uses: actions/download-artifact@v8
with:
name: static-binary-versions
path: clang-installer
path: clang-tools-manager
- name: Build docs
run: nur docs --build
- name: Upload docs build as artifact
Expand Down Expand Up @@ -124,7 +124,7 @@ jobs:
uses: actions/download-artifact@v8
with:
name: static-binary-versions
path: clang-installer
path: clang-tools-manager
- run: nur docs rs
- name: upload rustdoc build as artifact
uses: actions/upload-artifact@v7
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/bump-n-release.nu
Original file line number Diff line number Diff line change
Expand Up @@ -58,24 +58,24 @@ const PkgPaths = {
'cpp-linter': {
include: ['cpp-linter/**/*']
exclude: [
'clang-installer/**/*'
'clang-tools-manager/**/*'
'bindings/**/*'
'yarn.lock'
'.yarnrc.yml'
...$COMMON_EXCLUDES
]
path: 'cpp-linter'
},
'clang-installer': {
include: ['clang-installer/**']
'clang-tools-manager': {
include: ['clang-tools-manager/**']
exclude: [
'cpp-linter/**/*'
'bindings/**/*'
'yarn.lock'
'.yarnrc.yml'
...$COMMON_EXCLUDES
]
path: 'clang-installer'
path: 'clang-tools-manager'
},
'cpp-linter-py': {
include: []
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/bump-n-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ on:
- cpp-linter
- cpp-linter-js
- cpp-linter-py
- clang-installer
- clang-tools-manager
component:
description: The version component to increase
type: choice
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/node-js-packaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ jobs:
uses: actions/download-artifact@v8
with:
name: static-binary-versions
path: clang-installer
path: clang-tools-manager
- name: Build
run: ${{ matrix.settings.build }}
shell: bash
Expand Down Expand Up @@ -179,7 +179,7 @@ jobs:
uses: actions/download-artifact@v8
with:
name: static-binary-versions
path: clang-installer
path: clang-tools-manager
- name: Build
shell: cpa.sh {0}
run: |-
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/python-packaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ on:
branches: [main]
paths:
- cpp-linter/**.{rs,toml}
- clang-installer/src/**
- clang-installer/Cargo.toml
- clang-tools-manager/src/**
- clang-tools-manager/Cargo.toml
- bindings/python/**
- Cargo.{toml,lock}
- .github/workflows/python-packaging.yml
Expand All @@ -25,8 +25,8 @@ on:
branches: [main]
paths:
- cpp-linter/**.{rs,toml}
- clang-installer/src/**
- clang-installer/Cargo.toml
- clang-tools-manager/src/**
- clang-tools-manager/Cargo.toml
- bindings/python/**
- Cargo.{toml,lock}
- .github/workflows/python-packaging.yml
Expand Down Expand Up @@ -94,7 +94,7 @@ jobs:
uses: actions/download-artifact@v8
with:
name: static-binary-versions
path: clang-installer
path: clang-tools-manager
- name: Build wheels
uses: PyO3/maturin-action@e83996d129638aa358a18fbd1dfb82f0b0fb5d3b # v1.51.0
with:
Expand Down Expand Up @@ -146,7 +146,7 @@ jobs:
uses: actions/download-artifact@v8
with:
name: static-binary-versions
path: clang-installer
path: clang-tools-manager
- name: Build wheels
uses: PyO3/maturin-action@e83996d129638aa358a18fbd1dfb82f0b0fb5d3b # v1.51.0
with:
Expand Down Expand Up @@ -181,7 +181,7 @@ jobs:
uses: actions/download-artifact@v8
with:
name: static-binary-versions
path: clang-installer
path: clang-tools-manager
- name: Build wheels
uses: PyO3/maturin-action@e83996d129638aa358a18fbd1dfb82f0b0fb5d3b # v1.51.0
with:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/run-dev-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ on:
branches: [main]
paths:
- cpp-linter/**
- clang-installer/**
- clang-tools-manager/**
- Cargo.toml
- Cargo.lock
- .github/workflows/run-dev-tests.yml
pull_request:
branches: [main]
paths:
- cpp-linter/**
- clang-installer/**
- clang-tools-manager/**
- Cargo.toml
- Cargo.lock
- .github/workflows/run-dev-tests.yml
Expand Down Expand Up @@ -121,12 +121,12 @@ jobs:
uses: actions/download-artifact@v8
with:
name: static-binary-versions
path: clang-installer
path: clang-tools-manager

- name: Run test suite
shell: nu {0}
run: |-
let version_info = open "clang-installer/versions.json"
let version_info = open "clang-tools-manager/versions.json"
mut max_ver = 0
mut min_ver = 99
for ver in ($version_info.llvm_versions | columns) {
Expand Down
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[workspace]
members = ["cpp-linter", "bindings/python", "bindings/node", "docs", "clang-installer"]
members = ["cpp-linter", "bindings/python", "bindings/node", "docs", "clang-tools-manager"]
resolver = "2"

[workspace.package]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
<!-- markdownlint-disable MD024 -->

## [clang-installer/v0.1.2] - 2026-06-05
## [clang-tools-manager/v0.1.2] - 2026-06-05

### <!-- 4 --> 🛠️ Fixed

- Restore cargo binstall support by @2bndy5 in [#328](https://github.com/cpp-linter/cpp-linter-rs/pull/328)

[clang-installer/v0.1.2]: https://github.com/cpp-linter/cpp-linter-rs/compare/clang-installer/v0.1.1...clang-installer/v0.1.2
[clang-tools-manager/v0.1.2]: https://github.com/cpp-linter/cpp-linter-rs/compare/clang-tools-manager/v0.1.1...clang-tools-manager/v0.1.2

Full commit diff: [`clang-installer/v0.1.1...clang-installer/v0.1.2`][clang-installer/v0.1.2]
Full commit diff: [`clang-tools-manager/v0.1.1...clang-tools-manager/v0.1.2`][clang-tools-manager/v0.1.2]

## [clang-installer/v0.1.1] - 2026-06-04
## [clang-tools-manager/v0.1.1] - 2026-06-04

### <!-- 1 --> 🚀 Added

Expand All @@ -32,8 +32,8 @@ Full commit diff: [`clang-installer/v0.1.1...clang-installer/v0.1.2`][clang-inst

- Prepare to release individual packages by @2bndy5 in [#302](https://github.com/cpp-linter/cpp-linter-rs/pull/302)

[clang-installer/v0.1.1]: https://github.com/cpp-linter/cpp-linter-rs/compare/2e25fec0a447df24d0bcc1b80f6624040bab755e...clang-installer/v0.1.1
[clang-tools-manager/v0.1.1]: https://github.com/cpp-linter/cpp-linter-rs/compare/2e25fec0a447df24d0bcc1b80f6624040bab755e...clang-tools-manager/v0.1.1

Full commit diff: [`2e25fec...clang-installer/v0.1.1`][clang-installer/v0.1.1]
Full commit diff: [`2e25fec...clang-tools-manager/v0.1.1`][clang-tools-manager/v0.1.1]

<!-- generated by git-cliff -->
4 changes: 2 additions & 2 deletions clang-installer/Cargo.toml → clang-tools-manager/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "clang-installer"
name = "clang-tools-manager"
version = "0.1.2"
description = "A utility for installing specific versions of clang-format and clang-tidy, used by cpp-linter."
readme = "README.md"
Expand Down Expand Up @@ -53,4 +53,4 @@ serde_json = { workspace = true }
reqwest = { workspace = true, features = ["default-tls", "blocking"] }

[package.metadata.binstall]
pkg-url = "{ repo }/releases/download/clang-installer/v{ version }/{ name }-{ target }{ archive-suffix }"
pkg-url = "{ repo }/releases/download/clang-tools-manager/v{ version }/{ name }-{ target }{ archive-suffix }"
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# clang-installer
# clang-tools-manager

A Rust crate to ensure clang-format and/or clang-tidy are installed.

Expand Down
2 changes: 1 addition & 1 deletion clang-installer/build.rs → clang-tools-manager/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ fn main() {
fs::read_to_string(&pre_seed).unwrap()
} else {
ClientBuilder::new()
.user_agent("cpp-linter-rs/clang-installer")
.user_agent("cpp-linter-rs/clang-tools-manager")
.timeout(Duration::from_secs(30))
.build()
.unwrap()
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use anyhow::Result;
use clang_installer::{ClangTool, RequestedVersion};
use clang_tools_manager::{ClangTool, RequestedVersion};
use clap::Parser;

use std::{collections::HashMap, path::PathBuf, str::FromStr};
Expand Down Expand Up @@ -43,7 +43,7 @@ mod logging {
} else if self.enabled(record.metadata()) {
let module = record.module_path();
if module.is_none_or(|v| {
v.starts_with("clang_installer") || v.starts_with("clang_tools")
v.starts_with("clang_tools_manager") || v.starts_with("clang_tools")
}) {
writeln!(
stdout,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ impl ProgressBar {
///
/// ```
/// use std::num::NonZero;
/// use clang_installer::ProgressBar;
/// use clang_tools_manager::ProgressBar;
///
/// let total = NonZero::new(100);
/// let mut progress_bar = ProgressBar::new(total, "Downloading");
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ impl Log for SimpleLogger {
.expect("Failed to flush log command in stdout");
} else if self.enabled(record.metadata()) {
let module = record.module_path();
if module
.is_none_or(|v| v.starts_with("clang_installer") || v.starts_with("clang_tools"))
{
if module.is_none_or(|v| {
v.starts_with("clang_tools_manager") || v.starts_with("clang_tools")
}) {
writeln!(
stdout,
"[{}]: {}",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use std::{env, process::Command};

use semver::VersionReq;

use clang_installer::{ClangTool, PyPiDownloader};
use clang_tools_manager::{ClangTool, PyPiDownloader};
use tempfile::TempDir;
mod common;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::env;

use clang_installer::{ClangTool, StaticDistDownloader};
use clang_tools_manager::{ClangTool, StaticDistDownloader};
use semver::VersionReq;
use tempfile::TempDir;
mod common;
Expand Down
2 changes: 1 addition & 1 deletion cpp-linter/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ license.workspace = true
anyhow = { workspace = true }
async-trait = "0.1.89"
chrono = "0.4.44"
clang-installer = { path = "../clang-installer", version = "0.1.2" }
clang-tools-manager = { path = "../clang-tools-manager", version = "0.1.2" }
clap = { workspace = true, optional = true }
colored = { workspace = true, optional = true }
fast-glob = "1.0.1"
Expand Down
4 changes: 2 additions & 2 deletions cpp-linter/src/clang_tools/clang_tidy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use std::{

// non-std crates
use anyhow::{Context, Result, anyhow};
use clang_installer::utils::normalize_path;
use clang_tools_manager::utils::normalize_path;
use regex::Regex;
use serde::Deserialize;

Expand Down Expand Up @@ -376,7 +376,7 @@ mod test {
sync::{Arc, Mutex},
};

use clang_installer::RequestedVersion;
use clang_tools_manager::RequestedVersion;
use regex::Regex;

use crate::{
Expand Down
Loading
Loading