Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade all dependencies #4

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ keywords = ["clipboard"]
readme = "README.md"

[target.'cfg(windows)'.dependencies]
clipboard-win = "2.0.0"
clipboard-win = "3.1.1"

[target.'cfg(target_os = "macos")'.dependencies]
objc = "0.2"
objc_id = "0.1"
objc-foundation = "0.1"
objc = "0.2.7"
objc_id = "0.1.1"
objc-foundation = "0.1.1"

[target.'cfg(any(target_os = "linux", target_os = "openbsd"))'.dependencies]
x11-clipboard = "0.3.0-alpha.1"
x11-clipboard = "0.5.1"
10 changes: 6 additions & 4 deletions examples/simple.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ extern crate clipboard2;
use clipboard2::{Clipboard, SystemClipboard};

fn main() {
let clipboard = SystemClipboard::new().unwrap();
clipboard.set_string_contents(String::from("Hello")).unwrap();
println!("{}", clipboard.get_string_contents().unwrap());
}
let clipboard = SystemClipboard::new().unwrap();
clipboard
.set_string_contents(String::from("Hello"))
.unwrap();
println!("{}", clipboard.get_string_contents().unwrap());
}
Loading