Skip to content

Commit 99a8cb9

Browse files
committed
Enable legacy feature where needed in subxt_metadata so it compiles on its own
1 parent 9836a43 commit 99a8cb9

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/rust.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ jobs:
188188
- name: Cargo hack; check each subxt feature
189189
run: cargo hack -p subxt --each-feature check --exclude-no-default-features --exclude-all-features --exclude-features web --features native
190190

191+
# Same with subxt-historic
191192
- name: Cargo hack; check each subxt feature
192193
run: cargo hack -p subxt-historic --each-feature check --exclude-no-default-features --exclude-all-features --exclude-features web --features native
193194

metadata/Cargo.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,12 @@ default = ["std", "legacy"]
1818
std = ["scale-info/std", "frame-metadata/std"]
1919

2020
# Enable decoding of legacy metadata, too.
21-
legacy = ["dep:scale-info-legacy", "dep:scale-type-resolver"]
21+
legacy = [
22+
"dep:scale-info-legacy",
23+
"dep:scale-type-resolver",
24+
"frame-decode/legacy",
25+
"frame-metadata/legacy"
26+
]
2227

2328
[dependencies]
2429
scale-info = { workspace = true, default-features = false }

0 commit comments

Comments
 (0)