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
Our code initialises Config not via ::default() but like this:
cbindgen::Config{pragma_once:true,include_version:true,// some more fields here
..Default::default()}
and that causes
error[E0451]: field `config_path` of struct `Config` is private
--> api/cpp/cbindgen.rs:83:11
|
83 |..Default::default()
| ^^^^^^^^^^^^^^^^^^ field `config_path` is private
I can work around this of course by using Config::default(), but unfortunately the crate release with this change breaks our existing crate on crates.io that relies on this :-(
PR #820 changed the config struct in a way that breaks existing code:
Our code initialises
Confignot via::default()but like this:and that causes
I can work around this of course by using
Config::default(), but unfortunately the crate release with this change breaks our existing crate on crates.io that relies on this :-(