2 releases

0.1.1 Oct 7, 2022
0.1.0 Oct 4, 2022

#12 in #locks

Download history 16/week @ 2024-02-25 55/week @ 2024-03-10 1/week @ 2024-03-17 21/week @ 2024-03-31

77 downloads per month

MIT license

28KB
627 lines

Seam for Rust

dependency status

Control locks, lights, and other internet of things devices with Seam's simple API. Checkout out the documentation or some examples.

Setup

cargo add seamapi-rs

Usage

use seamapi_rs::Seam;

fn main() {
	let seam = Seam::new(None, None).expect("Failed to get key or URL");

	let workspace = seam.workspaces().get().expect("Failed to get");

	println!("{:?}", workspace);
}

Development

This project is written in Rust, so use the latest stable from Rustup.

  • To run tests, run cargo test
  • To build for use cargo build --release

Our tests use a seam sandbox environment given by environment variable SEAM_SANDbOX_API_KEY. If you want to run the tests, you should first create a sandobx workspace on your dashboard.

Dependencies

~4–18MB
~257K SLoC