5 releases

0.2.0 Apr 19, 2024
0.1.4 Apr 19, 2024
0.1.3 Apr 19, 2024
0.1.2 Aug 7, 2022
0.1.1 Jun 21, 2022

#90 in Windows APIs

Download history 2/week @ 2024-02-16 2/week @ 2024-02-23 12/week @ 2024-03-29 4/week @ 2024-04-05 325/week @ 2024-04-19 4/week @ 2024-04-26

329 downloads per month

MIT/Apache

11KB
98 lines

pre-commit

cargo.io License

rust badge

Description

Copy HTML to Windows clipboard.

Installation

Add this line to your dependencies section of your Cargo.toml file.

clipboard-win-html = "0.2"

Or you can add it from the command line.

cargo add clipboard-win-html

Usage

use clipboard_win_html::set_clipboard_html;

set_clipboard_html("<h1>Pure, valid, HTML.</h1>").unwrap();

Paste away.

Contributing

If there are any features you would like added, found any potential bugs, or have any questions, then feel free to create an issue.

Testing

cargo test

Unittests are in the same file, next to the units they are testing (bottom). Integration tests are in /tests/.

License

Licensed under either of

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.

Dependencies

~139MB
~2M SLoC