It appears that cross-compiling with Rust is rather straightforward: just install the target you're… hmm, targeting with "rutsup target add <target>", and use "cargo build --target <target> --release" β€” not much harder than it is with Go.
Considering that your target is available via rustup β€” mine, PowerPC MUSL system wasn't and I had to build natively, I'll figure out how to add my own targets later. But building for my old ARM machine went without a hitch β€” and, surprisingly, the binary worksπŸ˜‚

In case some of the crates use C code and build something themselves, like ring crate does, you have to point cargo to the right tools using the environment variables, but in a lot of cases it figures everything out on its own.
Also rust crate version 0.16 didn't support 32-bit PowerPC properly so to port TUI RSS reader here github.com/veeso/tuifeed I had to update a few dependencies to use newer ring 0.17

Show thread

Some problems arise from software relying on atomics (thread-safe types) from the standard library, which aren't portable β€” luckily, there is portable-atomic crate: github.com/taiki-e/portable-at
Replacing atomics from standard library with the ones from portable-atomic IS straightforward, but in my case it was a dependency of a dependency using it, so building the RSS reader involved adding a [patch.crates-io] section to Cargo.toml to use a local patched version of crate.

Show thread

Now I have to figure out how to make ureq in this RSS reader use the proxy set with environmental variables. It looks trivial to accomplish: a matter of implementing the Default trait, which is now derived, for the structure (which would be an object in classic object oriented language) that is used as HTTP client.

Show thread

@romin
For me it's more about experimenting with Rust and seeing how well it works on marginal architectures (so far so good) than about making the RSS reader work. It's not even that good TBH β€” very basic, I don't think I'll keep using it even πŸ˜‚
For me installing that web-based behemoth in Python would make more sense, can't recall its name β€” it has accounts and uses PostgreSQL DB for its data. I really like TUI, but I want images in my feeds to easily tell the articles apart 🀷

Follow

@romin
This is the thing I meant: github.com/NicolasLM/feedsubs
It looks nice, but it has so many moving parts (Django, Postgres, Redis πŸ€ͺ) and as I'm not using Dorker, I'm not ready to invest time into hosting it myself yet. I'm using like 4 different machines and a couple of phones more or less daily so having a centralised reader for RSS and not updating the feeds on every machine individually looks like a good idea.

@m0xee well there's tiny tiny rss (haven't used it myself) but
>Host installations are not supported starting 2021. Consider using Docker when planning new tt-rss installations.
:l_sure:
Sign in to participate in the conversation
Librem Social

Librem Social is an opt-in public network. Messages are shared under Creative Commons BY-SA 4.0 license terms. Policy.

Stay safe. Please abide by our code of conduct.

(Source code)

image/svg+xml Librem Chat image/svg+xml