run-rust¶
Used build.image: testing
to call cargo
command (checking that Rust is installed).
We are expecting to have a successful build and this page should show cargo --version
output.
>>> import subprocess
>>> command = subprocess.run(['cargo', '--version'], capture_output=True)
>>> print(command.stdout)
b'cargo 1.46.0 (149022b1d 2020-07-17)\n'
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | # -*- coding: utf-8 -*-
# Default settings
project = 'Test Builds'
extensions = [
'sphinx_autorun',
]
latex_engine = 'xelatex' # allow us to build Unicode chars
# Include all your settings here
html_theme = 'sphinx_rtd_theme'
|
>>> # Build at
>>> import datetime
>>> datetime.datetime.utcnow() # UTC
datetime.datetime(2022, 2, 24, 17, 47, 5, 258463)