{"id":33938825,"url":"https://github.com/technocreatives/core2","last_synced_at":"2026-03-10T07:03:13.090Z","repository":{"id":44688043,"uuid":"302994189","full_name":"technocreatives/core2","owner":"technocreatives","description":"The bare essentials of std::io for use in no_std. Alloc support is optional.","archived":false,"fork":false,"pushed_at":"2023-09-27T04:47:31.000Z","size":108,"stargazers_count":76,"open_issues_count":13,"forks_count":25,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-13T20:58:14.992Z","etag":null,"topics":["compat","const-generics","embedded","no-alloc","no-std","polyfill","rust","traits"],"latest_commit_sha":null,"homepage":"https://docs.rs/core2","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/technocreatives.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2020-10-10T21:39:05.000Z","updated_at":"2025-08-10T10:43:35.000Z","dependencies_parsed_at":"2024-01-13T06:21:48.254Z","dependency_job_id":"532ae3cf-60e0-4975-b8f5-f6201c6663ba","html_url":"https://github.com/technocreatives/core2","commit_stats":{"total_commits":35,"total_committers":6,"mean_commits":5.833333333333333,"dds":0.2857142857142857,"last_synced_commit":"545e84bcb0f235b12e21351e0c69767958efe2a7"},"previous_names":["bbqsrc/core2","bbqsrc/bare-io"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/technocreatives/core2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/technocreatives%2Fcore2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/technocreatives%2Fcore2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/technocreatives%2Fcore2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/technocreatives%2Fcore2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/technocreatives","download_url":"https://codeload.github.com/technocreatives/core2/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/technocreatives%2Fcore2/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30326893,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T05:25:20.737Z","status":"ssl_error","status_checked_at":"2026-03-10T05:25:17.430Z","response_time":106,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["compat","const-generics","embedded","no-alloc","no-std","polyfill","rust","traits"],"created_at":"2025-12-12T15:04:12.565Z","updated_at":"2026-03-10T07:03:13.082Z","avatar_url":"https://github.com/technocreatives.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# core2\n\n[![Actions Status](https://github.com/bbqsrc/core2/workflows/CI/badge.svg)](https://github.com/bbqsrc/core2/actions)\n[![Documentation](https://docs.rs/core2/badge.svg)](https://docs.rs/core2)\n![Minimum Supported Rust Version (MSRV)](https://img.shields.io/badge/rust-v1.47.0+-blue)\n\nEver wanted a `Cursor` or the `Error` trait in `no_std`? Well now you can have it. A 'fork' of Rust's `std` modules for `no_std` environments, with the added benefit of optionally taking advantage of `alloc`.\n\nThe goal of this crate is to provide a stable interface for building I/O and error trait functionality in\n`no_std` environments. The current code corresponds to the most recent stable API of Rust 1.47.0. \nIt is also a goal to achieve a true alloc-less experience, with opt-in alloc support.\n\nThis crate works on `stable` with some limitations in functionality, and `nightly` without limitations by adding\nthe relevant feature flag.\n\nThis crate is `std` by default -- use no default features to get `no_std` mode.\n\n## Usage\n\n```toml\n[dependencies]\ncore2 = \"0.3\"\n```\n\nAdd the crate, use the things you would usually want from `std::io`, but instead from `core2::io`, and\nuse `core2::error::Error` in place of `std::error::Error`.\n\n### Features\n\n- **std**: enables `std` pass-throughs for the polyfilled types, but allows accessing the new types\n- **alloc**: enable aspects of the `Read` and `Write` traits that require `alloc` support (WIP)\n- **nightly**: enables **nightly**-only features, such as `BufReader` and `BufWriter` with const generic buffers.\n\n### Differences to `std::io`\n\n- No `std::io::Error`, so we have our own copy without any `Os` error functions\n- `IoSlice` and the `*_vectored` family of functions are not implemented.\n- `BufReader` and `BufWriter` have a different signature, as they now use a const generic bounded array for the internal buffer. (Requires **nightly** feature)\n\nOther than items perhaps being entirely missing or certain functions unavailable on some traits, no function signatures have been changed.\n\n### Limitations\n\n- Using the buffer types currently requires **nightly** due to the use of const generics.\n- Using `copy` or the buffer types with `std` support currently requires **nightly** due to the `initializer` API.\n\n## Where is it used?\n\nAll of the below are works in progress, but should help with demonstrating how to use this crate.\n\n- [thiserror_core2](https://github.com/bbqsrc/thiserror-core2): fork of `thiserror` using the `core2::error::Error` trait.\n\n## License\n\nLicensed under either of\n\n* Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)\n* MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)\n\nat your option.\n\n---\n\nAlmost all of the code in this repository is a copy of the [Rust language codebase](https://github.com/rust-lang/rust) with minor modifications.\n\nFor attributions, see https://thanks.rust-lang.org/.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechnocreatives%2Fcore2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftechnocreatives%2Fcore2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechnocreatives%2Fcore2/lists"}