PackageTrack
Sign in Get early access

atoi

Parse integers directly from `[u8]` slices in safe code

3.1.0 177M downloads/mo #552 most downloaded on crates.io pacman82/atoi-rs

What this package is like to depend on

Last release 1 months ago

25 Jun 2026

Release timing varies

gaps range from 3 weeks to 3.6 years

Most releases are documented

notes for 10 of 15 stable releases

Nothing withdrawn

no release was ever pulled

9 years old

15 releases · first in 2017

2 releases in the last 12 months

see the full history below

Release timeline

15 releases · Jun 2017 to Jun 2026
2018 2019 2020 2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 15
  1. 3.1.0 25 Jun 2026
    Release notes

    🚀 Features

    • Add support for isize and usize on 32 and 64 bit platforms
    Open source →
    Release notes

    🚀 Features

    • Add support for isize and usize on 32 and 64 bit platforms
    Open source →
  2. 3.0.0 04 Jun 2026
    Release notes

    🚀 Features

    • [breaking] Minimal supported rust compiler now 1.86.0

    • [breaking] Remove ascii_to_digit

    • [breaking] Remove trait MaxNumDigits

    • [breaking] Remove enumeration Sign

      It is now an implementation detail of integer

    🚜 Refactor

    • [breaking] FromRadix10 and its sibling traits used to be implement for any type with a neutral element of addition Zero, its successor One, AddAssign and MulAssign. This allowed it to work not only for builtin types like i32, but also for big integer implementations from other crates. However, it made it also hard to optimize for builtin types. FromRadix10 and its sibling traits FromRadix10Signed, FromRadixSignedChecked, FromRadix16 are now explicitly implemented for builtin types. The generic implementation can still be used by wrapping the type in the new Integer wrapper.

    ⚡ Performance

    • Inline from_radix_* functions for builtin types

      Since these are no longer generic, we do not get the inlining for free.
      Benchmarks show significant regressions otherwise

    • Speed up hexdigit parsing by using masks to unify ascii cases

      Thanks to okaneco for the idea

    ⚙️ Miscellaneous Tasks

    • [breaking] Minimal toolchain is now 1.86.0
    • [breaking] Remove Sign from public interface
    Open source →
    Release notes

    🚀 Features

    • [breaking] Minimal supported rust compiler now 1.86.0

    • [breaking] Remove ascii_to_digit

    • [breaking] Remove trait MaxNumDigits

    • [breaking] Remove enumeration Sign

      It is now an implementation detail of integer

    🚜 Refactor

    • [breaking] FromRadix10 and its sibling traits used to be implement for any type with a neutral element of addition Zero, its successor One, AddAssign and MulAssign. This allowed it to work not only for builtin types like i32, but also for big integer implementations from other crates. However, it made it also hard to optimize for builtin types. FromRadix10 and its sibling traits FromRadix10Signed, FromRadixSignedChecked, FromRadix16 are now explicitly implemented for builtin types. The generic implementation can still be used by wrapping the type in the new Integer wrapper.

    ⚡ Performance

    • Inline from_radix_* functions for builtin types

      Since these are no longer generic, we do not get the inlining for free. Benchmarks show significant regressions otherwise

    • Speed up hexdigit parsing by using masks to unify ascii cases

      Thanks to okaneco for the idea

    ⚙️ Miscellaneous Tasks

    • [breaking] Minimal toolchain is now 1.86.0
    • [breaking] Remove Sign from public interface
    Open source →
  3. 2.0.0 11 Oct 2022
    Release notes

    automatically test no-std on CI

    Open source →
    Release notes
    • Minimal supported compiler is Rust 1.57.0
    • Support for no-std by making std a default feature which can be opted out of.
    Open source →
  4. 1.0.0 22 Jan 2022
    Release notes
    • Minimal supported compiler is Rust 1.56.0
    • Changed Rust edition to 2021
    • Stabilized interface
    Open source →
  5. 0.4.0 20 Nov 2020
    Release notes
    • The atoi function now supports parsing signed integers. Use the FromRadix10 trait directly if you wish to not allow leading + or - signs.
    Open source →
  6. 0.3.3 25 Oct 2020
    Release notes
    • Introduce FromRadix10Signed and FromRadix10SignedChecked for parsing signed integers.
    Open source →
  7. 0.3.2 05 Nov 2019
    Release notes
    • Add support for hex numbers through FromRadix16 and FromRadix16Checked.
    • Fix: Documentation of FromRadix10Checked now has code samples using this trait.
    Open source →
  8. 0.3.1 16 Dec 2018
    Release notes

    fix documentation of overflow behaviour

    Open source →
    Release notes
    • Fix: Fixed documentation of atois overflow behaviour.
    Open source →
  9. 0.3.0 16 Dec 2018
    Release notes
    • Added From_radix_10_checked.
    • Breaking change: atoi now returns None on overflow
    Open source →
  10. 0.2.4 16 Dec 2018
    Release notes
    • Documentation now hints at FromRadix10 trait.
    • Updated to Rust 2018
    Open source →
  11. 0.2.3 05 Mar 2018

    Nothing published for this version

  12. 0.2.2 05 Jul 2017

    Nothing published for this version

  13. 0.2.1 05 Jul 2017

    Nothing published for this version

  14. 0.2.0 29 Jun 2017

    Nothing published for this version

  15. 0.1.0 29 Jun 2017

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive