{"id":13439870,"url":"https://github.com/nanopb/nanopb","last_synced_at":"2026-10-18T23:46:59.913Z","repository":{"id":31246084,"uuid":"34807561","full_name":"nanopb/nanopb","owner":"nanopb","description":"Protocol Buffers with small code size","archived":false,"fork":false,"pushed_at":"2026-10-16T18:46:24.000Z","size":5476,"stargazers_count":5584,"open_issues_count":78,"forks_count":1053,"subscribers_count":121,"default_branch":"master","last_synced_at":"2026-10-17T06:24:46.812Z","etag":null,"topics":["c","embedded","embedded-c","nanopb","protocol-buffers"],"latest_commit_sha":null,"homepage":"https://jpa.kapsi.fi/nanopb/","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"zlib","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nanopb.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.txt","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"docs/security.md","support":null,"governance":null,"roadmap":null,"authors":"AUTHORS.txt","dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2015-04-29T17:21:37.000Z","updated_at":"2026-10-16T18:46:33.000Z","dependencies_parsed_at":"2023-10-15T06:16:11.669Z","dependency_job_id":"cc08f2ce-af8a-4ccc-bab1-2b5f1245da90","html_url":"https://github.com/nanopb/nanopb","commit_stats":{"total_commits":1427,"total_committers":154,"mean_commits":9.266233766233766,"dds":0.255781359495445,"last_synced_commit":"fd299d8b6a34c54b1c76a823c7645155c50ff77d"},"previous_names":[],"tags_count":85,"template":false,"template_full_name":null,"purl":"pkg:github/nanopb/nanopb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanopb%2Fnanopb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanopb%2Fnanopb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanopb%2Fnanopb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanopb%2Fnanopb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nanopb","download_url":"https://codeload.github.com/nanopb/nanopb/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanopb%2Fnanopb/sbom","scorecard":{"id":674072,"data":{"date":"2025-08-11","repo":{"name":"github.com/nanopb/nanopb","commit":"7aaa52d614177109da5321f2e5a9361cddc091f4"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":5.7,"checks":[{"name":"Code-Review","score":4,"reason":"Found 11/26 approved changesets -- score normalized to 4","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Security-Policy","score":4,"reason":"security policy file detected","details":["Info: security policy file detected: docs/security.md:1","Warn: no linked content found","Info: Found disclosure, vulnerability, and/or timelines in security policy: docs/security.md:1","Info: Found text in security policy: docs/security.md:1"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Maintained","score":10,"reason":"11 commit(s) and 11 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Info: jobLevel 'actions' permission set to 'read': .github/workflows/codeql.yml:33","Info: jobLevel 'contents' permission set to 'read': .github/workflows/codeql.yml:34","Warn: no topLevel permission defined: .github/workflows/bazel.yml:1","Warn: no topLevel permission defined: .github/workflows/binary_packages.yml:1","Warn: no topLevel permission defined: .github/workflows/cifuzz.yml:1","Warn: no topLevel permission defined: .github/workflows/cmake.yml:1","Warn: no topLevel permission defined: .github/workflows/codeql.yml:1","Warn: no topLevel permission defined: .github/workflows/compiler_tests.yml:1","Warn: no topLevel permission defined: .github/workflows/ios_swift_tests.yml:1","Warn: no topLevel permission defined: .github/workflows/olddistro_tests.yml:1","Warn: no topLevel permission defined: .github/workflows/platformio_tests.yml:1","Warn: no topLevel permission defined: .github/workflows/pypi_publish.yml:1","Warn: no topLevel permission defined: .github/workflows/simulator_tests.yml:1","Warn: no topLevel permission defined: .github/workflows/trigger_on_code_change.yml:1","Warn: no topLevel permission defined: .github/workflows/trigger_on_schedule.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.txt:0","Info: FSF or OSI recognized license: zlib License: LICENSE.txt:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/bazel.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/nanopb/nanopb/bazel.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/bazel.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/nanopb/nanopb/bazel.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/binary_packages.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/nanopb/nanopb/binary_packages.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/binary_packages.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/nanopb/nanopb/binary_packages.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/binary_packages.yml:45: update your workflow using https://app.stepsecurity.io/secureworkflow/nanopb/nanopb/binary_packages.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/binary_packages.yml:78: update your workflow using https://app.stepsecurity.io/secureworkflow/nanopb/nanopb/binary_packages.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/binary_packages.yml:101: update your workflow using https://app.stepsecurity.io/secureworkflow/nanopb/nanopb/binary_packages.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/binary_packages.yml:120: update your workflow using https://app.stepsecurity.io/secureworkflow/nanopb/nanopb/binary_packages.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/binary_packages.yml:143: update your workflow using https://app.stepsecurity.io/secureworkflow/nanopb/nanopb/binary_packages.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/cifuzz.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/nanopb/nanopb/cifuzz.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/cifuzz.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/nanopb/nanopb/cifuzz.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/cifuzz.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/nanopb/nanopb/cifuzz.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/cmake.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/nanopb/nanopb/cmake.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/cmake.yml:45: update your workflow using https://app.stepsecurity.io/secureworkflow/nanopb/nanopb/cmake.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/cmake.yml:47: update your workflow using https://app.stepsecurity.io/secureworkflow/nanopb/nanopb/cmake.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql.yml:48: update your workflow using https://app.stepsecurity.io/secureworkflow/nanopb/nanopb/codeql.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql.yml:54: update your workflow using https://app.stepsecurity.io/secureworkflow/nanopb/nanopb/codeql.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql.yml:81: update your workflow using https://app.stepsecurity.io/secureworkflow/nanopb/nanopb/codeql.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/codeql.yml:90: update your workflow using https://app.stepsecurity.io/secureworkflow/nanopb/nanopb/codeql.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql.yml:110: update your workflow using https://app.stepsecurity.io/secureworkflow/nanopb/nanopb/codeql.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql.yml:117: update your workflow using https://app.stepsecurity.io/secureworkflow/nanopb/nanopb/codeql.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/compiler_tests.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/nanopb/nanopb/compiler_tests.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ios_swift_tests.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/nanopb/nanopb/ios_swift_tests.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/olddistro_tests.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/nanopb/nanopb/olddistro_tests.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/platformio_tests.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/nanopb/nanopb/platformio_tests.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pypi_publish.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/nanopb/nanopb/pypi_publish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pypi_publish.yml:61: update your workflow using https://app.stepsecurity.io/secureworkflow/nanopb/nanopb/pypi_publish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/simulator_tests.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/nanopb/nanopb/simulator_tests.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/simulator_tests.yml:44: update your workflow using https://app.stepsecurity.io/secureworkflow/nanopb/nanopb/simulator_tests.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/simulator_tests.yml:73: update your workflow using https://app.stepsecurity.io/secureworkflow/nanopb/nanopb/simulator_tests.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/trigger_on_code_change.yml:36: update your workflow using https://app.stepsecurity.io/secureworkflow/nanopb/nanopb/trigger_on_code_change.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/trigger_on_code_change.yml:41: update your workflow using https://app.stepsecurity.io/secureworkflow/nanopb/nanopb/trigger_on_code_change.yml/master?enable=pin","Warn: containerImage not pinned by hash: tests/docker_images/ubuntu1804/Dockerfile:1: pin your Docker image by updating ubuntu:bionic to ubuntu:bionic@sha256:152dc042452c496007f07ca9127571cb9c29697f42acbfad72324b2bb2e43c98","Warn: containerImage not pinned by hash: tests/docker_images/ubuntu2004/Dockerfile:1: pin your Docker image by updating ubuntu:focal to ubuntu:focal@sha256:8feb4d8ca5354def3d8fce243717141ce31e2c428701f6682bd2fafe15388214","Warn: pipCommand not pinned by hash: .github/workflows/binary_packages.yml:128","Warn: pipCommand not pinned by hash: .github/workflows/binary_packages.yml:31","Warn: pipCommand not pinned by hash: .github/workflows/binary_packages.yml:86","Warn: pipCommand not pinned by hash: .github/workflows/cmake.yml:24","Warn: pipCommand not pinned by hash: .github/workflows/platformio_tests.yml:35","Warn: pipCommand not pinned by hash: .github/workflows/pypi_publish.yml:24","Warn: pipCommand not pinned by hash: .github/workflows/pypi_publish.yml:71","Warn: pipCommand not pinned by hash: .github/workflows/pypi_publish.yml:72","Warn: pipCommand not pinned by hash: .github/workflows/trigger_on_code_change.yml:49","Info:   0 out of  29 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   3 third-party GitHubAction dependencies pinned","Info:   0 out of   2 containerImage dependencies pinned","Info:   0 out of   9 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact nanopb-0.4.9.1 not signed: https://api.github.com/repos/nanopb/nanopb/releases/239864220","Warn: release artifact nanopb-0.4.9.1 does not have provenance: https://api.github.com/repos/nanopb/nanopb/releases/239864220"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Fuzzing","score":10,"reason":"project is fuzzed","details":["Info: OSSFuzz integration found","Info: CLibFuzzer integration found: tests/fuzztest/fuzztest.c:363","Info: CLibFuzzer integration found: tests/fuzztest/fuzztest.c:465"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":4,"reason":"6 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2025-49 / GHSA-5rjg-fvgr-3xxf","Warn: Project is vulnerable to: GHSA-cx63-2mw6-8hw5","Warn: Project is vulnerable to: PYSEC-2022-48 / GHSA-77rm-9x9h-xj3g","Warn: Project is vulnerable to: GHSA-8gq9-2x98-w8hf","Warn: Project is vulnerable to: GHSA-8qvm-5x2c-j2w7","Warn: Project is vulnerable to: PYSEC-2017-65 / GHSA-jwvw-v7c5-m82h"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":10,"reason":"SAST tool is run on all commits","details":["Info: SAST configuration detected: CodeQL","Info: all commits (15) are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-21T21:00:13.150Z","repository_id":31246084,"created_at":"2025-08-21T21:00:13.150Z","updated_at":"2025-08-21T21:00:13.150Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":344872684,"owners_count":38333314,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-10-03T21:59:58.778Z","status":"online","status_checked_at":"2026-10-17T02:00:06.547Z","response_time":57,"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":["c","embedded","embedded-c","nanopb","protocol-buffers"],"created_at":"2024-07-31T03:01:17.790Z","updated_at":"2026-10-18T23:46:59.906Z","avatar_url":"https://github.com/nanopb.png","language":"C","funding_links":[],"categories":["📚 项目宗旨","Data and Storage","Serialization","C","正则表达式","Data Encoding","Protocols"],"sub_categories":["C/C++ 实用工具库 \u0026 编程辅助","Serialization and Formats","序列化","Protocol Buffers","Flash Memory"],"readme":"Nanopb - Protocol Buffers for Embedded Systems\n==============================================\n\n![Latest change](https://github.com/nanopb/nanopb/actions/workflows/trigger_on_code_change.yml/badge.svg)\n![Weekly build](https://github.com/nanopb/nanopb/actions/workflows/trigger_on_schedule.yml/badge.svg)\n\nNanopb is a small code-size Protocol Buffers implementation in ansi C. It is\nespecially suitable for use in microcontrollers, but fits any memory\nrestricted system.\n\n* **Homepage:** https://jpa.kapsi.fi/nanopb/\n* **Git repository:** https://github.com/nanopb/nanopb/\n* **Documentation:** https://jpa.kapsi.fi/nanopb/docs/\n* **Forum:** https://groups.google.com/forum/#!forum/nanopb\n* **Stable version downloads:** https://jpa.kapsi.fi/nanopb/download/\n* **Pre-release binary packages:** https://github.com/nanopb/nanopb/actions/workflows/binary_packages.yml\n\n\nUsing the nanopb library\n------------------------\nTo use the nanopb library, you need to do two things:\n\n1. Compile your .proto files for nanopb, using `protoc`.\n2. Include *pb_encode.c*, *pb_decode.c* and *pb_common.c* in your project.\n\nThe easiest way to get started is to study the project in \"examples/simple\".\nIt contains a Makefile, which should work directly under most Linux systems.\nHowever, for any other kind of build system, see the manual steps in\nREADME.txt in that folder.\n\n\nGenerating the headers\n----------------------\nProtocol Buffers messages are defined in a `.proto` file, which follows a standard\nformat that is compatible with all Protocol Buffers libraries. To use it with nanopb,\nyou need to generate `.pb.c` and `.pb.h` files from it:\n\n    python generator/nanopb_generator.py myprotocol.proto  # For source checkout\n    generator-bin/nanopb_generator myprotocol.proto        # For binary package\n\n(Note: For instructions for nanopb-0.3.9.x and older, see the documentation\nof that particular version [here](https://github.com/nanopb/nanopb/blob/maintenance_0.3/README.md))\n\nThe binary packages for Windows, Linux and Mac OS X should contain all necessary\ndependencies, including Python, python-protobuf library and protoc. If you are\nusing a git checkout or a plain source distribution, you will need to install\nPython separately. Once you have Python, you can install the other dependencies\nwith `pip install --upgrade protobuf grpcio-tools`.\n\nYou can further customize the header generation by creating an `.options` file.\nSee [documentation](https://jpa.kapsi.fi/nanopb/docs/concepts.html#modifying-generator-behaviour) for details.\n\n\nRunning the tests\n-----------------\nIf you want to perform further development of the nanopb core, or to verify\nits functionality using your compiler and platform, you'll want to run the\ntest suite. The build rules for the test suite are implemented using Scons,\nso you need to have that installed (ex: `sudo apt install scons` or `pip install scons`).\nTo run the tests:\n\n    cd tests\n    scons\n\nThis will show the progress of various test cases. If the output does not\nend in an error, the test cases were successful.\n\nNote: Mac OS X by default aliases 'clang' as 'gcc', while not actually\nsupporting the same command line options as gcc does. To run tests on\nMac OS X, use: `scons CC=clang CXX=clang++`. Same way can be used to run\ntests with different compilers on any platform.\n\nFor embedded platforms, there is currently support for running the tests\non STM32 discovery board and [simavr](https://github.com/buserror/simavr)\nAVR simulator. Use `scons PLATFORM=STM32` and `scons PLATFORM=AVR` to run\nthese tests.\n\n\nBuild systems and integration\n-----------------------------\nNanopb C code itself is designed to be portable and easy to build\non any platform. Often the bigger hurdle is running the generator which\ntakes in the `.proto` files and outputs `.pb.c` definitions.\n\nThere exist build rules for several systems:\n\n* **Makefiles**: `extra/nanopb.mk`, see `examples/simple`\n* **CMake**: `extra/FindNanopb.cmake`, see `examples/cmake`\n* **SCons**: `tests/site_scons` (generator only)\n* **Bazel**: `BUILD.bazel` in source root\n* **Conan**: `conanfile.py` in source root\n* **Meson**: `meson.build` in source root\n* **PlatformIO**: https://platformio.org/lib/show/431/Nanopb\n* **PyPI/pip**: https://pypi.org/project/nanopb/\n* **vcpkg**: https://vcpkg.io/en/package/nanopb\n\nAnd also integration to platform interfaces:\n\n* **Arduino**: http://platformio.org/lib/show/1385/nanopb-arduino\n* **Zephyr**: https://docs.zephyrproject.org/latest/services/serialization/nanopb.html\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnanopb%2Fnanopb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnanopb%2Fnanopb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnanopb%2Fnanopb/lists"}