Skip to content

Commit cd8d423

Browse files
authored
Release v0.36.0 (#148)
* Bump version to 0.36.0 * Release changelog * Fix invalid doc comment in generated Rust code * Add CI job to check that documentation builds succesfully
1 parent d31d165 commit cd8d423

File tree

7 files changed

+66
-12
lines changed

7 files changed

+66
-12
lines changed

.changelog/v0.36.0/summary.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
*September 28th, 2023*
2+
3+
Warning: This release downgrades the Protobuf definitions for IBC-Go, Cosmos SDK, and Interchain Security.

.github/workflows/rust.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,22 @@ jobs:
123123
with:
124124
command: build
125125

126+
doc:
127+
runs-on: ubuntu-latest
128+
steps:
129+
- uses: actions/checkout@v2
130+
- uses: actions-rs/toolchain@v1
131+
with:
132+
toolchain: stable
133+
override: true
134+
- uses: Swatinem/rust-cache@v1
135+
- uses: actions-rs/cargo@v1
136+
env:
137+
RUSTDOCFLAGS: "-D warnings"
138+
with:
139+
command: doc
140+
args: --all-features
141+
126142
publish-dry-run:
127143
runs-on: ubuntu-latest
128144
steps:

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,22 @@
11
# CHANGELOG
22

3+
## v0.36.0
4+
5+
*September 28th, 2023*
6+
7+
Warning: This release downgrades the Protobuf definitions for IBC-Go, Cosmos SDK, and Interchain Security.
8+
9+
### BREAKING CHANGES
10+
11+
- Since ibc-proto v0.34.0, the script in charge of generating the Rust proto definitions
12+
has been mistakenly checking out their latest version instead of the one
13+
specified in the corresponding `src/*_COMMIT` file. This has now been fixed
14+
and the protos have therefore been downgraded to their proper versions:
15+
* IBC-Go: v7.3.0,
16+
* Cosmos SDK: v0.47.5
17+
* Interchain Security: v3.1.0
18+
([\#147](https://github.com/cosmos/ibc-proto-rs/pull/147))
19+
320
## v0.35.0
421

522
*September 14th, 2023*

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "ibc-proto"
3-
version = "0.35.0"
3+
version = "0.36.0"
44
authors = ["Informal Systems <hello@informal.systems>"]
55
edition = "2021"
66
license = "Apache-2.0"

src/prost/ibc.applications.transfer.v1.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ pub struct QueryParamsResponse {
439439
#[allow(clippy::derive_partial_eq_without_eq)]
440440
#[derive(Clone, PartialEq, ::prost::Message)]
441441
pub struct QueryDenomHashRequest {
442-
/// The denomination trace (\[port_id]/[channel_id])+/[denom\]
442+
/// The denomination trace `(\[port_id]/[channel_id])+/[denom\]`
443443
#[prost(string, tag = "1")]
444444
pub trace: ::prost::alloc::string::String,
445445
}

tools/proto-compiler/src/cmd/compile.rs

Lines changed: 28 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -215,21 +215,39 @@ impl CompileCmd {
215215
out_dir.display()
216216
);
217217

218-
{
219-
println!("[info ] Patching cosmos.staking.v1beta1.rs...");
218+
const PATCHES: &[(&str, &[(&str, &str)])] = &[
219+
(
220+
"cosmos.staking.v1beta1.rs",
221+
&[
222+
("pub struct Validators", "pub struct ValidatorsVec"),
223+
("AllowList(Validators)", "AllowList(ValidatorsVec)"),
224+
("DenyList(Validators)", "DenyList(ValidatorsVec)"),
225+
],
226+
),
227+
(
228+
"ibc.applications.transfer.v1.rs",
229+
&[(
230+
"The denomination trace (\\[port_id]/[channel_id])+/[denom\\]",
231+
"The denomination trace `(\\[port_id]/[channel_id])+/[denom\\]`",
232+
)],
233+
),
234+
];
235+
236+
for (file, patches) in PATCHES {
237+
println!("[info ] Patching {file}...");
220238

221-
let path = out_dir.join("cosmos.staking.v1beta1.rs");
222-
let contents = std::fs::read_to_string(&path)?;
239+
let path = out_dir.join(file);
240+
let original = std::fs::read_to_string(&path)?;
241+
let mut patched = original.clone();
223242

224-
let patched_contents = contents
225-
.replace("pub struct Validators", "pub struct ValidatorsVec")
226-
.replace("AllowList(Validators)", "AllowList(ValidatorsVec)")
227-
.replace("DenyList(Validators)", "DenyList(ValidatorsVec)");
243+
for (before, after) in patches.iter() {
244+
patched = patched.replace(before, after);
245+
}
228246

229-
let diff = TextDiff::from_lines(&contents, &patched_contents);
247+
let diff = TextDiff::from_lines(&original, &patched);
230248
println!("{}", diff.unified_diff().context_radius(3));
231249

232-
std::fs::write(&path, patched_contents)?;
250+
std::fs::write(&path, patched)?;
233251
}
234252

235253
Ok(())

0 commit comments

Comments
 (0)