mirror of
https://github.com/RustPython/Parser.git
synced 2025-07-21 12:05:27 +00:00

docs.rs failed to build the documentation of the recently released rustpython-parser 0.2.0 because the build.rs script couldn't write the parser.rs file because docs.rs builds the documentation in a sandbox with a read-only filesystem. This commit fixes this by writing the parser.rs file to the cargo output directory instead, as recommended by the docs.rs documentation.[1] Fixes #4436. [1]: https://docs.rs/about/builds#read-only-directories
3 lines
91 B
Rust
3 lines
91 B
Rust
#![allow(clippy::all)]
|
|
#![allow(unused)]
|
|
include!(concat!(env!("OUT_DIR"), "/python.rs"));
|