{"id":18417381,"url":"https://github.com/stellar/bytes-lit","last_synced_at":"2025-04-07T12:32:26.260Z","repository":{"id":58161202,"uuid":"530343234","full_name":"stellar/bytes-lit","owner":"stellar","description":"Creates byte arrays from literal values.","archived":false,"fork":false,"pushed_at":"2024-07-22T05:19:07.000Z","size":40,"stargazers_count":2,"open_issues_count":1,"forks_count":3,"subscribers_count":9,"default_branch":"main","last_synced_at":"2025-03-22T18:41:14.062Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/stellar.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":"2022-08-29T18:25:48.000Z","updated_at":"2024-07-11T22:19:54.000Z","dependencies_parsed_at":"2024-01-11T04:46:26.145Z","dependency_job_id":null,"html_url":"https://github.com/stellar/bytes-lit","commit_stats":{"total_commits":31,"total_committers":4,"mean_commits":7.75,"dds":"0.25806451612903225","last_synced_commit":"9d7f842f54d5e883d22f2b88f981e0fe537d3363"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stellar%2Fbytes-lit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stellar%2Fbytes-lit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stellar%2Fbytes-lit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stellar%2Fbytes-lit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stellar","download_url":"https://codeload.github.com/stellar/bytes-lit/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247653221,"owners_count":20973783,"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":[],"created_at":"2024-11-06T04:09:14.752Z","updated_at":"2025-04-07T12:32:21.248Z","avatar_url":"https://github.com/stellar.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bytes-lit\nCreates byte arrays from literal values.\n\nCurrently supports integer literals of unbounded size.\n\n## Example\n\nGet a byte array given an integer value. Leading zeros in hex (`0x`) and binary\n(`0b`) integer form are preserved.\n\n```rust\nlet bytes = bytes!(0x00ed3f55dec47250a52a8c0bb7038e72fa6ffaae33562f77cd2b629ef7fd424d);\nassert_eq!(bytes, [\n    0, 237, 63, 85, 222, 196, 114, 80, 165, 42, 140, 11, 183, 3, 142, 114,\n    250, 111, 250, 174, 51, 86, 47, 119, 205, 43, 98, 158, 247, 253, 66, 77,\n]);\n```\n\nGet the minimum sized byte array given an integer value to capture the value.\nLeading zeros are ignored.\n\n```rust\nlet bytes = bytesmin!(0x00ed3f55dec47250a52a8c0bb7038e72fa6ffaae33562f77cd2b629ef7fd424d);\nassert_eq!(bytes, [\n    237, 63, 85, 222, 196, 114, 80, 165, 42, 140, 11, 183, 3, 142, 114,\n    250, 111, 250, 174, 51, 86, 47, 119, 205, 43, 98, 158, 247, 253, 66, 77,\n]);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstellar%2Fbytes-lit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstellar%2Fbytes-lit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstellar%2Fbytes-lit/lists"}