Open mina86 opened 2 weeks ago
We pretty much don’t care about IDL
Why not skip the IDL generation with --no-idl
then?
I’d like to have an
#[idl_skip]
or#[idl_as]
macro which would allow instructing Anchor to use default or given IdlBuild implementation for given field or argument.
#[idl_skip]
would make the IDL incorrect and unusable, so what's the point? I'm positive on #[idl_as]
though.
D’oh, you’re absolutely right. --no-idl
should solve my problem.
For idl_skip
, I was imagining it would be identical to using default IdlBuild
implementation which returns None
for create_type
.
We are using a lot of types coming from third-party crates which do not implement IdlBuild. This prevents us from update to 0.30. We pretty much don’t care about IDL so adding wrapper for all of the types is a waste of time and makes the code much less readable. As such, I’d like to have an
#[idl_skip]
or#[idl_as]
macro which would allow instructing Anchor to use default or given IdlBuild implementation for given field or argument. E.g.: