{"id":21675791,"url":"https://github.com/nemoandrea/gerber-parser","last_synced_at":"2025-04-12T04:51:12.356Z","repository":{"id":41205968,"uuid":"508028217","full_name":"NemoAndrea/gerber-parser","owner":"NemoAndrea","description":"Simple gerber parser meant to be used in conjuction with the gerber-types crate","archived":false,"fork":false,"pushed_at":"2022-07-19T20:55:05.000Z","size":52,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-03-15T09:07:48.838Z","etag":null,"topics":["gerber","gerber-files","parser"],"latest_commit_sha":null,"homepage":"https://docs.rs/gerber_parser/latest/gerber_parser/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NemoAndrea.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}},"created_at":"2022-06-27T18:56:51.000Z","updated_at":"2023-02-04T20:27:34.000Z","dependencies_parsed_at":"2022-07-21T21:32:48.394Z","dependency_job_id":null,"html_url":"https://github.com/NemoAndrea/gerber-parser","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NemoAndrea%2Fgerber-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NemoAndrea%2Fgerber-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NemoAndrea%2Fgerber-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NemoAndrea%2Fgerber-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NemoAndrea","download_url":"https://codeload.github.com/NemoAndrea/gerber-parser/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248519473,"owners_count":21117757,"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":["gerber","gerber-files","parser"],"created_at":"2024-11-25T14:10:56.873Z","updated_at":"2025-04-12T04:51:12.325Z","avatar_url":"https://github.com/NemoAndrea.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gerber-parser\n\nA simple `gerber` parser written in rust to be used with the `gerber-types` crate. \n\n```rust\nuse std::fs::File;\nuse std::io::{BufRead, BufReader};\nuse gerber_parser::parser::parse_gerber;\n\n// open a .gbr file from system\nlet file = File::open(path).unwrap();\nlet reader = BufReader::new(file);\n\n// Now we parse the file to a GerberDoc \nlet gerber_doc: GerberDoc = parse_gerber(reader);\n\n// it is possible to convert to an 'atomic' representation purely \n// in terms of Vec\u003cCommand\u003e of the gerber-types crate\nlet commands:Vec\u003cCommand\u003e = gerber_doc.to_commands();\n```\n\n### Current State\n\n⚠️ Note: this package is still in development and does not cover the full Gerber spec\n\nCurrently missing\n\n* All `AM` commands\n* `LM`, `LR`, `LS`, `IP` commands (note: these are deprecated in the spec)\n* `AB` commands\n\nPartial:\n\n* The `TF` and `TA` commands only support a limited range of arguments; custom attributes will result in an error\n\n### General to-do\n\n* Do proper coordinate check (compatibility with `format specification`)\n* Test with output from more programs (I use f360 and that seems to work)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnemoandrea%2Fgerber-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnemoandrea%2Fgerber-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnemoandrea%2Fgerber-parser/lists"}