### Build and Run EtherCAT Stepper Example Source: https://github.com/patdhlk/taktora/blob/main/examples/ethercat-stepper/README.md Use this script to toggle local crate patches for building the example. Run the example with the specified NIC, then restore the committed state. ```bash scripts/examples-local.sh on # uncomment the patch block cd examples/ethercat-stepper && cargo run --release -- --nic eth0 scripts/examples-local.sh off # restore committed state ``` -------------------------------- ### Install Dependencies and Build HTML Documentation Source: https://github.com/patdhlk/taktora/blob/main/spec/README.md Installs project dependencies using uv and then builds the HTML documentation using Sphinx. Assumes you are in the 'spec' directory. ```bash cd spec uv sync uv run sphinx-build -b html . _build/html open _build/html/index.html ``` -------------------------------- ### Enable Local Dependencies for Examples Source: https://github.com/patdhlk/taktora/blob/main/examples/README.md Use the scripts/examples-local.sh script to enable local path dependencies for all examples. This is useful for debugging in-tree changes. ```bash scripts/examples-local.sh on ``` -------------------------------- ### Run Zenoh Pub/Sub Mock Example Source: https://github.com/patdhlk/taktora/blob/main/examples/README.md Quickly run the zenoh-pubsub-mock example by navigating to its directory and executing the cargo run command. ```bash cd examples/zenoh-pubsub-mock && cargo run ``` -------------------------------- ### Run EtherCAT Wago Coupler Example Source: https://github.com/patdhlk/taktora/blob/main/README.md Executes the ethercat-wago-coupler example, which mirrors the inputs of a WAGO 750-430 to the outputs of a 750-530 through a 750-354 coupler over a real NIC. ```bash cargo run --example ethercat-wago-coupler ``` -------------------------------- ### Check Example Local Dependency Status Source: https://github.com/patdhlk/taktora/blob/main/examples/README.md Verify the current status of local dependency toggling for examples by running the status command from the repository root. ```bash scripts/examples-local.sh status ``` -------------------------------- ### Run Taktora Executor Loan Demo Example Source: https://github.com/patdhlk/taktora/blob/main/README.md Executes the loan_demo example for the taktora-executor crate, demonstrating zero-copy 1 KB payloads using Publisher::loan. ```bash cargo run -p taktora-executor --example loan_demo ``` -------------------------------- ### Run Zenoh Pub/Sub Real Example Source: https://github.com/patdhlk/taktora/blob/main/README.md Executes the zenoh-pubsub-real example, demonstrating the same shape as the mock example but over a real zenoh::Session, enabling two-terminal peer-to-peer communication. ```bash cargo run --example zenoh-pubsub-real ``` -------------------------------- ### Platform-Gated Dependencies Example Source: https://github.com/patdhlk/taktora/blob/main/docs/guides/adding-a-connector.md Example of how to conditionally include dependencies based on the target platform, such as gating Linux-specific libraries. ```toml [target.'cfg(target_os = "linux")'.dependencies] socketcan = { version = "3", optional = true, default-features = false, features = ["tokio"] } ``` -------------------------------- ### Build and Run EtherCAT Example Source: https://github.com/patdhlk/taktora/blob/main/examples/ethercat-real-bus/README.md Build the release version of the EtherCAT application and run it, specifying the network interface. ```bash cargo build --release ./target/release/ethercat-real-bus --nic eth0 ``` -------------------------------- ### Disable Local Dependencies for Examples Source: https://github.com/patdhlk/taktora/blob/main/examples/README.md Restore the committed state of example dependencies by running the scripts/examples-local.sh script with the 'off' argument. ```bash scripts/examples-local.sh off ``` -------------------------------- ### Conventional Commit Message Example Source: https://github.com/patdhlk/taktora/blob/main/docs/guides/adding-a-connector.md An example of a conventional commit message for adding a new connector, following the 'feat' type. ```git commit feat(connector-mqtt): add MQTT reference connector (FEAT_00xx) ``` -------------------------------- ### Run Subscriber Source: https://github.com/patdhlk/taktora/blob/main/examples/zenoh-pubsub-real/README.md Launches the Zenoh pub/sub example in subscriber mode. ```bash cargo run -- --role sub ``` -------------------------------- ### Run Taktora Executor Signal/Slot Example Source: https://github.com/patdhlk/taktora/blob/main/README.md Executes the signal_slot example for the taktora-executor crate, illustrating a signal/slot pair driven by a chain of events. ```bash cargo run -p taktora-executor --example signal_slot ```