Skip to content

Commit

Permalink
fix: Adjust README.md after dependency fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
haata committed Sep 7, 2023
1 parent ceb5c43 commit 78b443f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion hid-io-client/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "hid-io-client"
version = "0.1.1"
version = "0.1.2"
authors = ["Jacob Alexander <haata@kiibohd.com>"]
license = "MIT OR Apache-2.0"
description = """
Expand Down
9 changes: 5 additions & 4 deletions hid-io-client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,18 @@ Please see [hid-io-client-ffi](../hid-io-client-ffi) if you are looking for an F
```rust
extern crate tokio;

use hid_io_core::common_capnp::NodeType;
use hid_io_core::logging::setup_logging_lite;
use hid_io_client::capnp;
use hid_io_client::common_capnp::NodeType;
use hid_io_client::setup_logging_lite;
use rand::Rng;

#[tokio::main]
pub async fn main() -> Result<(), ::capnp::Error> {
pub async fn main() -> Result<(), capnp::Error> {
setup_logging_lite().ok();
tokio::task::LocalSet::new().run_until(try_main()).await
}

async fn try_main() -> Result<(), ::capnp::Error> {
async fn try_main() -> Result<(), capnp::Error> {
// Prepare hid-io-core connection
let mut hidio_conn = hid_io_client::HidioConnection::new().unwrap();
let mut rng = rand::thread_rng();
Expand Down

0 comments on commit 78b443f

Please sign in to comment.