Hello.
I sometimes have problems with the rust edition:
Caused by:
feature `edition2021` is required
this Cargo does not support nightly features, but if you
switch to nightly channel you can add
`cargo-features = ["edition2021"]` to enable this feature
How to check crate compatibility with edition 2018?
Is exist any tool for this?
It sounds like you're using an old compiler. The thing to look for is the MSRV of the crate, which means "minimum supported rust version". If the compiler version you are using is not older than the MSRV of a crate, then you shouldn't run into edition issues either.
The 2021 edition was introduced with rust 1.56. If you really can't use a newer rustc version, you can try changing edition = "2021" to edition = "2018" in Cargo.toml and see if it compiles.
You probably need to lock them down, then. MSRV increase is not considered a breaking change by most developers thus to avoid the problem the only somewhat reliable solutions is Cargo.lock.
Most Rust developers would consider that a trouble caused by yocto and would ask them to decide what they plan to do about it.