Skip to content

Commit 885a920

Browse files
authored
Release v2.11.6 (#217)
* Release v2.11.6
1 parent 0b1adfe commit 885a920

File tree

3 files changed

+13
-9
lines changed

3 files changed

+13
-9
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [2.11.6] - 2024-11-20
9+
10+
- add `#[allow(deprecated)]` attribute to the generated code.
11+
812
## [2.11.5] - 2024-10-24
913

1014
- Bump `syn` to 2.

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ categories.workspace = true
1717
[dependencies]
1818
bitvec = { version = "1", default-features = false, features = ["alloc"], optional = true }
1919
cfg-if = "1.0"
20-
scale-info-derive = { version = "2.11.5", path = "derive", default-features = false, optional = true }
20+
scale-info-derive = { version = "2.11.6", path = "derive", default-features = false, optional = true }
2121
serde = { version = "1", default-features = false, optional = true, features = ["derive", "alloc"] }
2222
derive_more = { version = "1.0.0", default-features = false, features = ["from"] }
2323
scale = { package = "parity-scale-codec", version = "3", default-features = false, features = ["derive"] }
2424
schemars = { version = "0.8", optional = true }
2525

2626
[dev-dependencies]
27-
scale-info-derive = { version = "2.11.4", path = "derive" }
27+
scale-info-derive = { version = "2.11.6", path = "derive" }
2828

2929
[features]
3030
default = ["std"]
@@ -60,7 +60,7 @@ members = [
6060
]
6161

6262
[workspace.package]
63-
version = "2.11.5"
63+
version = "2.11.6"
6464
authors = [
6565
"Parity Technologies <admin@parity.io>",
6666
"Centrality Developers <support@centrality.ai>",

test_suite/tests/ui/fail_with_invalid_codec_attrs.stderr

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ error: Invalid attribute on field, only `#[codec(skip)]`, `#[codec(compact)]` an
1010
14 | Thing(#[codec(index = 3)] u32),
1111
| ^^^^^
1212

13-
error: expected literal
14-
--> tests/ui/fail_with_invalid_codec_attrs.rs:19:21
13+
error: Invalid attribute on variant, only `#[codec(skip)]` and `#[codec(index = $u8)]` are accepted.
14+
--> tests/ui/fail_with_invalid_codec_attrs.rs:19:13
1515
|
1616
19 | #[codec(index = a)]
17-
| ^
17+
| ^^^^^
1818

19-
error: expected literal
20-
--> tests/ui/fail_with_invalid_codec_attrs.rs:25:25
19+
error: Invalid attribute on variant, only `#[codec(skip)]` and `#[codec(index = $u8)]` are accepted.
20+
--> tests/ui/fail_with_invalid_codec_attrs.rs:25:7
2121
|
2222
25 | #[codec(encode_as = u8, compact)]
23-
| ^^
23+
| ^^^^^

0 commit comments

Comments
 (0)