Skip to content

Commit 721c059

Browse files
authored
Merge branch 'main' into feat/macro-blocks
2 parents 421b600 + 5fcd5cf commit 721c059

10 files changed

Lines changed: 50 additions & 20 deletions

File tree

Cargo.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ exclude = ["test_app"]
99

1010
[package]
1111
name = "cargo_pup"
12-
version = "0.1.1"
12+
version = "0.1.2"
1313
edition = "2024"
1414
description = "A Rust architectural linting tool that integrates with rustc to enforce architectural patterns and boundaries"
1515
license = "Apache-2.0"
@@ -34,9 +34,9 @@ anyhow = { workspace = true }
3434
tempfile = { workspace = true }
3535
ron = { workspace = true }
3636
cargo_metadata = { workspace = true }
37-
cargo_pup_common = { path = "cargo_pup_common", version = "0.1.1" }
38-
cargo_pup_lint_impl = { path = "cargo_pup_lint_impl", version = "0.1.1" }
39-
cargo_pup_lint_config = { path = "cargo_pup_lint_config", version = "0.1.1" }
37+
cargo_pup_common = { path = "cargo_pup_common", version = "=0.1.2" }
38+
cargo_pup_lint_impl = { path = "cargo_pup_lint_impl", version = "=0.1.2" }
39+
cargo_pup_lint_config = { path = "cargo_pup_lint_config", version = "=0.1.2" }
4040

4141
#
4242
# These bits are just to keep rust rover happy.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ First, add the following to your `Cargo.toml`:
120120
121121
```toml
122122
[dev-dependencies]
123-
cargo_pup_lint_config = "0.1.1"
123+
cargo_pup_lint_config = "0.1.2"
124124
```
125125
126126
## Examples

cargo_pup_common/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "cargo_pup_common"
3-
version = "0.1.1"
3+
version = "0.1.2"
44
edition = "2024"
55
description = "Common utilities and shared components for cargo-pup architectural linting tool"
66
license = "Apache-2.0"

cargo_pup_common/README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
# cargo_pup_common
22

3-
Common utilities and shared components for the cargo-pup architectural linting tool.
3+
<picture>
4+
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/DataDog/cargo-pup/main/docs/pup_dark.png">
5+
<source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/DataDog/cargo-pup/main/docs/pup_light.png">
6+
<img alt="cargo_pup logo" src="https://raw.githubusercontent.com/DataDog/cargo-pup/main/docs/pup_light.png" width="250">
7+
</picture>
8+
9+
Common utilities and shared components for the [cargo-pup architectural linting](https://github.com/datadog/cargo-pup) tool.
410

511
This crate provides foundational types, CLI utilities, and project context management that are shared across the cargo-pup ecosystem.
612

cargo_pup_lint_config/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "cargo_pup_lint_config"
3-
version = "0.1.1"
3+
version = "0.1.2"
44
edition = "2024"
55
description = "Configuration and rule builder utilities for cargo-pup architectural linting"
66
license = "Apache-2.0"
@@ -13,4 +13,4 @@ serde.workspace = true
1313
ron.workspace = true
1414
tempfile.workspace = true
1515
anyhow.workspace = true
16-
cargo_pup_common = { path = "../cargo_pup_common", version = "0.1.1" }
16+
cargo_pup_common = { path = "../cargo_pup_common", version = "=0.1.2" }

cargo_pup_lint_config/README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
# cargo_pup_lint_config
22

3-
Configuration and rule builder utilities for cargo-pup architectural linting.
3+
<picture>
4+
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/DataDog/cargo-pup/main/docs/pup_dark.png">
5+
<source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/DataDog/cargo-pup/main/docs/pup_light.png">
6+
<img alt="cargo_pup logo" src="https://raw.githubusercontent.com/DataDog/cargo-pup/main/docs/pup_light.png" width="250">
7+
</picture>
8+
9+
Configuration and rule builder utilities for [cargo-pup architectural linting](https://github.com/datadog/cargo-pup).
410

511
This crate provides the programmatic builder interface for defining architectural lint rules. It offers type-safe, IDE-friendly APIs for creating complex architectural assertions about your Rust codebase.
612

@@ -18,7 +24,7 @@ Add this to your `Cargo.toml`:
1824

1925
```toml
2026
[dev-dependencies]
21-
cargo_pup_lint_config = "0.1.1"
27+
cargo_pup_lint_config = "0.1.2"
2228
```
2329

2430
## Example

cargo_pup_lint_impl/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "cargo_pup_lint_impl"
3-
version = "0.1.1"
3+
version = "0.1.2"
44
edition = "2024"
55
description = "Core lint implementations and rustc integration for cargo-pup architectural linting"
66
license = "Apache-2.0"
@@ -9,8 +9,8 @@ homepage = "https://github.com/datadog/cargo-pup"
99
readme = "README.md"
1010

1111
[dependencies]
12-
cargo_pup_lint_config = { path = "../cargo_pup_lint_config", version = "0.1.1" }
13-
cargo_pup_common = { path = "../cargo_pup_common", version = "0.1.1" }
12+
cargo_pup_lint_config = { path = "../cargo_pup_lint_config", version = "=0.1.2" }
13+
cargo_pup_common = { path = "../cargo_pup_common", version = "=0.1.2" }
1414
anyhow.workspace = true
1515
regex.workspace = true
1616
serde_json.workspace = true

cargo_pup_lint_impl/README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
# cargo_pup_lint_impl
22

3-
Core lint implementations and rustc integration for cargo-pup architectural linting.
3+
<picture>
4+
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/DataDog/cargo-pup/main/docs/pup_dark.png">
5+
<source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/DataDog/cargo-pup/main/docs/pup_light.png">
6+
<img alt="cargo_pup logo" src="https://raw.githubusercontent.com/DataDog/cargo-pup/main/docs/pup_light.png" width="250">
7+
</picture>
8+
9+
Core lint implementations and rustc integration for [cargo-pup architectural linting](https://github.com/datadog/cargo-pup).
410

511
This crate contains the actual lint rule implementations and provides the rustc compiler integration that powers cargo-pup's architectural validation capabilities.
612

scripts/pre_publish.sh

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,16 @@
55
# also create a new git commit for the release, and then
66
# create a release from this commit from the GitHub UI.
77
#
8-
cargo workspaces version --no-git-commit minor -y
8+
set -e
9+
10+
# Bump versions in Cargo.toml files
11+
cargo workspaces version --no-git-commit --exact --force '*' patch -y
12+
13+
# Get the new version from the root Cargo.toml
14+
NEW_VERSION=$(grep '^version = ' Cargo.toml | sed 's/version = "\(.*\)"/\1/')
15+
16+
# Update version references in README files
17+
sed -i '' "s/cargo_pup_lint_config = \"[^\"]*\"/cargo_pup_lint_config = \"$NEW_VERSION\"/g" README.md
18+
sed -i '' "s/cargo_pup_lint_config = \"[^\"]*\"/cargo_pup_lint_config = \"$NEW_VERSION\"/g" cargo_pup_lint_config/README.md
19+
20+
echo "Updated versions to $NEW_VERSION"

0 commit comments

Comments
 (0)