{"id":23815245,"url":"https://github.com/flowvix/lyneate","last_synced_at":"2025-09-06T23:32:20.275Z","repository":{"id":198493170,"uuid":"700344183","full_name":"FlowVix/lyneate","owner":"FlowVix","description":"A crate for beautiful code underlining and error reporting","archived":false,"fork":false,"pushed_at":"2025-02-05T23:40:48.000Z","size":156,"stargazers_count":19,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-19T20:39:30.556Z","etag":null,"topics":["compiler","crate","display","error","error-reporting","highlight","parser","rust"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/lyneate","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FlowVix.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2023-10-04T12:23:44.000Z","updated_at":"2025-06-19T15:19:07.000Z","dependencies_parsed_at":"2023-11-15T23:33:39.528Z","dependency_job_id":null,"html_url":"https://github.com/FlowVix/lyneate","commit_stats":null,"previous_names":["flowvix/lyneate"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/FlowVix/lyneate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FlowVix%2Flyneate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FlowVix%2Flyneate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FlowVix%2Flyneate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FlowVix%2Flyneate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FlowVix","download_url":"https://codeload.github.com/FlowVix/lyneate/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FlowVix%2Flyneate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273977365,"owners_count":25201293,"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","status":"online","status_checked_at":"2025-09-06T02:00:13.247Z","response_time":2576,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["compiler","crate","display","error","error-reporting","highlight","parser","rust"],"created_at":"2025-01-02T04:15:30.836Z","updated_at":"2025-09-06T23:32:20.027Z","avatar_url":"https://github.com/FlowVix.png","language":"Rust","readme":"# Lyneate\n\n[![crates.io](https://img.shields.io/crates/v/lyneate)](https://crates.io/crates/lyneate)\n[![license](https://img.shields.io/crates/l/lyneate)](https://github.com/FlowVix/lyneate/blob/master/LICENSE)\n[![docs.rs](https://img.shields.io/docsrs/lyneate)](https://docs.rs/lyneate)\n\nDisplay beautiful code reports in the terminal with\nsupport for single-line and multi-line highlighting.\n\n## [Example](https://github.com/FlowVix/lyneate/blob/master/examples/basic.rs)\n\n\u003cimg src=\"https://github.com/FlowVix/lyneate/blob/master/images/example.png?raw=true\" alt=\"test\"/\u003e\n\n```rust\nuse colored::Colorize;\nuse lyneate::Report;\n\nfn main() {\n    println!(\n        \"{} Mismatched match expression branch return types\\n\",\n        \"Error:\".bright_red()\n    );\n\n    let report = Report::new_char_spanned(\n        include_str!(\"basic.pseudo\"),\n        [\n            (\n                29..102,\n                format!(\"{}\", \"In this match expression\".dimmed()),\n                (255, 64, 112),\n            ),\n            (\n                64..75,\n                format!(\"{} {}\", \"This is of type\".dimmed(), \"int\".bright_white()),\n                (255, 159, 64),\n            ),\n            (\n                87..92,\n                format!(\"{} {}\", \"This is of type\".dimmed(), \"string\".bright_white()),\n                (207, 255, 64),\n            ),\n        ],\n    );\n\n    report.display();\n}\n```\n\n[More examples](https://github.com/FlowVix/lyneate/blob/master/examples/)\n\n## Usage\n\nThis crate provides:\n\n-   the `Report` struct which takes the source code and an iterator over the span, text, and color of all messages\n-   the `Theme`, `ThemeChars`, `ThemeEffects`, and `ThemeSizing` structs which can be used to customize the appearance of a report display\n\nCode spans can be byte-aligned or char-aligned. Different methods for constructing a `Report` for either are provided.\n\nThe API is kept simple in order to allow as much flexibility\nas possible to the user. It does not make any assumptions or care\nabout the provenance of the source code.\n\n## Planned Features\n\n-   Colorless support.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflowvix%2Flyneate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflowvix%2Flyneate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflowvix%2Flyneate/lists"}