{"id":14981020,"url":"https://github.com/wcampbell0x2a/bintex","last_synced_at":"2025-10-29T04:31:23.730Z","repository":{"id":137458038,"uuid":"371874200","full_name":"wcampbell0x2a/bintex","owner":"wcampbell0x2a","description":"Create bytefield latex digrams with the use of rust proc-macros and deku","archived":false,"fork":false,"pushed_at":"2025-01-20T02:11:19.000Z","size":92,"stargazers_count":5,"open_issues_count":15,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-22T02:59:15.949Z","etag":null,"topics":["latex","proc-macro","rust"],"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/wcampbell0x2a.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","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":"2021-05-29T03:51:29.000Z","updated_at":"2025-01-02T08:12:22.000Z","dependencies_parsed_at":"2024-02-11T22:27:52.093Z","dependency_job_id":"98ec275b-62d6-453c-b4ab-d2ae9a2af01c","html_url":"https://github.com/wcampbell0x2a/bintex","commit_stats":{"total_commits":30,"total_committers":2,"mean_commits":15.0,"dds":0.1333333333333333,"last_synced_commit":"2859b049e41ec161b371c92f1f990f1cf7285b2d"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/wcampbell0x2a/bintex","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wcampbell0x2a%2Fbintex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wcampbell0x2a%2Fbintex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wcampbell0x2a%2Fbintex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wcampbell0x2a%2Fbintex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wcampbell0x2a","download_url":"https://codeload.github.com/wcampbell0x2a/bintex/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wcampbell0x2a%2Fbintex/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281069107,"owners_count":26438554,"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-10-26T02:00:06.575Z","response_time":61,"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":["latex","proc-macro","rust"],"created_at":"2024-09-24T14:02:44.839Z","updated_at":"2025-10-29T04:31:23.436Z","avatar_url":"https://github.com/wcampbell0x2a.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bintex\n[\u003cimg alt=\"github\" src=\"https://img.shields.io/badge/github-wcampbell0x2a/bintex-8da0cb?style=for-the-badge\u0026labelColor=555555\u0026logo=github\" height=\"20\"\u003e](https://github.com/wcampbell0x2a/bintex)\n[\u003cimg alt=\"crates.io\" src=\"https://img.shields.io/crates/v/bintex.svg?style=for-the-badge\u0026color=fc8d62\u0026logo=rust\" height=\"20\"\u003e](https://crates.io/crates/bintex)\n[\u003cimg alt=\"docs.rs\" src=\"https://img.shields.io/badge/docs.rs-bintex-66c2a5?style=for-the-badge\u0026labelColor=555555\u0026logo=docs.rs\" height=\"20\"\u003e](https://docs.rs/bintex)\n[\u003cimg alt=\"build status\" src=\"https://img.shields.io/github/actions/workflow/status/wcampbell0x2a/bintex/main.yml?branch=master\u0026style=for-the-badge\" height=\"20\"\u003e](https://github.com/wcampbell0x2a/bintex/actions?query=branch%3Amaster)\n\nCreate LaTeX [bytefield](https://www.ctan.org/pkg/bytefield) diagrams with the\nuse of rust proc-macros and the [deku](https://github.com/sharksforarms/deku) library.\n\n# docs\nrun `$ cargo doc --open`\n\nSee `bintex::attribute` for Attribute details and examples.\n\n# example\n\nRun `$ cargo run \u0026\u0026 pdflatex sample.tex` to create the following illustration from code:\n\n```rust\nuse bintex::{BinTex, BinTexOutput};\nuse deku::prelude::*;\n\n#[derive(BinTex)]\n#[bintex(bit_width = 32)]\nstruct Ipv6 {\n    #[deku(bits = \"4\")]\n    version: u8,\n    #[deku(bits = \"6\")]\n    ds: u8,\n    #[deku(bits = \"2\")]\n    ecn: u8,\n    #[deku(bits = \"20\")]\n    label: u32,\n    length: u16,\n    next_header: u8,\n    hop_limit: u8,\n    src: u32,\n    dst: u32,\n}\n```\n![Result](/media/ipv6.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwcampbell0x2a%2Fbintex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwcampbell0x2a%2Fbintex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwcampbell0x2a%2Fbintex/lists"}