Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Third-party code

Reference · Level 2: Building real applications

What an image compiles in besides nano-ros itself, under which license, and where nano-ros carries patches. Use it to answer a reviewer’s “what is in this binary, and from whom”. Which rows apply follows from three choices in the image’s system.toml: its platform (the board’s), its RMW, and its locator.

C and C++ sources

ComponentCompiled intoLicenseUpstreamPatches
zenoh-picoevery image with rmw = "zenoh"EPL-2.0 OR Apache-2.0eclipse-zenoh/zenoh-picofork delta
Mbed TLSa zenoh image built with TLS (the link-tls feature)Apache-2.0 OR GPL-2.0-or-laterMbed-TLS/mbedtlsnone
Micro XRCE-DDS Client, Micro-CDRevery image with rmw = "xrce"Apache-2.0eProsimanone
Eclipse Cyclone DDSevery image with rmw = "cyclonedds"EPL-2.0 OR EDL-1.0 (BSD-3-Clause)eclipse-cyclonedds/cycloneddsfork delta
FreeRTOS kernelFreeRTOS boardsMITFreeRTOS/FreeRTOS-Kernelnone
lwIPFreeRTOS boards with a networkBSD-3-Clauselwip-tcpip/lwipfork delta
Eclipse ThreadXThreadX boardsMITeclipse-threadx/threadxfork delta
NetX DuoThreadX boards with a networkMITeclipse-threadx/netxduofork delta
Apache NuttXNuttX boardsApache-2.0apache/nuttxfork delta
Zephyr RTOS and its modulesZephyr boardsApache-2.0 (modules: see each module)zephyrproject-rtos/zephyrnone; fetched by west at the version the SDK index pins

The host-side tools nros setup installs (the cross-compilers, QEMU, the XRCE agent) build and run images but are not linked into one. QEMU is a fork, and its delta is listed under Forks with the others.

Rust crates

An image’s Rust dependencies are an ordinary cargo graph. List them, with their licenses, from the image’s generated cargo root — the directory nros build prints on its entry → line:

cargo metadata --format-version 1 --manifest-path <entry-dir>/Cargo.toml \
  | python3 -c 'import json,sys; [print(p["name"], p["version"], p.get("license") or "-") for p in json.load(sys.stdin)["packages"]]' \
  | sort -u

That lists every crate cargo resolved, build-time ones included. None of them is a fork: every crate comes from crates.io or from this repository.

Forks

nano-ros builds some of these from a patch branch on its own fork rather than from the upstream release. Each fork’s page lists the commits it carries on top of a pinned upstream ref, generated from the pin the release builds: Forks nano-ros carries.