Termux-packages: How to access official rust documentation locally?

Created on 6 Jun 2020  路  1Comment  路  Source: termux/termux-packages

rustup is not available in termux so, how run documentation locally.
Which is available through rustup doc command?

question

Most helpful comment

If you have rust installed, the html files are accessible through $PREFIX/share/doc/rust/html.

You can launch a local web server to read them in your browser, for example:

python -m http.server --directory $PREFIX/share/doc/rust/html

then open 127.0.0.1:8000 in your browser application.

Having rustup in Termux is quite pointless, Termux is not a standard Linux distribution and most of its functionality will not work.

Screenshot_20200606-152723_Chrome

>All comments

If you have rust installed, the html files are accessible through $PREFIX/share/doc/rust/html.

You can launch a local web server to read them in your browser, for example:

python -m http.server --directory $PREFIX/share/doc/rust/html

then open 127.0.0.1:8000 in your browser application.

Having rustup in Termux is quite pointless, Termux is not a standard Linux distribution and most of its functionality will not work.

Screenshot_20200606-152723_Chrome

Was this page helpful?
0 / 5 - 0 ratings

Related issues

joakim-noah picture joakim-noah  路  73Comments

urrut picture urrut  路  51Comments

tomtom picture tomtom  路  151Comments

ghost picture ghost  路  56Comments

AvielNiego picture AvielNiego  路  84Comments