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

Provide Amount & co in no-alloc #2408

Merged
merged 2 commits into from
Jan 28, 2024
Merged

Commits on Jan 27, 2024

  1. Provide Amount & co in no-alloc

    Using the crate without allocation was previously disabled making the
    crate empty without the feature. This chage makes it more fine-grained:
    it only disables string and float conversions which use allocator. We
    could later provide float conversions by using a sufficiently-long
    `ArrayString`.
    Kixunil committed Jan 27, 2024
    Configuration menu
    Copy the full SHA
    fce03ce View commit details
    Browse the repository at this point in the history
  2. Clean up no_std usage

    Previously the crate used negative reasoning to enable `std` which was
    hard to understand, required the `prelude` module and wasn't really
    needed because it's only needed when a crate wants to add `alloc`
    feature-backwards compatibly and this crate always had the feature.
    
    This cleans up usage to unconditionally use `#[no_std]` and then just
    add `extern crate` on top as needed by activated features.
    Kixunil committed Jan 27, 2024
    Configuration menu
    Copy the full SHA
    ac26171 View commit details
    Browse the repository at this point in the history