{"id":49234190,"url":"https://github.com/eclipse-zenoh/zenoh-nostd","last_synced_at":"2026-05-05T03:06:25.817Z","repository":{"id":349575428,"uuid":"1201108034","full_name":"eclipse-zenoh/zenoh-nostd","owner":"eclipse-zenoh","description":"A Rust no-std implementation of Zenoh.","archived":false,"fork":false,"pushed_at":"2026-04-06T15:12:44.000Z","size":1126,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-06T17:14:18.683Z","etag":null,"topics":["distributed-computing","distributed-systems","edge-computing","embedded","network-programming","no-std","robotics","ros2","rust","rust-lang","zenoh"],"latest_commit_sha":null,"homepage":"https://zenoh.io","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eclipse-zenoh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2026-04-04T08:12:49.000Z","updated_at":"2026-04-06T15:15:20.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/eclipse-zenoh/zenoh-nostd","commit_stats":null,"previous_names":["eclipse-zenoh/zenoh-nostd"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/eclipse-zenoh/zenoh-nostd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eclipse-zenoh%2Fzenoh-nostd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eclipse-zenoh%2Fzenoh-nostd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eclipse-zenoh%2Fzenoh-nostd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eclipse-zenoh%2Fzenoh-nostd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eclipse-zenoh","download_url":"https://codeload.github.com/eclipse-zenoh/zenoh-nostd/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eclipse-zenoh%2Fzenoh-nostd/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32633444,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-04T10:08:07.713Z","status":"online","status_checked_at":"2026-05-05T02:00:06.033Z","response_time":54,"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":["distributed-computing","distributed-systems","edge-computing","embedded","network-programming","no-std","robotics","ros2","rust","rust-lang","zenoh"],"created_at":"2026-04-24T14:00:43.160Z","updated_at":"2026-05-05T03:06:25.812Z","avatar_url":"https://github.com/eclipse-zenoh.png","language":"Rust","funding_links":[],"categories":["Protocol Implementations"],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://zenoh.io/img/zenoh-dragon-small.png\" height=\"121\"\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003ezenoh-nostd\u003c/h1\u003e\n\u003cp align=\"center\"\u003e\n  \u003cstrong\u003eZero Network Overhead. Async. No std. No alloc. Pure Rust.\u003c/strong\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  \u003ccode\u003easync\u003c/code\u003e • \u003ccode\u003ebare-metal\u003c/code\u003e • \u003ccode\u003eno_std\u003c/code\u003e • \u003ccode\u003ezenoh\u003c/code\u003e\n\u003c/p\u003e\n\u003ca href=\"https://cla-assistant.io/ZettaScaleLabs/zenoh-nostd\"\u003e\u003cimg src=\"https://cla-assistant.io/readme/badge/ZettaScaleLabs/zenoh-nostd\" alt=\"CLA assistant\" /\u003e\u003c/a\u003e\n\n---\n\n## 📦 Overview\n\n⚠️ This project is in early development.\n\n**zenoh-nostd** is a Rust-native, `async`, `#![no_std]`, `no_alloc` library that provides a **zero-overhead network abstraction layer** for ultra-constrained and bare-metal environments. In other terms you can run this *bare metal* on your favourite microcontroller.\n\n\u003e ⚡ Built on the \u003ca href=\"https://github.com/eclipse-zenoh/zenoh\"\u003eZenoh protocol\u003c/a\u003e, but stripped to the bone for minimalism and raw performance.\n\n---\n\n## ✨ Features\n\n- **`#![no_std]`**: No reliance on the Rust standard library.\n- **No dynamic allocation**: Fully `no_alloc`, ideal for bare-metal targets.\n- **Deterministic**: No heap, no surprises.\n- **Safe Rust**: Entirely memory-safe.\n- **Testable**: Supports both embedded and native testing environments.\n- **Embassy Integration**: Seamlessly integrates with the Embassy async runtime for embedded systems.\n- **Broker**: A `#![no_std]` broker to broke multiple zenoh `clients` with an optional gateway to a `zenoh` network.\n\n---\n\n## 🔧 Installation\n\nAdd this to your `Cargo.toml`:\n\n```toml\n[dependencies]\nzenoh-nostd = { git = \"https://github.com/ZettaScaleLabs/zenoh-nostd\" }\n```\n\n\u003e For embedded systems, ensure your crate uses `#![no_std]`:\n\n```rust\n#![no_std]\n```\n\n---\n\n## 🔌 Integration\n\n### Minimal Example\n\nHere’s a simple example of sending a payload with `zenoh-nostd`:\n\n```rust\nasync fn entry(spawner: embassy_executor::Spawner) -\u003e zenoh::ZResult\u003c()\u003e {\n    let config = init_session_example(\u0026spawner).await;\n    let mut resources = Resources::default();\n    let session = zenoh::connect(\u0026mut resources, \u0026config, Endpoint::try_from(ENDPOINT)?).await?;\n\n    let ke = zenoh::keyexpr::new(\"demo/example\")?;\n    let payload = b\"Hello, from no-std!\";\n    \n    session.put(ke, payload).finish().await?;\n    \n    Ok(())\n}\n```\n\n---\n\n## 🔬 MSRV\n\n\u003e 🛠️ **Minimum Supported Rust Version**: Currently `1.91.0`\n\n---\n\n## ⚠️ Limitations\n\n* No serial support yet. ([#11](https://github.com/ZettaScaleLabs/zenoh-nostd/issues/11))\n* `Interest` protocol not implemented yet. ([#46](https://github.com/ZettaScaleLabs/zenoh-nostd/issues/46))\n\n---\n\n## 🧪 Building and Testing\n\nThis project uses [`just`](https://github.com/casey/just) for task management. Use `just check` to check the project and examples, `just test` to run the tests and `just bench` to run the benchmarks.\n\n\u003e 🔍 Pull requests that slow down the bench should be avoided.\n\n### Testing Examples\n\nUse the following command structure:\n\n```bash\njust \u003cplatform\u003e \u003cexample\u003e [optional features]\n```\n\n* **Platforms**: `std`, `wasm`, `esp32s3`\n* **Examples**: `z_get`, `z_open`, `z_ping`, `z_pong`, `z_pub`, `z_pub_thr`, `z_put`, `z_querier`, `z_queryable`, `z_sub`, , `z_sub_thr`,\n* **Broker**: `z_broker` (with `alloc` feature)\n\nSet the `ENDPOINT=\u003cendpoint\u003e` environment variable to specify the endpoint (default is `tcp/127.0.0.1:7447`). Set `LISTEN=1` to specify the connection method.\n\nFor `esp32s3`, you must also provide:\n\n* `WIFI_SSID` (default is `ZettaScale`).\n* `WIFI_PASSWORD` (no default, must be provided).\n\nSee the ESP32 setup documentation for toolchain and target installation.\n\nExample of few commands:\n\n```bash\nENDPOINT=tcp/127.0.0.1:7447 just std z_pub\n```\n\n```bash\nWIFI_PASSWORD=* ENDPOINT=tcp/192.168.21.1:7447 just esp32s3 z_sub\n```\n\n### Example: Local TCP\n\nRun a Zenoh router with:\n\n```bash\nzenohd -l tcp/127.0.0.1:7447\n```\n\nIn two terminals:\n\n```bash\n# Terminal 1\njust std z_pub\n\n# Terminal 2\njust std z_sub\n```\n\n### Example: WebSocket + WASM\n\nRun a Zenoh router with:\n\n```bash\nzenohd -l tcp/127.0.0.1:7447 -l ws/127.0.0.1:7446\n```\n\nThen:\n\n```bash\n# Terminal 1 (WASM)\nENDPOINT=ws/127.0.0.1:7446 just wasm z_pub\n\n# Terminal 2 (STD)\njust std z_sub\n```\n\n\u003e 📦 Note: For WASM, ensure you have:\n\u003e\n\u003e * `wasm32-unknown-unknown` target\n\u003e * `wasm-bindgen-cli`\n\u003e * `basic-http-server` (or similar)\n\n---\n\n## 📁 Project Layout\n\n```text\nzenoh-nostd/            # Git repository root\n├── crates/\n│   ├── zenoh-derive/   # Derive macros\n│   ├── zenoh-nostd/    # Zenoh with IO, embassy\n│   ├── zenoh-proto/    # Zenoh Protocol\n│   └── zenoh-sansio/   # Zenoh Sans-IO objects (Transport only right now)\n│\n├── examples/\n│   ├── web/\n│   │   └── index.html  # File to test wasm example\n│   │\n│   ├── z_broker.rs     # Example with std/wasm/embassy io\n│   ├── z_get.rs        # Example with std/wasm/embassy io\n│   ├── z_open.rs       # Example with std/wasm/embassy io\n│   ├── z_ping.rs       # Example with std/wasm/embassy io\n│   ├── z_pong.rs       # Example with std/wasm/embassy io\n│   ├── z_pub.rs        # Example with std/wasm/embassy io\n│   ├── z_pub_thr.rs    # Example with std/wasm/embassy io\n│   ├── z_put.rs        # Example with std/wasm/embassy io\n│   ├── z_querier.rs    # Example with std/wasm/embassy io\n│   ├── z_queryable.rs  # Example with std/wasm/embassy io\n│   ├── z_sub.rs        # Example with std/wasm/embassy io\n│   └── z_sub_thr.rs    # Example with std/wasm/embassy io\n│\n├── platforms/          # Platform-specific implementations\n│   ├── zenoh-embassy/  # Embassy platforms (no_std)\n│   ├── zenoh-std/      # Standard platforms (std)\n│   └── zenoh-wasm/     # WASM32 platforms (wasm)\n│\n├── Cargo.toml          # Workspace + example package\n└── src/\n    └── lib.rs          # Example lib.rs\n```\n\n---\n\n## 📚 Documentation\n\nThe base project has been implemented in ([#6](https://github.com/ZettaScaleLabs/zenoh-nostd/pull/6))\nThe structure and API have been reworked in ([#34](https://github.com/ZettaScaleLabs/zenoh-nostd/pull/24))\nThe API has been reworked ([#52](https://github.com/ZettaScaleLabs/zenoh-nostd/pull/52))\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feclipse-zenoh%2Fzenoh-nostd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feclipse-zenoh%2Fzenoh-nostd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feclipse-zenoh%2Fzenoh-nostd/lists"}