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

Run all tests in no_std environments if std feature is disabled #269

Merged
merged 13 commits into from
Jul 5, 2023

Commits on Jul 1, 2023

  1. Support Error in no_std environments

    The `Error` derive can be made to work well for the most part in
    `no_std` environments by enabling `#![feature(error_in_core)]`. This
    changes the `Error` derive slightly to import `Error` and related
    traits from core, when the `std` feature is disabled.
    
    Fixes #261
    JelteF committed Jul 1, 2023
    Configuration menu
    Copy the full SHA
    053be64 View commit details
    Browse the repository at this point in the history

Commits on Jul 2, 2023

  1. Fix feature tests

    JelteF committed Jul 2, 2023
    Configuration menu
    Copy the full SHA
    1934137 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    575ac74 View commit details
    Browse the repository at this point in the history
  3. cargo fmt

    JelteF committed Jul 2, 2023
    Configuration menu
    Copy the full SHA
    d9d71b2 View commit details
    Browse the repository at this point in the history
  4. Fix doc test

    JelteF committed Jul 2, 2023
    Configuration menu
    Copy the full SHA
    079cbb7 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    8ce404c View commit details
    Browse the repository at this point in the history
  6. Make Error type private

    JelteF committed Jul 2, 2023
    Configuration menu
    Copy the full SHA
    a38e5d5 View commit details
    Browse the repository at this point in the history

Commits on Jul 3, 2023

  1. Minor corrections [skip ci]

    tyranron committed Jul 3, 2023
    Configuration menu
    Copy the full SHA
    1965ae4 View commit details
    Browse the repository at this point in the history
  2. Address review

    JelteF committed Jul 3, 2023
    Configuration menu
    Copy the full SHA
    06cbb91 View commit details
    Browse the repository at this point in the history
  3. rustfmt

    JelteF committed Jul 3, 2023
    Configuration menu
    Copy the full SHA
    1a8d07a View commit details
    Browse the repository at this point in the history
  4. Run all tests also in no_std environments

    This adds the following line to all of our test files.
    ```rust
     #![cfg_attr(not(feature = "std"), no_std)]
    ```
    
    This way we test that all our features also work in no_std environments.
    JelteF committed Jul 3, 2023
    Configuration menu
    Copy the full SHA
    3818b20 View commit details
    Browse the repository at this point in the history

Commits on Jul 5, 2023

  1. Minor corrections

    tyranron committed Jul 5, 2023
    Configuration menu
    Copy the full SHA
    980c8ab View commit details
    Browse the repository at this point in the history
  2. Minor corrections

    tyranron committed Jul 5, 2023
    Configuration menu
    Copy the full SHA
    5fdae05 View commit details
    Browse the repository at this point in the history