{"id":30178350,"url":"https://github.com/sysgrok/espfactory","last_synced_at":"2025-08-12T05:20:36.470Z","repository":{"id":267536806,"uuid":"900499814","full_name":"sysgrok/espfactory","owner":"sysgrok","description":null,"archived":false,"fork":false,"pushed_at":"2025-05-05T15:04:00.000Z","size":260,"stargazers_count":9,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-31T19:39:46.803Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/sysgrok.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,"zenodo":null}},"created_at":"2024-12-08T23:07:01.000Z","updated_at":"2025-07-31T11:43:10.000Z","dependencies_parsed_at":"2024-12-10T23:25:47.081Z","dependency_job_id":"e76bb410-749c-4915-84d9-f8815f844e4d","html_url":"https://github.com/sysgrok/espfactory","commit_stats":null,"previous_names":["ivmarkov/espfactory","sysgrok/espfactory"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sysgrok/espfactory","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sysgrok%2Fespfactory","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sysgrok%2Fespfactory/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sysgrok%2Fespfactory/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sysgrok%2Fespfactory/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sysgrok","download_url":"https://codeload.github.com/sysgrok/espfactory/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sysgrok%2Fespfactory/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270005591,"owners_count":24510939,"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-08-12T02:00:09.011Z","response_time":80,"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":[],"created_at":"2025-08-12T05:20:35.229Z","updated_at":"2025-08-12T05:20:36.441Z","avatar_url":"https://github.com/sysgrok.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# espfactory (WIP!)\n\nA utility for flashing/provisioning ESP32 PCBs at the factory premises.\n\n[![CI](https://github.com/ivmarkov/espfactory/actions/workflows/ci.yml/badge.svg)](https://github.com/ivmarkov/espfactory/actions/workflows/ci.yml)\n[![crates.io](https://img.shields.io/crates/v/espfactory.svg)](https://crates.io/crates/espfactory)\n[![Matrix](https://img.shields.io/matrix/esp-rs:matrix.org?label=join%20matrix\u0026color=BEC5C9\u0026logo=matrix)](https://matrix.to/#/#esp-rs:matrix.org)\n\n## What is this really?\n\nA Rust alternative to a custom-made Python or shell script driving the ESP provisioning tools (`esptool`, `espefuse`, `espflash`).\n\n## Highlights\n\n- Pure Rust\n- Interactive terminal UI with [ratatui](https://github.com/ratatui/ratatui)\n- Library (API) or command-line\n- Only needs the C lib pre-installed on the flashing PC. Everything else is statically linked in the executable\n- Cross-platform:\n  -  Windows X86_64\n  -  MacOSX\n  -  Linux + gLibc X86_64\n  -  Linux + gLibc ARM64 (rPI Ubuntu or RaspOS)\n  -  Linux + gLibc ARM32\n- [Pluggable bundle loaders](src/loader.rs)\n- [Pluggable bundle provisioning logs uploaders](src/uploader.rs)\n- OOTB bundle loaders for a [directory](src/loader/dir.rs) (could also be NFS or something mounted with FUSE), [HTTP(S)](src/loader/http.rs) or [S3](src/loader/s3.rs)\n- OOTB bundle provisioning logs uploaders for a [directory](src/uploader/dir.rs) (could also be NFS or something mounted with FUSE), [HTTP(S)](src/uploader/http.rs) or [S3](src/uploader/s3.rs)\n\n## How to use?\n\nTBD\n\n## Cross-building for other targets than the host one\n\nAs long as the `libudev` feature is disabled (by default it is), you can easily cross-build the `espfactory` CLI executable.\n\nThe rest of `espfactory` is pure-Rust so you only need a [linker for your cross-target](https://capnfabs.net/posts/cross-compiling-rust-apps-raspberry-pi/) and a C cross toolchain for the few dependencies that still need to compile custom C files (`ring`).\n\nSample ways to cross-compile:\n\n(If `cargo` greets you with a \"note: the `XXX` target may not be installed\" error, install the target first with `rustup target add XXX`.)\n\n### With [`cargo-zigbuild`](https://github.com/rust-cross/cargo-zigbuild) \n\n```sh\ncargo install cargo-zigbuild\npip3 install zig\ncargo zigbuild --target aarch64-unknown-linux-gnu # rPI 4+\n```\n\n\u003e Note: does not support cross-compiling to Windows. For Windows, use some of the other options.\n\n### With [`cargo-xwin`](https://github.com/rust-cross/cargo-xwin) \n\n```sh\ncargo install cargo-xwin\ncargo xwin build --target x86_64-pc-windows-msvc\n```\n\n### With [`cross`](https://hackernoon.com/building-a-wireless-thermostat-in-rust-for-raspberry-pi-part-2) \n\n```sh\ncargo install cross\ncross build --target=x86_64-pc-windows-gnu # For e.g. Windows; Windows MSVC is not supported, only the GNU target\n```\n\n\u003e Note: needs Docker or Podman pre-installed.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsysgrok%2Fespfactory","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsysgrok%2Fespfactory","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsysgrok%2Fespfactory/lists"}