facebook/watchman

Can dependency on Rust be avoided? Rust does not exist on many platforms

barracuda156 opened this issue · 4 comments

Question in the subject :)

I want to build it, but there is no Rust for PPC.

The Rust dependency in Watchman is for building watchmanctl AFAIK, which is currently just a CLI for interacting with Watchman itself. It is not strictly required if you can't build that part. You should try commenting out the relevant section in CMake and see if it works.

However, we do have plan to move more bits of Watchman to Rust soon.

The Rust dependency in Watchman is for building watchmanctl AFAIK, which is currently just a CLI for interacting with Watchman itself. It is not strictly required if you can't build that part. You should try commenting out the relevant section in CMake and see if it works.

Thank you, I will try that.

However, we do have plan to move more bits of Watchman to Rust soon.

If possible, having a fallback to a non-Rust implementation would be desirable.

According to the docs, I think PowerPC does have Tier 2 support for Rust.

According to the docs, I think PowerPC does have Tier 2 support for Rust.

I don’t see powerpc-apple-darwin there at all, and most of powerpc targets (FreeBSD, AIX) are in Tier 3.
Support for -apple-darwin and support for powerpc- does not yet imply support for powerpc-apple-darwin, since MacOS PowerPC ABI differs from that of ELF (and while much less so, but from AIX too).

Right now we cannot even test that, since there is no working way to bootstrap any Rust to begin with. mrustc is the most likely pathway that could work; I fixed targets for it, but we still need to fix endianness in some spots (well, no time to deal with that so far).

What seems to work fine is gccrs, but unfortunately nothing so far supports GCC Rust.