Open
Description
Overview
ink! projects can now declare their target ABI in their manifest file (i.e. Cargo.toml
).
The specified ABI is then propagated into the build environment as a cfg
flag ink_abi
.
Motivation
Some definitions (and related dependencies) in ink! core crates are only relevant to specific ABIs.
As an example SolEncode
and SolDecode
implementations for Rust/ink! "primitive" types in ink_primitives
and the related alloy_sol_types
dependency are unnecessary when the ABI is "ink". The same is also likely true for some SCALE implementations for ink! specific types.
However, this doesn't only apply to ink_primitives
but to other ink! core crates as well (e.g. ink
, ink_env
, ink_e2e
e.t.c)
Design
TBD
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Backlog