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

CI: Also run tests with --no-default-features #1059

Merged
merged 4 commits into from
May 12, 2023

Commits on May 12, 2023

  1. Fix import

    pitdicker committed May 12, 2023
    Configuration menu
    Copy the full SHA
    4f85712 View commit details
    Browse the repository at this point in the history
  2. Ignore unsupported doc tests under --no-default-features

    There's no pretty way of gating doctests contingent on cfg
    presence/absense so this is kind of ugly.
    
    First, a doc comment `///` is converted into its equivalent
    `#[doc(...)]`, which is then converted into a conditional rust attribute
    via `#[cfg_attr(...)]`. We need two of these, one to ignore the tests if
    the cfg predicate isn't met and another to indicate the start of a code
    block and enable testing + syntax highlighting.
    mqudsi authored and pitdicker committed May 12, 2023
    Configuration menu
    Copy the full SHA
    f7278c2 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ec969f4 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    bbba9be View commit details
    Browse the repository at this point in the history