Skip to content

Commit d19dfd6

Browse files
Declare ink_abi as an expected cfg in new project Cargo.toml template (#2058)
* Declare `ink_abi` as an expected `cfg` in new project `Cargo.toml` template * Update changelog
1 parent 0181dd7 commit d19dfd6

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2121
- Validate metadata spec arg against specified ABI for contract build - [#2043](https://github.com/use-ink/cargo-contract/pull/2043)
2222
- Make metadata spec arg optional for contract build - [#2047](https://github.com/use-ink/cargo-contract/pull/2047)
2323
- Update Solidity metadata generation to support `SolEncode` and `SolDecode` implementing arbitrary types - [#2048](https://github.com/use-ink/cargo-contract/pull/2048)
24+
- Declare `ink_abi` as an expected `cfg` in new project `Cargo.toml` template - [#2058](https://github.com/use-ink/cargo-contract/pull/2058)
2425

2526
## [6.0.0-alpha]
2627

crates/build/templates/new/_Cargo.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,9 @@ std = [
2020
]
2121
ink-as-dependency = []
2222
e2e-tests = []
23+
24+
[lints.rust.unexpected_cfgs]
25+
level = "warn"
26+
check-cfg = [
27+
'cfg(ink_abi, values("ink", "sol", "all"))'
28+
]

0 commit comments

Comments
 (0)