{"id":17084414,"url":"https://github.com/niklasf/rust-btoi","last_synced_at":"2025-04-12T21:07:26.152Z","repository":{"id":25687780,"uuid":"105295600","full_name":"niklasf/rust-btoi","owner":"niklasf","description":"Parse integers directly from ASCII byte slices","archived":false,"fork":false,"pushed_at":"2025-01-07T20:37:15.000Z","size":92,"stargazers_count":8,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-12T21:07:21.576Z","etag":null,"topics":["c","rust"],"latest_commit_sha":null,"homepage":"https://docs.rs/btoi","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/niklasf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"niklasf"}},"created_at":"2017-09-29T16:44:48.000Z","updated_at":"2025-01-07T20:37:19.000Z","dependencies_parsed_at":"2023-10-01T15:05:40.697Z","dependency_job_id":null,"html_url":"https://github.com/niklasf/rust-btoi","commit_stats":{"total_commits":98,"total_committers":3,"mean_commits":"32.666666666666664","dds":"0.030612244897959218","last_synced_commit":"3efb90bc1d8cb400e914039410c32e0076457831"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niklasf%2Frust-btoi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niklasf%2Frust-btoi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niklasf%2Frust-btoi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niklasf%2Frust-btoi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/niklasf","download_url":"https://codeload.github.com/niklasf/rust-btoi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248631677,"owners_count":21136562,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c","rust"],"created_at":"2024-10-14T13:07:04.797Z","updated_at":"2025-04-12T21:07:26.144Z","avatar_url":"https://github.com/niklasf.png","language":"Rust","funding_links":["https://github.com/sponsors/niklasf"],"categories":[],"sub_categories":[],"readme":"btoi\n====\n\nParse integers from ASCII byte slices.\n\n[![crates.io](https://img.shields.io/crates/v/btoi.svg)](https://crates.io/crates/btoi)\n[![docs.rs](https://docs.rs/btoi/badge.svg)](https://docs.rs/btoi)\n\nIntroduction\n------------\n\nProvides functions similar to [`from_str_radix`](https://doc.rust-lang.org/std/primitive.u32.html#method.from_str_radix),\nbut is faster when parsing directly from byte slices instead of strings.\n\nSupports `#![no_std]`.\n\n```rust\nuse btoi::btoi;\n\nassert_eq!(Ok(42), btoi(b\"42\"));\nassert_eq!(Ok(-1000), btoi(b\"-1000\"));\n```\n\nDocumentation\n-------------\n\n[Read the documentation](https://docs.rs/btoi)\n\nMSRV policy\n-----------\n\nThe minimum supported Rust version is 1.60, matching\n[`num_traits`](https://crates.io/crates/num-traits),\nwith no intent to ever increase it.\n\nThat's because\n[`#![feature(int_from_ascii)]`](https://github.com/rust-lang/rust/issues/134821)\nin the standard library will hopefully eventually make this crate obsolete\nfor new versions of Rust, and so old versions are the priority.\n\nChangelog\n---------\n\n* 0.4.4 (yanked due to unintended MSRV bump)\n  - Implement `core::error::Error` for `ParseIntegerError`.\n* 0.4.3\n  - Use `#[track_caller]`.\n* 0.4.2\n  - No longer `!#[deny(warnings)]`, which is is a forwards compability hazard\n    in libraries.\n  - Explicit `!#[forbid(unsafe_code)]`.\n* 0.4.1\n  - `-` was parsed as zero, but should have errored. Thanks @wayslog.\n* 0.4.0\n  - Change type of radix to `u32` (from `u8`) to mirror the standard library.\n  - No need to `#[inline]` generic functions.\n* 0.3.0\n  - New default feature `std`. Disable for `#![no_std]` support.\n  - Mark functions as `#[inline]`.\n* 0.2.0\n  - No longer reexport num-traits.\n* 0.1.3\n  - Update to num-traits 0.2 (semver compatible).\n* 0.1.2\n  - Fix documentation warnings.\n  - Update dependencies.\n* 0.1.1\n  - Documentation fixes.\n* 0.1.0\n  - Initial release.\n\nLicense\n-------\n\nbtoi is dual licensed under the [Apache 2.0](http://www.apache.org/licenses/LICENSE-2.0)\nand [MIT](http://opensource.org/licenses/MIT) license, at your option.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fniklasf%2Frust-btoi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fniklasf%2Frust-btoi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fniklasf%2Frust-btoi/lists"}