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

basic no_std support #1868

Draft
wants to merge 16 commits into
base: main
Choose a base branch
from
Draft

Commits on Dec 13, 2022

  1. WIP no_std

    n-prat committed Dec 13, 2022
    Configuration menu
    Copy the full SHA
    99bc129 View commit details
    Browse the repository at this point in the history

Commits on Feb 13, 2023

  1. WIP 2

    n-prat committed Feb 13, 2023
    Configuration menu
    Copy the full SHA
    d9c8b54 View commit details
    Browse the repository at this point in the history

Commits on Feb 24, 2023

  1. WIP 3

    [no ci]
    n-prat committed Feb 24, 2023
    Configuration menu
    Copy the full SHA
    dd789f2 View commit details
    Browse the repository at this point in the history
  2. WIP build no_std OK

    Still some doctests(and tests?) FAIL
    
    `cargo build --no-default-features`
    
    [no ci]
    n-prat committed Feb 24, 2023
    Configuration menu
    Copy the full SHA
    fe365ed View commit details
    Browse the repository at this point in the history
  3. WIP all tests pass

    `cargo test --no-default-features`
    BUT a lot of `#[cfg(feature = "std")]` etc
    
    [no ci]
    n-prat committed Feb 24, 2023
    Configuration menu
    Copy the full SHA
    a97e448 View commit details
    Browse the repository at this point in the history
  4. WIP no-std-check

    - `cargo test --no-default-features --features=alloc` -> OK
    - `cargo +nightly-2022-10-22 no-std-check --no-default-features` -> FAIL
    n-prat committed Feb 24, 2023
    Configuration menu
    Copy the full SHA
    58e7cef View commit details
    Browse the repository at this point in the history
  5. WIP no-std-check OK

    - `cargo +nightly-2022-10-22 no-std-check --no-default-features --features=alloc` OK
    - `cargo test --no-default-features --features=alloc` OK
    n-prat committed Feb 24, 2023
    Configuration menu
    Copy the full SHA
    b381dc9 View commit details
    Browse the repository at this point in the history

Commits on Mar 2, 2023

  1. small fixes

    - bump `color_quant`: feature `alloc` renamed `num-traits` cf image-rs/color_quant#21
    - `ImageDecoder`: remove `Reader` when no_std b/c cleaner
    n-prat committed Mar 2, 2023
    Configuration menu
    Copy the full SHA
    49e877f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    124ce5a View commit details
    Browse the repository at this point in the history

Commits on Mar 3, 2023

  1. Configuration menu
    Copy the full SHA
    1cb8664 View commit details
    Browse the repository at this point in the history
  2. error.rs: reverse almost all changes

    - remove Snafu
    - require feature `error_in_core` for `no_std`
    
    [ci skip]
    n-prat committed Mar 3, 2023
    Configuration menu
    Copy the full SHA
    f4c58d8 View commit details
    Browse the repository at this point in the history
  3. fix std build

    Both `std` and `no_std` build+test OK
    
    - `cargo test --no-default-features --features=default` OK
    - `cargo +nightly-2022-10-22 test --no-default-features --features=alloc` OK
    - `cargo +nightly-2022-10-22 no-std-check --no-default-features --features=alloc` OK
    n-prat committed Mar 3, 2023
    Configuration menu
    Copy the full SHA
    4684577 View commit details
    Browse the repository at this point in the history
  4. cargo: require "std" for all features

    TODO TEMP? or keep it that way?
    n-prat committed Mar 3, 2023
    Configuration menu
    Copy the full SHA
    27a05ea View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    0c04163 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    f425fee View commit details
    Browse the repository at this point in the history
  7. ci: add "no-std-check"

    n-prat committed Mar 3, 2023
    Configuration menu
    Copy the full SHA
    acbbdea View commit details
    Browse the repository at this point in the history