# pebble-skip [![Lib.rs](https://img.shields.io/badge/Lib.rs-*-84f)](https://lib.rs/crates/pebble-skip) [![Crates.io](https://img.shields.io/crates/v/pebble-skip)](https://crates.io/crates/pebble-skip) [![Docs.rs](https://docs.rs/pebble-skip/badge.svg)](https://docs.rs/crates/pebble-skip) ![Rust nightly-2020-10-30](https://img.shields.io/static/v1?logo=Rust&label=&message=nightly-2020-10-30&color=grey) [![Build Status](https://travis-ci.com/Tamschi/pebble-skip.svg?branch=unstable)](https://travis-ci.com/Tamschi/pebble-skip/branches) ![Crates.io - License](https://img.shields.io/crates/l/pebble-skip/0.0.1) [![GitHub](https://img.shields.io/static/v1?logo=GitHub&label=&message=%20&color=grey)](https://github.com/Tamschi/pebble-skip) [![open issues](https://img.shields.io/github/issues-raw/Tamschi/pebble-skip)](https://github.com/Tamschi/pebble-skip/issues) [![open pull requests](https://img.shields.io/github/issues-pr-raw/Tamschi/pebble-skip)](https://github.com/Tamschi/pebble-skip/pulls) [![crev reviews](https://web.crev.dev/rust-reviews/badge/crev_count/pebble-skip.svg)](https://web.crev.dev/rust-reviews/crate/pebble-skip/) This is a Semi-transparent high-level API wrapper for Pebble (watch) SDK 4.3, available at . The Pebble SDK isn't automatically included, but you can build a statically linked library and the use the official toolchain to link and package the watch app. [See here for an example.] [See here for an example.]: https://github.com/Tamschi/pebble-test This crate is still heavily work in progress, so expect frequent breaking changes and missing functionality before 0.1. If you'd like me to prioritise a specific API, please [file a feature request on GitHub]. [file a feature request on GitHub]: https://github.com/Tamschi/pebble-skip/issues/new?assignees=&labels=enhancement&template=feature_request.md&title= ## Installation Please use [cargo-edit](https://crates.io/crates/cargo-edit) to always add the latest version of this library: ```cmd cargo add pebble-skip ``` ## Example Aplite emulator screenshot: 'miles to see you' and 10000 in a number picker window ```rust #![no_std] use debugless_unwrap::DebuglessUnwrap as _; use pebble_skip::{ foundation::app, standard_c::CStr, user_interface::window::number_window::{NumberWindow, NumberWindowData}, }; #[no_mangle] pub extern "C" fn main() -> i32 { let label = CStr::try_from_static("miles to see you\0").unwrap(); let number_window = NumberWindow::new( &label, NumberWindowData { incremented: |_, _| (), decremented: |_, _| (), selected: |_, _| (), context: (), }, ) .debugless_unwrap(); number_window.set_value(10_000); let window = number_window.window(); window.show(true); app::event_loop(); 0 } ``` ## License Licensed under either of * Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or ) * MIT license ([LICENSE-MIT](LICENSE-MIT) or ) 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. ## [Code of Conduct](CODE_OF_CONDUCT.md) ## [Changelog](CHANGELOG.md) ## Versioning `pebble-skip` strictly follows [Semantic Versioning 2.0.0](https://semver.org/spec/v2.0.0.html) with the following exceptions: * The minor version will not reset to 0 on major version changes (except for v1). Consider it the global feature level. * The patch version will not reset to 0 on major or minor version changes (except for v0.1 and v1). Consider it the global patch level. This includes the Rust version requirement specified above. Earlier Rust versions may be compatible, but this can change with minor or patch releases. Which versions are affected by features and patches can be determined from the respective headings in [CHANGELOG.md](CHANGELOG.md).