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

Zuccace picture Zuccace  路  3Comments

StephanBeer picture StephanBeer  路  3Comments

loveablefellow007 picture loveablefellow007  路  3Comments

thurask picture thurask  路  3Comments

bkdwt picture bkdwt  路  3Comments