{"id":13822318,"url":"https://github.com/rustne-kretser/noline","last_synced_at":"2025-04-12T22:34:35.433Z","repository":{"id":42024381,"uuid":"447208608","full_name":"rustne-kretser/noline","owner":"rustne-kretser","description":"IO-agnostic line editor for embedded systems","archived":false,"fork":false,"pushed_at":"2025-01-16T08:50:57.000Z","size":170,"stargazers_count":99,"open_issues_count":2,"forks_count":9,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-23T09:16:09.189Z","etag":null,"topics":["rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rustne-kretser.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2022-01-12T12:26:24.000Z","updated_at":"2025-01-16T08:50:57.000Z","dependencies_parsed_at":"2025-01-30T22:44:52.786Z","dependency_job_id":"0856b95f-55ad-455e-a5ee-6c113793f606","html_url":"https://github.com/rustne-kretser/noline","commit_stats":{"total_commits":37,"total_committers":2,"mean_commits":18.5,"dds":"0.027027027027026973","last_synced_commit":"6e6d8b79a0cb79501ffaccbf6b2a81eab17ae46c"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rustne-kretser%2Fnoline","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rustne-kretser%2Fnoline/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rustne-kretser%2Fnoline/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rustne-kretser%2Fnoline/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rustne-kretser","download_url":"https://codeload.github.com/rustne-kretser/noline/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248642236,"owners_count":21138350,"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":["rust"],"created_at":"2024-08-04T08:01:54.408Z","updated_at":"2025-04-12T22:34:35.404Z","avatar_url":"https://github.com/rustne-kretser.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"![Pipeline](https://github.com/rustne-kretser/noline/actions/workflows/rust.yml/badge.svg)\n[![Crates.io](https://img.shields.io/crates/v/noline.svg)](https://crates.io/crates/noline)\n[![API reference](https://docs.rs/noline/badge.svg)](https://docs.rs/noline/)\n\n# noline\n\nNoline is an IO-agnostic `#[no_std]` line editor providing robust\nline editing for any system. The core functionality is IO-free, so\nit can be adapted to any system be it embedded, async, async\nembedded, WASM or IPoAC (IP over Avian Carriers).\n\nFeatures:\n- IO-free\n- Minimal dependencies\n- No allocation needed - Both heap-based and static buffers are provided\n- UTF-8 support\n- Emacs keybindings\n- Line history\n\nPossible future features:\n- Auto-completion and hints\n\nThe API should be considered experimental and will change in the\nfuture.\n\nThe core implementation consists of a state machine taking bytes as\ninput and yielding iterators over byte slices. Because this is\ndone without any IO, Noline can be adapted to work on any platform.\n\nNoline comes with multiple implemenations:\n- [`sync_editor::Editor`] – Editor for synchronous IO\n- [`async_editor::Editor`] - Editor for asynchronous IO\n\nEditors can be built using [`builder::EditorBuilder`].\n\n## Example\n```rust\nlet prompt = \"\u003e \";\n\nlet mut io = MyIO {}; // IO handler, see full examples for details\n                      // how to implement it\n\nlet mut editor = EditorBuilder::new_unbounded()\n    .with_unbounded_history()\n    .build_sync(\u0026mut io)\n    .unwrap();\n\nwhile let Ok(line) = editor.readline(prompt, \u0026mut io) {\n    writeln!(io, \"Read: '{}'\", line).unwrap();\n}\n```\n\nFor more details, see [docs](https://docs.rs/noline/).\n\n# Usage\n\nAdd this to your Cargo.toml:\n\n```toml\n[dependencies]\nnoline = \"0.5.1\"\n```\n\n# License\n\nMPL-2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frustne-kretser%2Fnoline","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frustne-kretser%2Fnoline","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frustne-kretser%2Fnoline/lists"}