diff --git a/CHANGES b/CHANGES index c81b81e09..cb56b372f 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,7 @@ +# unreleased + + * Revert: The `Config` struct now has a private member. + # 0.26.0 * Fix swapping of `>>=` and `<<=` in constants. diff --git a/src/bindgen/config.rs b/src/bindgen/config.rs index 5012414b7..a976d1d26 100644 --- a/src/bindgen/config.rs +++ b/src/bindgen/config.rs @@ -1010,8 +1010,15 @@ pub struct Config { pub only_target_dependencies: bool, /// Configuration options specific to Cython. pub cython: CythonConfig, + #[doc(hidden)] #[serde(skip)] - pub(crate) config_path: Option, + /// Internal field for tracking from which file the config was loaded. + /// + /// Users should not set this field explicitly. Making the field private + /// prevents users from filling the struct with `..Default::default()`, + /// and creating a new InternalConfig struct would require more breaking + /// changes to our public API. + pub config_path: Option, } impl Default for Config {