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

zejji picture zejji  路  4Comments

bkdwt picture bkdwt  路  3Comments

divyakutty picture divyakutty  路  3Comments

roycebank picture roycebank  路  3Comments

Cyb3rD3m0n picture Cyb3rD3m0n  路  3Comments