Closed badicsalex closed 1 year ago
Hi there, in which configuration do you use asn1rs? I can't get it to fail.
cargo build -p asn1rs --features debug-proc-macro
...
Compiling syn v1.0.109
Compiling syn v2.0.13
...
Finished dev [unoptimized + debuginfo] target(s) in 21.33s
Could you provide an MVP?
I just made a new project with cargo new
, put this line into Cargo.toml:
[dependencies]
asn1rs = { git = "https://github.com/kellerkindt/asn1rs.git", rev = "b189ef6"}
And got the same error.
I'm using rustc 1.68.0
.
Cargo.lock
looks like this with the repro:
Interesting ... why does the CI not fail? ... Hopefully fixed by 5b8c49f ?
I wonder why asn1rs
even builds when built from its own directory. Apparently strum_macros v0.19.4
enables the extra-traits
feature on syn
, but I have no idea how that fixes the build. Maybe it's a compilation unit thing.
Thanks for reporting, anyway!
Could you please confirm that this is fixed now?
Yup, it works now. Thanks for the speedy response.
With both the crates.io version and on master, I get the following build error:
I guess the problem is that
if cfg!
is a runtime gate, and the gated code still has to build. And maybe the fact that the build now usessyn v1.0.109
. TheDebug
trait forsyn
'sItem
can be enabled with theextra-traits
feature flag.(P.S.: Great work with the decoder, I'm also using it to decode v1.4.1 CAMs :) It works well once I get it to build.)