Skip to content

Commit a69d1f1

Browse files
fix: simplify release-please config for independent crate versioning (#14)
* fix: simplify release-please config for independent crate versioning Enable component-in-tag for per-crate tags, remove extra-files that synced versions to workspace Cargo.toml (cargo-workspace plugin handles this), and remove linked-versions plugin to allow independent versioning. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * fix: export CachedBadge and CacheKey from ans-verify public API These types were used in public BadgeCache method signatures but never re-exported, making them inaccessible to consumers and causing broken doc links to CachedBadge::is_valid. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 012449a commit a69d1f1

2 files changed

Lines changed: 6 additions & 37 deletions

File tree

crates/ans-verify/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ pub use ans_types::{
7878
};
7979

8080
// Re-export from this crate
81-
pub use cache::{BadgeCache, CacheConfig};
81+
pub use cache::{BadgeCache, CacheConfig, CacheKey, CachedBadge};
8282
pub use dane::{
8383
DanePolicy, DaneVerificationResult, TlsaMatchingType, TlsaRecord, TlsaSelector, TlsaUsage,
8484
};

release-please-config.json

Lines changed: 5 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -2,55 +2,24 @@
22
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
33
"bump-minor-pre-major": true,
44
"bump-patch-for-minor-pre-major": true,
5-
"include-component-in-tag": false,
5+
"include-component-in-tag": true,
66
"packages": {
77
"crates/ans-types": {
88
"release-type": "rust",
9-
"component": "ans-types",
10-
"extra-files": [
11-
{
12-
"type": "toml",
13-
"path": "../../Cargo.toml",
14-
"jsonpath": "$.workspace.package.version"
15-
},
16-
{
17-
"type": "toml",
18-
"path": "../../Cargo.toml",
19-
"jsonpath": "$.workspace.dependencies.ans-types.version"
20-
}
21-
]
9+
"component": "ans-types"
2210
},
2311
"crates/ans-verify": {
2412
"release-type": "rust",
25-
"component": "ans-verify",
26-
"extra-files": [
27-
{
28-
"type": "toml",
29-
"path": "../../Cargo.toml",
30-
"jsonpath": "$.workspace.dependencies.ans-verify.version"
31-
}
32-
]
13+
"component": "ans-verify"
3314
},
3415
"crates/ans-client": {
3516
"release-type": "rust",
36-
"component": "ans-client",
37-
"extra-files": [
38-
{
39-
"type": "toml",
40-
"path": "../../Cargo.toml",
41-
"jsonpath": "$.workspace.dependencies.ans-client.version"
42-
}
43-
]
17+
"component": "ans-client"
4418
}
4519
},
4620
"plugins": [
4721
{
4822
"type": "cargo-workspace"
49-
},
50-
{
51-
"type": "linked-versions",
52-
"groupName": "ans-sdk",
53-
"components": ["ans-types", "ans-verify", "ans-client"]
5423
}
5524
]
56-
}
25+
}

0 commit comments

Comments
 (0)