You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the postcard ecosystem, I've started gating all deps behind versioned features, e.g. defmt-v0_3 instead of defmt. I typically rename the package to allow multiple incompatible versions to exist.
I noticed that the Format macro does not like this:
error[E0433]: failed to resolve: use of undeclared crate or module `defmt`
--> source/postcard-schema/src/key/mod.rs:26:43
|
26 | #[cfg_attr(feature = "defmt-v0_3", derive(defmt_v0_3::Format))]
| ^^^^^^^^^^^^^^^^^^ use of undeclared crate or module `defmt`
|
= note: this error originates in the derive macro `defmt_v0_3::Format` (in Nightly builds, run with -Z macro-backtrace for more info)
For more information about this error, try `rustc --explain E0433`.
Although it should be noted that we're going to a lot of trouble to make sure this kind of import naming will never be required for defmt, because 0.3 will have a semver-trick crate to import-export defmt-1.0.
In the postcard ecosystem, I've started gating all deps behind versioned features, e.g.
defmt-v0_3
instead of defmt. I typically rename the package to allow multiple incompatible versions to exist.I noticed that the
Format
macro does not like this:leads to a compilation error:
Serde allows for something like:
This might be nice to have for defmt as well.
The text was updated successfully, but these errors were encountered: