Rust library to easily implement your own SpaceAPI server.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples
src
tests
.gitignore
.travis.yml
AUTHORS.md
CHANGELOG.md
CONTRIBUTING.md
Cargo.toml
LICENSE-APACHE
LICENSE-MIT
README.md
rustfmt.toml

README.md

Rust Space API Implementation

Build Status Test Coverage Crates.io Version Crates.io Downloads Dependency Status Clippy Linting Result

This is a library that allows an easy implementation of a SpaceAPI v0.13 server in Rust.

Requirements

  • Rust 1.21.0 or newer

Usage

See the examples directory or our Status-Project for reference.

To run the examples from the project directory:

$ cargo run --example simple

Datastores

Redis

To use the redis storage start the redis server:

$ redis-server

(...or start it using your favorite init daemon.)

You can access the database with the redis-cli tool:

% redis-cli
127.0.0.1:6379> SET people_present 1
OK
127.0.0.1:6379> GET people_present
"1"
127.0.0.1:6379> KEYS *
1) "people_present"

The values depend on your sensors configuration.

Docs

You can build docs with make docs. Find them in the target/doc/ directory.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.