Skip to content

Update to more current rust version on readthedocs#410

Merged
GuillaumeGomez merged 1 commit intoaskama-rs:masterfrom
Kijewski:pr-fix-rtd
Apr 20, 2025
Merged

Update to more current rust version on readthedocs#410
GuillaumeGomez merged 1 commit intoaskama-rs:masterfrom
Kijewski:pr-fix-rtd

Conversation

@Kijewski
Copy link
Copy Markdown
Member

Right now, our documentation fails to build on readthedocs, see e.g. https://app.readthedocs.org/projects/askama/builds/27887854/

Our documentation needs nightly features doc_cfg, doc_auto_cfg to build. Instead of using the nightly channel, which is not available on readthedocs.org, we opt in to nightly features by setting the environment variable RUSTC_BOOTSTRAP to 1. This gives on unstable features in a stable channel.

Our dependency proc-macro2 tests if opting-in to unstable feature is possible, and if so, it expects that it runs on a quite recent nightly release. The newest rust version that is available out-of-the-box on readthedocs is rust 1.82, which is not that recent anymore, being released on 2024-08-30.

This PR makes use of the readly configured tool asdf to select a more recent rust version semi-manually.

@Kijewski Kijewski added this to the askama v0.14.0 milestone Apr 19, 2025
Our documentation needs nightly features `doc_cfg`, `doc_auto_cfg` to
build. Instead of using the nightly channel, which is not available on
readthedocs.org, we opt in to nightly features by setting the
environment variable `RUSTC_BOOTSTRAP` to `1`. This gives on unstable
features in a stable channel.

Our dependency `proc-macro2` tests if opting-in to unstable feature is
possible, and if so, it expects that it runs on a quite recent `nightly`
release. The newest rust version that is available out-of-the-box on
readthedocs is rust 1.82, which is not *that* recent anymore, being
released on 2024-08-30.

This PR makes use of the readly configured tool `asdf` to select a more
recent rust version semi-manually.
@GuillaumeGomez
Copy link
Copy Markdown
Collaborator

Thanks!

@GuillaumeGomez GuillaumeGomez merged commit 7cb3ac0 into askama-rs:master Apr 20, 2025
41 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants