Updated for Cargo workspace usage

This commit is contained in:
Marcel 2023-01-15 15:41:46 +01:00
parent 24fa1be4fe
commit b4d753fe49

View file

@ -1,33 +1,38 @@
# matter-rs: The Rust Implementation of Matter # matter-rs: The Rust Implementation of Matter
![experimental](https://img.shields.io/badge/status-Experimental-red) [![license](https://img.shields.io/badge/license-Apache2-green.svg)](https://raw.githubusercontent.com/project-chip/matter-rs/main/LICENSE) ![experimental](https://img.shields.io/badge/status-Experimental-red) [![license](https://img.shields.io/badge/license-Apache2-green.svg)](https://raw.githubusercontent.com/project-chip/matter-rs/main/LICENSE)
[![Test Linux (OpenSSL)](https://github.com/project-chip/matter-rs/actions/workflows/test-linux-openssl.yml/badge.svg)](https://github.com/project-chip/matter-rs/actions/workflows/test-linux-openssl.yml) [![Test Linux (OpenSSL)](https://github.com/project-chip/matter-rs/actions/workflows/test-linux-openssl.yml/badge.svg)](https://github.com/project-chip/matter-rs/actions/workflows/test-linux-openssl.yml)
[![Test Linux (mbedTLS)](https://github.com/project-chip/matter-rs/actions/workflows/test-linux-mbedtls.yml/badge.svg)](https://github.com/project-chip/matter-rs/actions/workflows/test-linux-mbedtls.yml) [![Test Linux (mbedTLS)](https://github.com/project-chip/matter-rs/actions/workflows/test-linux-mbedtls.yml/badge.svg)](https://github.com/project-chip/matter-rs/actions/workflows/test-linux-mbedtls.yml)
## Build ## Build
Building the library: Building the library:
``` ```
$ cd matter
$ cargo build $ cargo build
``` ```
Building the example: Building the example:
``` ```
$ cd matter
$ RUST_LOG="matter" cargo run --example onoff_light $ RUST_LOG="matter" cargo run --example onoff_light
``` ```
With the chip-tool (the current tool for testing Matter) use the Ethernet commissioning mechanism: With the chip-tool (the current tool for testing Matter) use the Ethernet commissioning mechanism:
```
$ chip-tool pairing code 12344321 <Pairing-Code>
```
Or alternatively:
``` ```
$ chip-tool pairing ethernet 12344321 123456 0 <IP-Address> 5540 $ chip-tool pairing ethernet 12344321 123456 0 <IP-Address> 5540
``` ```
Interact with the device Interact with the device
``` ```
# Read server-list # Read server-list
$ chip-tool descriptor read server-list 12344321 0 $ chip-tool descriptor read server-list 12344321 0
@ -40,6 +45,7 @@ $ chip-tool onoff on 12344321 1
``` ```
## Functionality ## Functionality
- Secure Channel: - Secure Channel:
- PASE - PASE
- CASE - CASE
@ -55,4 +61,3 @@ $ chip-tool onoff on 12344321 1
## Notes ## Notes
The matter-rs project is a work-in-progress and does NOT yet fully implement Matter. The matter-rs project is a work-in-progress and does NOT yet fully implement Matter.