Update Rich Presence example

Add Windows connection and remove version dependency from Cargo.toml
This commit is contained in:
Patrick Auernig 2018-04-03 12:04:14 +02:00
parent b8e4697555
commit ced34974cf
2 changed files with 3 additions and 2 deletions

View File

@ -8,5 +8,3 @@ simplelog = "~0.5"
[dependencies.discord-rpc-client]
path = "../../"
version = "^0.1"
default-features = true

View File

@ -4,7 +4,10 @@ extern crate discord_rpc_client;
use simplelog::*;
use std::{thread, time};
use discord_rpc_client::Client as DiscordRPC;
#[cfg(unix)]
use discord_rpc_client::UnixConnection as Connection;
#[cfg(windows)]
use discord_rpc_client::WindowsConnection as Connection;
fn main() {
TermLogger::init(LevelFilter::Debug, Config::default()).unwrap();