This may be a question for @nielx . I found the Rust FFI for Haiku under the name haiku-sys but unfortunately when trying to access it from wrapper code using
it doesn’t appear to even try to load it. Using
cargo --verbose test on the wrapper it appears to try to load the unix cfg path but doesn’t find the os-target of freebsd11 that it seemed to think it was using earlier. Does rust_bin on HaikuPorts think it’s running on a BSD target? When I tried adding a linking target of
-lbsd it didn’t think closely enough to POSIX to load the wrapper as a BSD anyway.
What I’m trying to do is use the area_info type and functions from the Region wrapper. It doesn’t appear to even try to load my code when I test it. Sorry to bother you with such a newbie Rust problem but this one is very Haiku specific.
The link to my half-finished commit is https://github.com/SamuraiCrow/region-rs if you have the time to look.