-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 5.0.0: Ditch winapi * Ditch str_buf
- Loading branch information
Showing
11 changed files
with
435 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "clipboard-win" | ||
version = "4.5.0" | ||
version = "5.0.0" | ||
authors = ["Douman <[email protected]>"] | ||
description = "Provides simple way to interact with Windows clipboard." | ||
license = "BSL-1.0" | ||
|
@@ -24,22 +24,7 @@ include = [ | |
default-target = "x86_64-pc-windows-msvc" | ||
|
||
[target.'cfg(windows)'.dependencies] | ||
error-code = "2.1" | ||
str-buf = "1" | ||
error-code = "3" | ||
|
||
[features] | ||
std = ["error-code/std"] | ||
|
||
[target.'cfg(windows)'.dependencies.winapi] | ||
version = "0.3" | ||
default-features = false | ||
features = [ | ||
"basetsd", | ||
"shellapi", | ||
"winbase", | ||
"winuser", | ||
"winerror", | ||
"stringapiset", | ||
"errhandlingapi", | ||
"synchapi" | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
fn main() { | ||
const KIND: &str = "dylib"; | ||
|
||
let libs = [ | ||
"kernel32", //Rust includes it by default already, but just in case link anyway | ||
"gdi32", | ||
"shell32", | ||
"user32", | ||
]; | ||
|
||
for lib in libs { | ||
println!("cargo:rustc-link-lib={KIND}={lib}"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.