Stream: general

Topic: termux support


view this post on Zulip ha421 (Jul 23 2022 at 16:49):

Hi, I submitted a "naive" PR at http://github.com/termux/packages to get wasm32-wasi target main stream.
the build process is quite heavy (afaik built on fossorg servers) and anyone efficient at building termux packages is welcome to contribute ...

view this post on Zulip ha421 (Jul 24 2022 at 04:44):

the correct url is: https://github.com/termux/termux-packages

A build system and primary set of packages for Termux. - GitHub - termux/termux-packages: A build system and primary set of packages for Termux.

view this post on Zulip bstrie (Jul 25 2022 at 16:30):

(I've moved this into its own thread so it stands out)

view this post on Zulip Dan Gohman (Jul 25 2022 at 19:31):

I'm not familiar with termux; could you say more about what termux packages are?

view this post on Zulip Jacob Lifshay (Jul 25 2022 at 21:10):

termux packages are in debian package format except compiled for android -- basically a linux distribution for android

view this post on Zulip Dan Gohman (Jul 25 2022 at 21:12):

What does wasm32-wasi support mean in this context?

view this post on Zulip Dan Gohman (Jul 25 2022 at 21:14):

Is the PR this one? https://github.com/termux/termux-packages/pull/11243

this will bring std-wasm32-wasi target to rust

view this post on Zulip Dan Gohman (Jul 25 2022 at 21:15):

It looks like the initial wasm32-wasi support resembles wasm32-unknown-unknown. That's a reasonable place to start, but I'm curious what kinds of packages can be compiled for wasm32-unknown-unknown.

view this post on Zulip ha421 (Aug 03 2022 at 04:40):

oops didn't get notifications
yes,the above is the pr
I'm using wasi to get ui modules based
on the core/gui native framework developped here: quite impressive due to a largely shared cross platform codebase
(right now android and windows,linux will
be tested "rsn")
an optimized wasi module brings you a simple gui applcation in say 64k)
compiling such an app using termux is very handy (think of: if I can do it there,I can do it anywhere :)

view this post on Zulip ha421 (Aug 03 2022 at 04:47):

i m using the wasi target on termux already but need to get a linux distro and rustup there : on recent smartphones it's ok. using a 3/32 Go redmi note 5 non rooted it's a juggler challenge :)

view this post on Zulip Jacob Lifshay (Aug 03 2022 at 06:00):

well, if you don't mind waiting a day and a half, you can try compiling rustc on your phone ... I tried that for fun but gave up after several hours.

view this post on Zulip Jacob Lifshay (Aug 03 2022 at 06:00):

iirc I got llvm to finish compiling though. :P

view this post on Zulip ha421 (Aug 03 2022 at 06:09):

yes , did a custom rustc apk where you invoke rustc from unix sockets , dynamically load the resulting llvm module and are ready to go ...

view this post on Zulip ha421 (Aug 03 2022 at 06:11):

from termux ...

view this post on Zulip ha421 (Aug 03 2022 at 06:11):

no pc involved

view this post on Zulip ha421 (Aug 03 2022 at 06:14):

I will complete the pr soon or later, just hoping someone would jump in lol


Last updated: Dec 23 2024 at 12:05 UTC