Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add preliminary support for running doctests. #721

Merged
merged 1 commit into from
May 26, 2022

Commits on May 26, 2022

  1. Add preliminary support for running doctests.

    This partially addresses cross-rs#225.
    
    This only works on nightly, due to the use of the unstable feature [doctest-xcompile](https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#doctest-xcompile)
    
    The relevant tracking issues are:
    - rust-lang/cargo#7040
    - rust-lang/rust#64245
    
    If the subcommand is `test` and the compiler is nightly, we provide the `-Zdoctest-xcompile` flag if `CROSS_UNSTABLE_ENABLE_DOCTESTS=true`.
    Alexhuszagh committed May 26, 2022
    Configuration menu
    Copy the full SHA
    e4f896c View commit details
    Browse the repository at this point in the history