{"id":21586081,"url":"https://github.com/magiclen/qrcode-segments-optimizer","last_synced_at":"2026-02-05T20:33:38.106Z","repository":{"id":96040917,"uuid":"280644123","full_name":"magiclen/qrcode-segments-optimizer","owner":"magiclen","description":"This library is used for optimizing the QR code segments.","archived":false,"fork":false,"pushed_at":"2024-10-23T06:09:47.000Z","size":93,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-09T18:06:31.630Z","etag":null,"topics":["qrcode","rust"],"latest_commit_sha":null,"homepage":"","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/magiclen.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-07-18T11:39:42.000Z","updated_at":"2025-01-30T16:31:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"8dcb2913-350b-41fa-89cd-5845d86e6e10","html_url":"https://github.com/magiclen/qrcode-segments-optimizer","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/magiclen/qrcode-segments-optimizer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magiclen%2Fqrcode-segments-optimizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magiclen%2Fqrcode-segments-optimizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magiclen%2Fqrcode-segments-optimizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magiclen%2Fqrcode-segments-optimizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/magiclen","download_url":"https://codeload.github.com/magiclen/qrcode-segments-optimizer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magiclen%2Fqrcode-segments-optimizer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29133400,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-05T19:36:52.185Z","status":"ssl_error","status_checked_at":"2026-02-05T19:35:40.941Z","response_time":65,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["qrcode","rust"],"created_at":"2024-11-24T15:12:38.218Z","updated_at":"2026-02-05T20:33:38.086Z","avatar_url":"https://github.com/magiclen.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"QR Code Segments Optimizer\n====================\n\n[![CI](https://github.com/magiclen/qrcode-segments-optimizer/actions/workflows/ci.yml/badge.svg)](https://github.com/magiclen/qrcode-segments-optimizer/actions/workflows/ci.yml)\n\nThis library is used for optimizing the QR code segments.\n\n## Examples\n\n```rust\nuse qrcode_generator::QrCodeEcc;\nuse url::Url;\n\nlet url = \"https://magiclen.org/path/to/12345\";\nlet ecc = QrCodeEcc::Low;\n\nlet naive_matrix = qrcode_generator::to_matrix(url, ecc).unwrap();\n\nlet url = Url::parse(url).unwrap();\n\nlet optimized_matrix = qrcode_generator::to_matrix_from_segments(\n    qrcode_segments_optimizer::make_segments_from_url(\u0026url, ecc)\n        .unwrap()\n        .as_slice(),\n    ecc,\n)\n.unwrap();\n\nassert!(optimized_matrix.len() \u003c naive_matrix.len());\n```\n\n## Crates.io\n\nTDB\n\n## Documentation\n\nTDB\n\n## License\n\n[MIT](LICENSE)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagiclen%2Fqrcode-segments-optimizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmagiclen%2Fqrcode-segments-optimizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagiclen%2Fqrcode-segments-optimizer/lists"}