{"id":19966770,"url":"https://github.com/aptpod/device-connector-template","last_synced_at":"2026-06-10T17:31:35.746Z","repository":{"id":93310611,"uuid":"560920808","full_name":"aptpod/device-connector-template","owner":"aptpod","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-22T03:53:55.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-11-28T07:17:01.372Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","has_issues":false,"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/aptpod.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-11-02T14:56:49.000Z","updated_at":"2025-04-22T03:53:57.000Z","dependencies_parsed_at":"2024-01-15T00:25:01.353Z","dependency_job_id":"53392c67-8c63-4271-a603-ee8c0b9978be","html_url":"https://github.com/aptpod/device-connector-template","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/aptpod/device-connector-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aptpod%2Fdevice-connector-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aptpod%2Fdevice-connector-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aptpod%2Fdevice-connector-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aptpod%2Fdevice-connector-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aptpod","download_url":"https://codeload.github.com/aptpod/device-connector-template/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aptpod%2Fdevice-connector-template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34163253,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"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":"2024-11-13T02:38:10.401Z","updated_at":"2026-06-10T17:31:35.729Z","avatar_url":"https://github.com/aptpod.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Device Connector Template\n\nDevice Connector Template is a template for quickly generating a new [Device Connector Framework](https://github.com/aptpod/device-connector-framework) Rust project.\n\nFor detailed documentation, please refer to the [Device Connector Developer Guide](https://docs.intdash.jp/manual/device-connector-developer-guide/latest/ja/index.html).\n\n\n## How to try\n\n### Generate New Project\n\n```\n$ cargo install cargo-generate\n$ cargo generate --git https://github.com/aptpod/device-connector-template.git\n```\n\n### Build\n\n```\n$ cargo build --release\n```\n\n### Run `hello-src`\n\n```\n$ ./target/release/test-run --config conf.yml\n```\n\n### Cross-compilation (docker running on amd64)\n\nSetup rust-cross-builder.\n\n```\n# for aarch64-unknown-linux-gnu\n$ docker build --build-arg TARGET=aarch64-unknown-linux-gnu -t rust-cross-builder-arm64 .\n$ docker run --rm -it -v ${PWD}:/usr/local/src rust-cross-builder-arm64\n\n# for x86_64-unknown-linux-gnu\n$ docker build --build-arg TARGET=x86_64-unknown-linux-gnu -t rust-cross-builder-amd64 .\n$ docker run --rm -it -v ${PWD}:/usr/local/src rust-cross-builder-amd64\n\n# for armv7-unknown-linux-gnueabihf\n$ docker build --build-arg TARGET=armv7-unknown-linux-gnueabihf -t rust-cross-builder-armhf .\n$ docker run --rm -it -v ${PWD}:/usr/local/src rust-cross-builder-armhf\n```\n\nRun commands below in the Docker container.\n\nCross-compiling for custom plugin development using Rust.\n\n```\ncargo build --release --target $TARGET\n```\n\n#### C\n\nThe Dockerfile can be used for cross-compiling for custom plugin development in C.\n\nSetup target variables\n\n```\n# for aarch64-unknown-linux-gnu\nexport TARGET=aarch64-unknown-linux-gnu\nexport CROSS_COMPILE=\"aarch64-linux-gnu-\"\nexport CFLAGS=\"-I/usr/aarch64-linux-gnu/include\"\nexport LDFLAGS=\"-L/usr/aarch64-linux-gnu/lib\"\n\n# for armv7-unknown-linux-gnueabihf\nexport TARGET=armv7-unknown-linux-gnueabihf\nexport CROSS_COMPILE=\"arm-linux-gnueabihf-\"\nexport CFLAGS=\"-I/usr/arm-linux-gnueabihf/include\"\nexport LDFLAGS=\"-L/usr/arm-linux-gnueabihf/lib\"\n\n# for x86_64-unknown-linux-gnu\nexport TARGET=x86_64-unknown-linux-gnu\nexport CROSS_COMPILE=\"\"\n```\n\nCross-compiling\n\n```\n${CROSS_COMPILE}gcc $CFLAGS -Wall -O2 -fPIC -shared $LDFLAGS \\\n  -o libdc_example_plugin.so src/example_plugin.c\n```\n\n## Sources created in the project\n\n|                |                                          |\n| :------------- | :--------------------------------------- |\n| src/hello.rs   | Sample element that generate data.       |\n| src/hexdump.rs | Sample element that dump data to stdout. |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faptpod%2Fdevice-connector-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faptpod%2Fdevice-connector-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faptpod%2Fdevice-connector-template/lists"}