-
Notifications
You must be signed in to change notification settings - Fork 370
Closed
Description
See #841 .
This is still broken in 0.26. This makes Builder::with_config() a PITA to use.
cbindgen::Builder::new()
.with_crate(std::env::var("CARGO_MANIFEST_DIR").unwrap())
.with_config(cbindgen::Config {
language: cbindgen::Language::C,
braces: cbindgen::Braces::SameLine,
cpp_compat: true,
style: cbindgen::Style::Both,
..Default::default()
})
.generate()?
.write_to_file("binding.h");error[E0451]: field `config_path` of struct `Config` is private
--> foo/build.rs:104:15
|
104 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^ field `config_path` is private
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels