"transparent struct cannot have other repr hints"
When trying to compile the demo, I get the following error.
Compiling objrs_frameworks_core_graphics v0.0.3-dev (/Users/adamnemecek/Code/ngrid/main/objrs/frameworks/core_graphics)
error[E0692]: transparent struct cannot have other repr hints
--> frameworks/foundation/src/nsobject.rs:18:8
|
16 | #[objrs(class, root_class)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
17 | #[link(name = "Foundation", kind = "framework")]
18 | #[repr(C)]
| ^
error: aborting due to previous error
For more information about this error, try `rustc --explain E0692`.
error: could not compile `objrs_frameworks_foundation`.
To learn more, run the command again with --verbose.
I'm using nightly.
This is the offending code
#[objrs(class, root_class)]
#[link(name = "Foundation", kind = "framework")]
#[repr(C)]
pub struct NSObject {
#[deprecated]
isa: *mut objrs::Class,
}
Edited by adamnemecek