| Crates.io | tosca-controller |
| lib.rs | tosca-controller |
| version | 0.1.1 |
| created_at | 2026-01-03 23:16:48.158125+00 |
| updated_at | 2026-01-04 23:01:13.275715+00 |
| description | A library for building a controller that manages all Tosca devices across a network. |
| homepage | |
| repository | https://github.com/ToscaLabs/tosca/tree/master/crates/tosca-controller |
| max_upload_size | |
| id | 2020918 |
| size | 139,648 |
The tosca-controller library crate offers a set of APIs to manage,
orchestrate, and interact with all tosca-compliant devices within a network.
A device is compliant with the tosca architecture if its firmware is built
using the tosca APIs designed for the relative microcontroller.
The core functionalities of this crate include:
tosca architecturetosca devices to trigger
one or more of their operationsTo optimize system resource usage, tosca-controller leverages tokio as an
asynchronous executor. This improves performance by allowing concurrent
execution of independent tasks. If the underlying machine is multi-threaded,
the performance boost is further amplified, as tasks are distributed across
multiple threads too.
To compile this crate with the debug profile, run:
cargo build
To compile this crate with the release profile, which applies all optimizations for faster performance and reduced memory usage, run:
cargo build --release
The examples
directory includes some examples to interact with the tosca devices within
a network. Each example is independent from another and can be moved to
a separate repository.
To build an example:
cd examples/[example directory name]
cargo build [--release]