commit_hash
stringlengths
40
40
author
stringlengths
1
57
date
timestamp[s]date
2010-07-26 04:45:09
2026-04-14 18:21:10
message
stringlengths
8
1.39M
diff
stringlengths
68
51.2k
files_changed
int64
1
136
insertions
int64
0
2.35k
deletions
int64
0
1.9k
e5a22aba53453bb00b99743a15e3387380d6f6cb
DoumanAsh
2023-09-28T14:27:12
3.0.0-beta.5
diff --git a/Cargo.toml b/Cargo.toml index cc8cf2a..859529c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "error-code" -version = "3.0.0-beta.4" +version = "3.0.0-beta.5" authors = ["Douman <douman@gmx.se>"] edition = "2018" description = "Error code" diff --git a/src/lib.rs b/src/lib.r...
5
49
29
c7ecda18a2c52fd4e3b28d6665eec7035899212f
DoumanAsh
2023-09-28T14:18:28
Lower MRV to 1.36
diff --git a/src/posix.rs b/src/posix.rs index f10a8b2..45acdd1 100644 --- a/src/posix.rs +++ b/src/posix.rs @@ -127,11 +127,11 @@ pub(crate) fn message(code: libc::c_int, out: &mut MessageBuf) -> &str { } #[cfg(not(any(windows, unix)))] -pub(crate) const fn is_would_block(_: libc::c_int) -> bool { +pub(crate) fn i...
2
3
3
13509b3e6e37656c22b5a855c355a705b3c9e3c9
DoumanAsh
2023-09-28T13:58:45
ffi -> libc
diff --git a/src/lib.rs b/src/lib.rs index d234ac2..9d356ea 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -18,7 +18,7 @@ #[cfg(feature = "std")] extern crate std; -use core::{ffi, mem, hash, fmt}; +use core::{mem, hash, fmt}; ///Text to return when cannot map error pub const UNKNOWN_ERROR: &str = "Unknown error";...
3
28
28
d4dad846046dcf3cdf7df1df88124a36cd5cbe96
DoumanAsh
2023-09-28T13:35:48
posix: Remove assert and just truncate error description
diff --git a/src/posix.rs b/src/posix.rs index 99386e1..de05ff0 100644 --- a/src/posix.rs +++ b/src/posix.rs @@ -1,7 +1,7 @@ use crate::{Category, MessageBuf, ErrorCode}; use crate::utils::write_message_buf; -use core::{ptr, ffi, str}; +use core::{cmp, ptr, ffi, str}; /// Posix error category, suitable for all e...
1
2
4
4a4c1e5dfb4b2636a409f3c15e2cde41fd0a366c
DoumanAsh
2023-09-28T11:32:39
3.0.0-beta.4: Make sure to always write out buffer
diff --git a/Cargo.toml b/Cargo.toml index 0ee06e2..cc8cf2a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "error-code" -version = "3.0.0-beta.3" +version = "3.0.0-beta.4" authors = ["Douman <douman@gmx.se>"] edition = "2018" description = "Error code" diff --git a/src/lib.rs b/src/lib.r...
5
28
10
e38c2e3f8d5a17ad3b524a94256dc9ff4c212691
DoumanAsh
2023-09-28T01:18:04
3.0.0-beta.3: Fix WASM compilation
diff --git a/Cargo.toml b/Cargo.toml index 2fdca3b..0ee06e2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "error-code" -version = "3.0.0-beta.2" +version = "3.0.0-beta.3" authors = ["Douman <douman@gmx.se>"] edition = "2018" description = "Error code" diff --git a/src/posix.rs b/src/pos...
2
2
2
c69f76692687cc646b1278a1839b0dd7661b35c5
Douman
2022-01-21T12:29:11
2.3.1: Remove double link_name attr on errno function import
diff --git a/Cargo.toml b/Cargo.toml index 4fc47a2..e900bce 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "error-code" -version = "2.3.0" +version = "2.3.1" authors = ["Douman <douman@gmx.se>"] edition = "2018" description = "Alternative Error for Rust" diff --git a/src/lib.rs b/src/lib...
3
2
3
8e1188ad139586cdd86f09a78ef7b235f0569bbb
Douman
2021-05-25T12:12:43
Inline all methods
diff --git a/src/lib.rs b/src/lib.rs index 618210b..12ec36f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -217,6 +217,7 @@ impl<C> Clone for ErrorCode<C> { impl<C> Copy for ErrorCode<C> {} impl<C> PartialEq for ErrorCode<C> { + #[inline] fn eq(&self, other: &Self) -> bool { self.code == other.code ...
2
9
0
d4638da124d8a3536d65007161376865efb81969
Douman
2021-05-19T22:43:44
2.3.0 Downgrade str-buf
diff --git a/Cargo.toml b/Cargo.toml index 6c42b40..4fc47a2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "error-code" -version = "2.2.0" +version = "2.3.0" authors = ["Douman <douman@gmx.se>"] edition = "2018" description = "Alternative Error for Rust" @@ -14,7 +14,7 @@ include = [ ] ...
2
3
3
1a348090584c4a3c07b4c817cd4412582fadcda6
Douman
2021-04-29T01:36:31
Add eq for std::io::Error
diff --git a/src/lib.rs b/src/lib.rs index fc9b49c..212c874 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -281,6 +281,17 @@ impl From<std::io::Error> for ErrorCode<PosixCategory> { } } +#[cfg(feature = "std")] +impl PartialEq<std::io::Error> for ErrorCode<PosixCategory> { + fn eq(&self, other: &std::io::Error)...
2
24
0
1b5275a361fe5c89a173ad5e441b4cd3843850b7
Douman
2021-04-29T01:32:37
Extend std::io::Error conversions
diff --git a/src/lib.rs b/src/lib.rs index e1f7e87..fc9b49c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -271,9 +271,29 @@ impl From<ErrorCode<PosixCategory>> for std::io::Error { } } +#[cfg(feature = "std")] +impl From<std::io::Error> for ErrorCode<PosixCategory> { + fn from(err: std::io::Error) -> Self { + ...
2
35
0
5d412e4799cef4bcb9fe0ff5942402ddd7791804
Douman
2021-04-29T01:23:46
Refactoring is_would_block and make all possible functions const
diff --git a/src/lib.rs b/src/lib.rs index 59a56ac..e1f7e87 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -113,7 +113,7 @@ impl ErrorCode<PosixCategory> { #[inline] ///Creates `unimplemented` error - pub fn unimplemented() -> Self { + pub const fn unimplemented() -> Self { Self::new(posix::get_...
3
16
18
2f283e2bed68504ee49d5de9d9fb3af05e11bae0
Douman
2021-04-29T01:18:39
Use ERROR_INVALID_FUNCTION as unimplemented
diff --git a/src/lib.rs b/src/lib.rs index 051e847..59a56ac 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -137,7 +137,7 @@ impl ErrorCode<SystemCategory> { #[inline] ///Creates `unimplemented` error pub fn unimplemented() -> Self { - Self::new(posix::get_unimplemented_error()) + Self::new(sys...
2
9
2
7ee8f9406d841691d6bbe34599c7454b746a9900
Douman
2021-04-29T00:01:16
System error on windows will try posix errno when winapi fail
diff --git a/src/lib.rs b/src/lib.rs index 7079f0c..051e847 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -111,6 +111,12 @@ impl ErrorCode<PosixCategory> { Self::new(posix::get_last_error()) } + #[inline] + ///Creates `unimplemented` error + pub fn unimplemented() -> Self { + Self::new(pos...
4
33
5
7f51e6943b61dced320b82ae1445d2a18d091b97
Douman
2021-04-24T05:52:29
2.1.0: Upgrade str-buf
diff --git a/Cargo.toml b/Cargo.toml index 82bcbb4..68bd631 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "error-code" -version = "2.0.2" +version = "2.1.0" authors = ["Douman <douman@gmx.se>"] edition = "2018" description = "Alternative Error for Rust"
1
1
1
18a07937a651d96ac64d30e6e5662a2a07df9e90
Douman
2021-04-24T05:51:59
Upgrade str-buf
diff --git a/Cargo.toml b/Cargo.toml index 1b04031..82bcbb4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,7 +14,7 @@ include = [ ] [dependencies] -str-buf = "1" +str-buf = "2" [dependencies.libc] version = "0.2" diff --git a/src/lib.rs b/src/lib.rs index eecda3a..7079f0c 100644 --- a/src/lib.rs +++ b/src/lib....
2
2
2
1e5833707097bcc42140fe228be01b4c69b47706
Douman
2020-09-21T14:38:13
Revert if in const fn
diff --git a/Cargo.toml b/Cargo.toml index 929975f..1b04031 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "error-code" -version = "2.0.0" +version = "2.0.2" authors = ["Douman <douman@gmx.se>"] edition = "2018" description = "Alternative Error for Rust"
1
1
1
b812c34184a9ecf6b6df21503979a46b752c0fcb
Douman
2020-09-21T14:37:40
Revert "2.0.1: is_would_block to be const fn" This reverts commit 4d6f3ee984a5a5ceb1c0b7b2a03e1e6a87e568e3.
diff --git a/Cargo.toml b/Cargo.toml index 435b60d..929975f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "error-code" -version = "2.0.1" +version = "2.0.0" authors = ["Douman <douman@gmx.se>"] edition = "2018" description = "Alternative Error for Rust" diff --git a/src/lib.rs b/src/lib...
3
5
5
4d6f3ee984a5a5ceb1c0b7b2a03e1e6a87e568e3
Douman
2020-09-06T06:49:35
2.0.1: is_would_block to be const fn
diff --git a/Cargo.toml b/Cargo.toml index 929975f..435b60d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "error-code" -version = "2.0.0" +version = "2.0.1" authors = ["Douman <douman@gmx.se>"] edition = "2018" description = "Alternative Error for Rust" diff --git a/src/lib.rs b/src/lib...
3
5
5
3936c80db651879a7dd6008579d09b7e4984d574
Douman
2020-06-10T13:01:35
2.0.0: Switch to str-buf lib
diff --git a/Cargo.toml b/Cargo.toml index 9c70b19..929975f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "error-code" -version = "1.0.1" +version = "2.0.0" authors = ["Douman <douman@gmx.se>"] edition = "2018" description = "Alternative Error for Rust" @@ -13,6 +13,9 @@ include = [ ...
5
10
125
638d7f6258cb0b468009032211eb86314c60896d
Douman
2020-05-29T09:46:32
1.0.1: Add missing std trait impls
diff --git a/Cargo.toml b/Cargo.toml index 533928e..9c70b19 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "error-code" -version = "1.0.0" +version = "1.0.1" authors = ["Douman <douman@gmx.se>"] edition = "2018" description = "Alternative Error for Rust" diff --git a/src/lib.rs b/src/lib...
2
25
1
34fd941b77ac6aaf39d598c1ad0a8e7b7da8e0a9
Douman
2020-01-23T21:18:24
Add would block detection
diff --git a/Cargo.toml b/Cargo.toml index 1640806..69fe687 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,6 +13,10 @@ include = [ "README.md" ] +[dependencies.libc] +version = "0.2" +default-features = false + [dependencies.ufmt] version = "0.1" default-features = true diff --git a/src/lib.rs b/src/lib.rs ...
2
32
0
86bcaedf46b3a04155a034465dcb10cac3281b3a
Douman
2020-01-23T20:59:28
Add convertions between categories
diff --git a/src/lib.rs b/src/lib.rs index 50aff51..d0def77 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -64,6 +64,19 @@ pub type SystemError = ErrorCode<SystemCategory>; ///Alias to Plain error code, without any extra category pub type PlainError = ErrorCode<()>; +///Describes way to convert from one `Category` int...
1
28
0
0533ea27bff3ddba99a0848fbae10d620920d235
Douman
2020-01-15T17:54:13
Enable features in docs.rs build
diff --git a/Cargo.toml b/Cargo.toml index 8599be7..1640806 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -23,3 +23,6 @@ version = "0.1" [features] std = [] + +[package.metadata.docs.rs] +features = ["std"]
1
3
0
66ecf8c93a635a7ea355c8182eebd045f942624a
Douman
2020-01-12T09:16:18
Impl some auto traits to avoid depending on Category impls
diff --git a/src/lib.rs b/src/lib.rs index 6fa71fc..50aff51 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -235,3 +235,7 @@ impl<C: Category> ufmt::uDisplay for ErrorCode<C> { #[cfg(feature = "std")] impl<C: Category> std::error::Error for ErrorCode<C> {} + +unsafe impl<C> Send for ErrorCode<C> {} +unsafe impl<C> Sync...
1
4
0
0381dca8944e53f59ecdfba005039262aee46350
Douman
2020-01-12T09:11:55
Add converter to error code
diff --git a/src/lib.rs b/src/lib.rs index 70a2082..6fa71fc 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -64,6 +64,18 @@ pub type SystemError = ErrorCode<SystemCategory>; ///Alias to Plain error code, without any extra category pub type PlainError = ErrorCode<()>; +///Identifies object as error code, allowing for it...
1
12
0
d3723fe3a615f507c9c4033bb28335fb18ceb6a1
Douman
2020-01-12T07:58:15
0.1.1: Limit Category::message lifetime just in csae
diff --git a/Cargo.toml b/Cargo.toml index 315e97b..8599be7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "error-code" -version = "0.1.0" +version = "0.1.1" authors = ["Douman <douman@gmx.se>"] edition = "2018" description = "Alternative Error for Rust" diff --git a/src/lib.rs b/src/lib...
4
7
7
4ac444d1ca853a5faf12cf891537b0a3513a04b2
Douman
2020-01-11T19:29:24
Do not use dynamic dispatch, it is too fat
diff --git a/Cargo.toml b/Cargo.toml index 75ca7ef..315e97b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,3 +20,6 @@ optional = true [dev-dependencies.ufmt-stdio] version = "0.1" + +[features] +std = [] diff --git a/src/generic.rs b/src/generic.rs index b3c9d76..eda0970 100644 --- a/src/generic.rs +++ b/src/gener...
3
33
21
80f9f4d254ce172bb78ae68c2163b02dbb52b381
Douman
2025-07-17T23:36:54
Store allocation size to re-create layout (#41)
diff --git a/src/raw.rs b/src/raw.rs index 7a6414e..9b798f4 100644 --- a/src/raw.rs +++ b/src/raw.rs @@ -40,7 +40,7 @@ fn invalid_data() -> ErrorCode { } #[inline(always)] -fn free_dc(data: HDC) { +fn free_dc(data: HDC, _: usize) { unsafe { ReleaseDC(ptr::null_mut(), data); } @@ -738,7 +738,7 @@ ...
2
20
14
d8cfd073ad245697e0834ba85626f23376ce65f3
DoumanAsh
2024-07-07T06:15:13
5.4.0: Add API to customize clipboard setting behavior
diff --git a/Cargo.toml b/Cargo.toml index 0bbc605..6395013 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "clipboard-win" -version = "5.3.1" +version = "5.4.0" authors = ["Douman <douman@gmx.se>"] description = "Provides simple way to interact with Windows clipboard." license = "B...
5
118
21
0af605873edf7f8064f54e73536f27dee5a56416
DoumanAsh
2024-03-05T13:20:51
5.3.0: raw::which_format_avail
diff --git a/Cargo.toml b/Cargo.toml index a9dc41b..ae65939 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "clipboard-win" -version = "5.2.0" +version = "5.3.0" authors = ["Douman <douman@gmx.se>"] description = "Provides simple way to interact with Windows clipboard." license = "B...
2
2
2
91cd86c4d3fe334a84b4926d59dfd7e252b6e2b0
DoumanAsh
2024-03-05T13:12:53
Add binding to GetPriorityClipboardFormat
diff --git a/src/raw.rs b/src/raw.rs index 101e802..0cfa65e 100644 --- a/src/raw.rs +++ b/src/raw.rs @@ -207,6 +207,22 @@ pub fn is_format_avail(format: c_uint) -> bool { unsafe { IsClipboardFormatAvailable(format) != 0 } } +#[inline(always)] +///Returns the first available format in the specified list +/// +//...
3
26
0
2f7e3a028e5436ded82d513bfbe7b410ce3e4d2b
DoumanAsh
2024-02-24T01:22:31
Just in case guard against invalid UTF-8 instead of HTML MS says HTML is always UTF-8, but you cannot actually know what people set onto clipboard
diff --git a/src/raw.rs b/src/raw.rs index 58b8d0e..101e802 100644 --- a/src/raw.rs +++ b/src/raw.rs @@ -32,6 +32,12 @@ use alloc::format; use crate::{SysResult, html, formats}; use crate::utils::{unlikely_empty_size_result, RawMem}; +#[cold] +#[inline(never)] +fn invalid_data() -> ErrorCode { + ErrorCode::new_s...
1
12
5
ea4fd36f56237d1c8e3f06056347c46d61c0e5bd
DoumanAsh
2024-02-20T14:40:56
Add trait Format over high level format types
diff --git a/src/formats.rs b/src/formats.rs index bb96bac..190aa7e 100644 --- a/src/formats.rs +++ b/src/formats.rs @@ -10,6 +10,33 @@ use crate::types::c_uint; use core::num::NonZeroU32; +///Format trait +pub trait Format { + ///Returns whether format is present on clipboard + fn is_format_avail(&self) -> ...
2
64
2
f288b6bf327ec63063c06a471a32f5f6d777c69a
DoumanAsh
2024-02-11T14:31:10
Add monitor features to docs.rs build
diff --git a/Cargo.toml b/Cargo.toml index 48d0dcb..25a2a97 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,6 +22,7 @@ include = [ [package.metadata.docs.rs] default-target = "x86_64-pc-windows-msvc" +features = ["monitor"] [target.'cfg(windows)'.dependencies] error-code = "3"
1
1
0
1a054a8fc49e761620a86568f591b58a88c5f1d2
DoumanAsh
2024-02-06T15:11:17
Finalize monitor
diff --git a/src/monitor.rs b/src/monitor.rs index 1b937ce..6113f10 100644 --- a/src/monitor.rs +++ b/src/monitor.rs @@ -15,7 +15,6 @@ use windows_win::sys::{ WM_CLIPBOARDUPDATE, }; - const CLOSE_PARAM: isize = -1; ///Shutdown channel @@ -82,8 +81,10 @@ impl Drop for ClipboardListener { /// ///Therefore y...
1
8
6
1ef2b82f057bbad5077cecc3b3f18171a4e85eaa
DoumanAsh
2024-02-05T14:41:31
Extract clipboard monitoring from clipboard-master
diff --git a/Cargo.toml b/Cargo.toml index f241a97..56a8313 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -26,5 +26,15 @@ default-target = "x86_64-pc-windows-msvc" [target.'cfg(windows)'.dependencies] error-code = "3" +[target.'cfg(windows)'.dependencies.windows-win] +version = "3" +optional = true + [feature...
5
218
2
0b38c6a7460131ef6700f29bd87114e87ace4de6
ComplexSpaces
2023-11-22T04:44:49
Replace build script with linkage attributes
diff --git a/build.rs b/build.rs deleted file mode 100644 index 53ec4b1..0000000 --- a/build.rs +++ /dev/null @@ -1,14 +0,0 @@ -fn main() { - const KIND: &str = "dylib"; - - let libs = [ - "kernel32", //Rust includes it by default already, but just in case link anyway - "gdi32", - "shell32", ...
2
6
15
17f34af6779b54298f5785f8e637367c32bb7b54
DoumanAsh
2023-10-01T06:10:35
5.0.0-beta.1
diff --git a/Cargo.toml b/Cargo.toml index f241a97..d1da9bc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "clipboard-win" -version = "5.0.0" +version = "5.0.0-beta.1" authors = ["Douman <douman@gmx.se>"] description = "Provides simple way to interact with Windows clipboard." licen...
1
1
1
4641eab1a92349d07a7a0a86316f2ba8711bd4d5
Morten Canth Hels
2023-01-08T17:31:24
Setting list of files (#24) Co-authored-by: UMRH (Morten Hels) <UMRH@novonordisk.com> Co-authored-by: DoumanAsh <douman@gmx.se>
diff --git a/src/formats.rs b/src/formats.rs index 3bee139..6d71c44 100644 --- a/src/formats.rs +++ b/src/formats.rs @@ -142,6 +142,13 @@ impl Getter<alloc::vec::Vec<std::path::PathBuf>> for FileList { } } +impl<T: AsRef<str>> Setter<[T]> for FileList { + #[inline(always)] + fn write_clipboard(&self, data...
4
98
4
c47623ca3980502c01a7a5c665b7083eec668fb6
DoumanAsh
2022-07-15T09:17:15
Allow empty set for strings
diff --git a/src/raw.rs b/src/raw.rs index fe70dad..6391904 100644 --- a/src/raw.rs +++ b/src/raw.rs @@ -56,6 +56,8 @@ pub fn open() -> SysResult<()> { open_for(ptr::null_mut()) } +#[allow(clippy::not_unsafe_ptr_arg_deref)] +//clippy is retard #[inline] ///Opens clipboard associating it with specified window ...
2
19
5
fff3d3e8e54b710a88ef5e24825f18f258add1d6
Douman
2022-01-24T00:38:35
4.4.1: register_raw_format() should not accept empty input
diff --git a/Cargo.toml b/Cargo.toml index 5da7235..75214a8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "clipboard-win" -version = "4.4.0" +version = "4.4.1" authors = ["Douman <douman@gmx.se>"] description = "Provides simple way to interact with Windows clipboard." license = "B...
2
3
3
4a5b7aa071aed66e9560d112eb44b89e8644f44e
Douman
2022-01-23T13:59:56
4.4.0: Make code panic safe
diff --git a/Cargo.toml b/Cargo.toml index c1ef8a8..5da7235 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "clipboard-win" -version = "4.3.0" +version = "4.4.0" authors = ["Douman <douman@gmx.se>"] description = "Provides simple way to interact with Windows clipboard." license = "B...
3
38
12
48ac0ac18a42089da87311ecb1ab30333631e24f
Douman
2022-01-03T01:31:06
Introduce file list for PathBuf
diff --git a/src/formats.rs b/src/formats.rs index 33bef97..3bee139 100644 --- a/src/formats.rs +++ b/src/formats.rs @@ -134,6 +134,14 @@ impl Getter<alloc::vec::Vec<alloc::string::String>> for FileList { } } +#[cfg(feature = "std")] +impl Getter<alloc::vec::Vec<std::path::PathBuf>> for FileList { + #[inline...
3
52
0
907a1b1ae5d384b69164932d57fddc3b2b98bdd2
ComplexSpaces
2021-10-21T07:18:11
Add set_without_clear function (#19)
diff --git a/src/raw.rs b/src/raw.rs index 1a88de3..ec235f0 100644 --- a/src/raw.rs +++ b/src/raw.rs @@ -259,8 +259,18 @@ pub fn get_vec(format: u32, out: &mut alloc::vec::Vec<u8>) -> SysResult<usize> { Ok(result) } -///Copies raw bytes onto clipboard with specified `format`, returning whether it was successful...
1
11
3
de5c2734e2ddd180e721661e293186cd36a09093
Douman
2021-05-19T22:59:48
Export SystemError for user to use
diff --git a/Cargo.toml b/Cargo.toml index 75e9813..8dd811d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "clipboard-win" -version = "4.2.0" +version = "4.2.1" authors = ["Douman <douman@gmx.se>"] description = "Provides simple way to interact with Windows clipboard." license = "B...
2
2
1
c470ed8891eebfd97bce5399a95a6c72ef6e3e35
Douman
2021-05-19T22:47:29
4.2.0: Downgrade str-buf
diff --git a/Cargo.toml b/Cargo.toml index 904c5ec..75e9813 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "clipboard-win" -version = "4.1.0" +version = "4.2.0" authors = ["Douman <douman@gmx.se>"] description = "Provides simple way to interact with Windows clipboard." license = "B...
2
5
5
07c7ba2f0fb46b29c563db07e024fff6a3e1406c
Douman
2021-04-24T05:53:25
4.1.0: Upgrade str-buf
diff --git a/Cargo.toml b/Cargo.toml index 19fe5aa..904c5ec 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "clipboard-win" -version = "4.0.3" +version = "4.1.0" authors = ["Douman <douman@gmx.se>"] description = "Provides simple way to interact with Windows clipboard." license = "B...
2
5
5
ab80f3f9b95541983398e5aaa40e84401c1bae32
Douman
2020-09-06T06:36:55
4.0.3: Yield execution when clipboard open fails
diff --git a/Cargo.toml b/Cargo.toml index b20e1f3..19fe5aa 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "clipboard-win" -version = "4.0.2" +version = "4.0.3" authors = ["Douman <douman@gmx.se>"] description = "Provides simple way to interact with Windows clipboard." license = "B...
2
5
3
2e80637f1b6810514213217c4758dcf967354315
Artur Kovacs
2020-09-05T20:09:56
Yield execution inbetween attempts to open
diff --git a/Cargo.toml b/Cargo.toml index 2ddf935..b20e1f3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -41,4 +41,5 @@ features = [ "winerror", "stringapiset", "errhandlingapi", + "processthreadsapi" ] diff --git a/src/lib.rs b/src/lib.rs index 6b43f3c..fc9ffd7 100644 --- a/src/lib.rs +++ b/src/...
2
2
0
901986925de7b190ba1880a03aa48dc46e6cbba9
Douman
2020-07-21T13:56:06
4.0.2: Rename for set_bitamp, while retaining old method
diff --git a/Cargo.toml b/Cargo.toml index aa9a3ed..2ddf935 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "clipboard-win" -version = "4.0.1" +version = "4.0.2" authors = ["Douman <douman@gmx.se>"] description = "Provides simple way to interact with Windows clipboard." license = "B...
3
9
3
8f1ac39e32a01dc154f8b382b8e60f44e4d64429
Douman
2020-07-21T11:47:37
4.0.1: Allow owner association
diff --git a/Cargo.toml b/Cargo.toml index ccb8d94..aa9a3ed 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "clipboard-win" -version = "4.0.0" +version = "4.0.1" authors = ["Douman <douman@gmx.se>"] description = "Provides simple way to interact with Windows clipboard." license = "B...
4
67
7
98693a4100f13fd062f3526b8f5a17490d6412dc
Douman
2020-07-21T10:31:42
Add tests for is_format_avail
diff --git a/tests/test_clip.rs b/tests/test_clip.rs index 8ce05e4..1cbb4e5 100644 --- a/tests/test_clip.rs +++ b/tests/test_clip.rs @@ -1,5 +1,5 @@ -use clipboard_win::{Getter, Setter, Clipboard}; -use clipboard_win::formats::{RawData, Unicode, Bitmap, CF_TEXT}; +use clipboard_win::{Getter, Setter, Clipboard, is_forma...
1
4
2
41b943b780758d6cbfd8909a74ec81319b82d0ff
Douman
2020-06-26T22:00:32
4.0.0-beta.1
diff --git a/Cargo.toml b/Cargo.toml index 3535fcf..5ee887a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "clipboard-win" -version = "4.0.0" +version = "4.0.0-beta.1" authors = ["Douman <douman@gmx.se>"] description = "Provides simple way to interact with Windows clipboard." licen...
1
2
2
b6bca96cba535a3e98490cefcb4439456018faf4
Douman
2020-06-25T15:31:55
File list
diff --git a/src/formats.rs b/src/formats.rs index 0c6234d..60e4d11 100644 --- a/src/formats.rs +++ b/src/formats.rs @@ -119,3 +119,17 @@ impl<T: AsRef<str>> Setter<T> for Unicode { crate::raw::set_string(data.as_ref()) } } + +///Format for file lists (generated by drag & drop). +/// +///Corresponds to `...
2
50
0
e0269caed5985e933d67cd743325cec04b1971e0
Douman
2020-06-25T13:19:01
Refine high level API
diff --git a/src/lib.rs b/src/lib.rs index c81089b..ff384ba 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -21,6 +21,8 @@ //! //!# Usage //! +//!## Manually lock clipboard +//! //!``` //!use clipboard_win::{Clipboard, formats, Getter, Setter}; //! @@ -42,6 +44,20 @@ //!//Or take the same string twice? //!...
1
63
0
ce751d4a3c4effa974fcd3e5a24e19512a7772a7
Douman
2020-06-25T09:53:27
Refactoring to use no_std error code
diff --git a/Cargo.toml b/Cargo.toml index 48d22f6..691094d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -25,7 +25,7 @@ default-target = "x86_64-pc-windows-msvc" [dependencies] lazy-bytes-cast = "5" -smart-ptr = "0.4" +error-code = "2" str-buf = "1" [target.'cfg(windows)'.dependencies.winapi] diff --git ...
6
188
227
89551846e4b23861c000a9fa2648c9320ce9a233
Douman
2020-06-24T21:03:46
Start new API
diff --git a/Cargo.toml b/Cargo.toml index a6023f4..48d22f6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -25,6 +25,7 @@ default-target = "x86_64-pc-windows-msvc" [dependencies] lazy-bytes-cast = "5" +smart-ptr = "0.4" str-buf = "1" [target.'cfg(windows)'.dependencies.winapi] diff --git a/src/formats.rs b/...
6
483
12
ae67d388f3d34ac88136292901fc25e2b8c47af7
Elzair
2023-08-03T20:59:04
Bumped version to 0.6.0
diff --git a/Cargo.toml b/Cargo.toml index 2751c1c..23bea2f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "page_size" -version = "0.5.0" +version = "0.6.0" authors = ["Philip Woods <elzairthesorcerer@gmail.com>"] description = "Provides an easy, fast, cross-platform way to retrieve the m...
1
1
1
5914eef15c0a040c9da5781229a8bbafbd482b29
Dylan DPC
2023-06-25T14:20:48
Update Cargo.toml
diff --git a/Cargo.toml b/Cargo.toml index b7eb3b3..2751c1c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,7 +19,7 @@ appveyor = { repository = "Elzair/page_size_rs" } no_std = ["spin"] [dependencies] -spin = { version = "^0.9", optional = true } +spin = { version = "0.9.8", optional = true } [target.'cfg(unix)...
1
1
1
c620ef10662892559b196fa32ab0c5d0785dbf0d
Elzair
2022-11-20T15:06:35
Upgraded to a new version to bump dependencies
diff --git a/Cargo.toml b/Cargo.toml index 39b0213..b7eb3b3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "page_size" -version = "0.4.2" +version = "0.5.0" authors = ["Philip Woods <elzairthesorcerer@gmail.com>"] description = "Provides an easy, fast, cross-platform way to retrieve the m...
1
4
4
672b200111e324427f5e9492fa28fdfb8d7577e3
Elia Geretto
2021-06-20T09:00:41
Format source code
diff --git a/src/lib.rs b/src/lib.rs index b834486..bc1756a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -9,7 +9,7 @@ //! after it has been called once. //! //! To make this crate useful for writing memory allocators, it does not require -//! (but can use) the Rust standard library. +//! (but can use) the Rust stand...
1
10
12
84daad845a0720c82080ed10c2caec6805a1b4f0
Elia Geretto
2021-06-20T08:59:52
Remove feature(const_fn) attribute
diff --git a/src/lib.rs b/src/lib.rs index ac7e904..b834486 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -22,9 +22,6 @@ //! println!("{}", page_size::get()); //! ``` -// `const_fn` is needed for `spin::Once`. -#![cfg_attr(feature = "no_std", feature(const_fn))] - #[cfg(feature = "no_std")] extern crate spin; #[cf...
1
0
3
993711d78d6a68ceff799f74f13cb90507df1380
Dan Gohman
2021-02-04T18:44:29
Fix compilation on wasm32-unknown-emscripten.
diff --git a/src/lib.rs b/src/lib.rs index 839fcc3..71a39d8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -111,7 +111,7 @@ mod unix { // WebAssembly does not have a specific allocation granularity. // The page size works well. -#[cfg(any(target_arch = "wasm32", target_arch = "wasm64"))] +#[cfg(all(not(target_os = "em...
1
1
1
290f3da944d0f1c86612172ec84958a9dbf910ac
Philip Woods
2019-12-19T21:32:32
Bumped version
diff --git a/Cargo.toml b/Cargo.toml index 27c8569..39b0213 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "page_size" -version = "0.4.1" +version = "0.4.2" authors = ["Philip Woods <elzairthesorcerer@gmail.com>"] description = "Provides an easy, fast, cross-platform way to retrieve the m...
1
1
1
8fb6f33b9de239f977b30cc6532b75e2eebda0a5
Henrik Rydgård
2019-10-16T08:09:07
Update to winapi 0.3.8 which is way, way faster to build.
diff --git a/Cargo.toml b/Cargo.toml index ffceb98..27c8569 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,11 +19,10 @@ appveyor = { repository = "Elzair/page_size_rs" } no_std = ["spin"] [dependencies] -spin = { version = "^0.4.5", optional = true } +spin = { version = "0.5.2", optional = true } [target.'cfg(u...
2
8
11
749aa25cb003b22f20fd6982478212e3639d6629
Philip Woods
2017-09-29T22:45:58
Bumped version number
diff --git a/Cargo.toml b/Cargo.toml index 62d6a6b..08cf5ca 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "page_size" -version = "0.3.5" +version = "0.4.0" authors = ["Philip Woods <elzairthesorcerer@gmail.com>"] description = "Provides an easy, fast, cross-platform way to retrieve the m...
2
9
10
55df8c6435739f389c0256be6f29080ef16c6eed
Philip Woods
2017-09-29T21:14:24
Fixed Windows no_std build
diff --git a/src/lib.rs b/src/lib.rs index 7a1675f..23120c2 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -153,6 +153,9 @@ fn get_granularity_helper() -> usize { #[cfg(windows)] mod windows { + #[cfg(feature = "no_std")] + use core::mem; + #[cfg(not(feature = "no_std"))] use std::mem; use win...
1
3
0
010915b49795eda3503f496e9da29ca454285990
Philip Woods
2017-09-29T18:25:30
Removed one line from unit test
diff --git a/Cargo.toml b/Cargo.toml index f7cd0da..2a56a73 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "page_size" -version = "0.3.4" +version = "0.3.5" authors = ["Philip Woods <elzairthesorcerer@gmail.com>"] description = "Provides an easy, fast, cross-platform way to retrieve the m...
2
1
2
b5e8e3415d28a9463294af0f1ff1f7b1f4c23649
Philip Woods
2017-09-29T14:37:50
Fixed stupid typo in Windows section
diff --git a/Cargo.toml b/Cargo.toml index b94f824..f7cd0da 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "page_size" -version = "0.3.3" +version = "0.3.4" authors = ["Philip Woods <elzairthesorcerer@gmail.com>"] description = "Provides an easy, fast, cross-platform way to retrieve the m...
2
2
2
1eebf71ba7d4174313d87c1bef23729a00266bf0
Philip Woods
2017-09-29T14:04:06
Fixed build errors on windows
diff --git a/Cargo.toml b/Cargo.toml index ae9dc3d..b94f824 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "page_size" -version = "0.3.2" +version = "0.3.3" authors = ["Philip Woods <elzairthesorcerer@gmail.com>"] description = "Provides an easy, fast, cross-platform way to retrieve the m...
2
19
16
1204c3b5081ba387df6588f18843280eff884cd9
Philip Woods
2017-09-25T18:06:18
Simplified example code
diff --git a/Cargo.toml b/Cargo.toml index 2dd554d..154e649 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "page_size" -version = "0.2.1" +version = "0.3.0" authors = ["Philip Woods <elzairthesorcerer@gmail.com>"] description = "Provides an easy, fast, cross-platform way to retrieve the m...
2
4
7
dcb2d5c54a7c26f12992e2a29c3268f2ca58456a
Philip Woods
2017-09-25T17:47:49
Added function for retrieving allocation granularity
diff --git a/src/lib.rs b/src/lib.rs index 8739f61..7a7b289 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -45,6 +45,19 @@ pub fn get() -> usize { get_helper() } +/// This function retrieves the system's memory allocation granularity. +/// +/// # Example +/// +#[cfg_attr(not(feature = "no_std"), doc = " ``` ")] +#...
1
63
2
66d81a20bae0ed5a7ea3e49879d9a35254ed7c55
Philip Woods
2017-09-25T16:33:28
Changed feature no-std to no_std
diff --git a/Cargo.toml b/Cargo.toml index e78e1d8..2dd554d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "page_size" -version = "0.2.0" +version = "0.2.1" authors = ["Philip Woods <elzairthesorcerer@gmail.com>"] description = "Provides an easy, fast, cross-platform way to retrieve the m...
2
15
15
be7ffe22322542d347a30d67ef87bb2bce322a55
Philip Woods
2017-09-21T20:54:29
Added stub implementation for unsupported systems
diff --git a/Cargo.toml b/Cargo.toml index 2cabee2..e78e1d8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "page_size" -version = "0.1.1" +version = "0.2.0" authors = ["Philip Woods <elzairthesorcerer@gmail.com>"] description = "Provides an easy, fast, cross-platform way to retrieve the m...
2
9
1
60bf47a977cc2d260cac1c97be320ac5a98c1599
Philip Woods
2017-09-21T20:47:57
Fixed documentation URL error
diff --git a/Cargo.toml b/Cargo.toml index eeba20d..2cabee2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,11 +1,11 @@ [package] name = "page_size" -version = "0.1.0" +version = "0.1.1" authors = ["Philip Woods <elzairthesorcerer@gmail.com>"] description = "Provides an easy, fast, cross-platform way to retrieve the...
1
2
2
e811e1ac81bcc0abee73809f29f227b570ef16cd
Philip Woods
2017-09-21T20:33:17
Changed fn name to get and wrote documentation
diff --git a/src/lib.rs b/src/lib.rs index bfaabd5..26aecb7 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,4 +1,20 @@ #![no_std] +//! This crate provides an easy, fast, cross-platform way to retrieve the +//! memory page size of the current system. Modern hardware and software tend +//! to load data into RAM (and tran...
1
39
14
78df6663d42c97272dbdef31a060d100a3874289
Philip Woods
2017-09-21T20:10:13
Caches page size
diff --git a/Cargo.toml b/Cargo.toml index cc4c55d..5cf1c55 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,8 +3,13 @@ name = "page_size" version = "0.1.0" authors = ["Philip Woods <elzairthesorcerer@gmail.com>"] +[features] +no-std = ["spin"] + [dependencies] +spin = { version = "^0.4.5", optional = true } + [t...
2
73
13
b85dc6e69d0a836ec340fcbad73d2a5b3327f26f
Philip Woods
2025-02-28T18:51:56
Bumped version number
diff --git a/Cargo.toml b/Cargo.toml index fdd8964..1c2ad99 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "core_affinity" -version = "0.8.1" +version = "0.8.2" authors = ["Philip Woods <elzairthesorcerer@gmail.com>"] description = "Manages CPU affinities" readme = "README.md"
1
1
1
139fe890bdcef7d5c45dcdf6cef4ae5f83f61acb
mchelaru
2025-02-22T07:44:10
fix for more than 8 cores, from wiz@
diff --git a/src/lib.rs b/src/lib.rs index 86f7bd3..cf8532f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -580,6 +580,7 @@ mod netbsd { pthread_getaffinity_np, pthread_setaffinity_np, pthread_self, cpuset_t, _cpuset_create, _cpuset_size, _cpuset_set, _cpuset_isset, _cpuset_destroy }; + use num_c...
1
5
4
fb1c634f1b4d5d87be4377b6705088beaa04e9af
Paolo Barbolini
2024-10-21T03:12:31
Make license metadata SPDX compliant
diff --git a/Cargo.toml b/Cargo.toml index c39d22c..3ce4c64 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,7 @@ version = "0.8.1" authors = ["Philip Woods <elzairthesorcerer@gmail.com>"] description = "Manages CPU affinities" readme = "README.md" -license = "MIT/Apache-2.0" +license = "MIT OR Apache-2.0" docum...
1
1
1
b64e760330f6782a540854b771f2c94572773783
mchelaru
2024-07-14T20:16:29
Add NetBSD support
diff --git a/Cargo.toml b/Cargo.toml index c39d22c..fdd8964 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,7 +14,7 @@ categories = ["os"] [dependencies] num_cpus = "^1.14.0" -[target.'cfg(any(target_os = "android", target_os = "linux", target_os = "macos", target_os = "freebsd"))'.dependencies] +[target.'cfg(any(t...
2
126
4
b007efe7065174c9d5146d0cbe56699f0800020b
Elzair
2023-08-03T21:17:31
Bumped version to 0.8.1
diff --git a/Cargo.toml b/Cargo.toml index 3d71853..c39d22c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "core_affinity" -version = "0.8.0" +version = "0.8.1" authors = ["Philip Woods <elzairthesorcerer@gmail.com>"] description = "Manages CPU affinities" readme = "README.md"
1
1
1
257d6bebd90da81b19497aaf957bce92c4b20ab0
Elzair
2023-08-03T21:16:34
Bumped version to 0.8.0
diff --git a/Cargo.toml b/Cargo.toml index 3f6bf10..3d71853 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "core_affinity" -version = "0.7.6" +version = "0.8.0" authors = ["Philip Woods <elzairthesorcerer@gmail.com>"] description = "Manages CPU affinities" readme = "README.md"
1
1
1
491a94f48fbdd9345f76cb144e589319533d42bc
Nicolas Viennot
2023-05-25T16:43:06
Add a PartialOrd,Ord,Hash on CoreId
diff --git a/src/lib.rs b/src/lib.rs index 0fcf8a6..6ceb8d2 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -57,7 +57,8 @@ pub fn set_for_current(core_id: CoreId) -> bool { } /// This represents a CPU core. -#[derive(Copy, Clone, Debug, PartialEq, Eq)] +#[repr(transparent)] +#[derive(Copy, Clone, Debug, PartialEq, Eq, ...
1
2
1
435b16442cd22e017cf675466f12d736da3cd60f
Dmitry Mottl
2023-04-11T06:29:47
Adds assert to test_set_for_current
diff --git a/src/lib.rs b/src/lib.rs index f674fdf..172096f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -609,9 +609,7 @@ mod tests { #[test] fn test_set_for_current() { let ids = get_core_ids().unwrap(); - assert!(ids.len() > 0); - - set_for_current(ids[0]); + assert!(set_for_c...
1
1
3
bbf0e5a5ad15ee1dcfc05d1ad42bcef25bb917d6
Dmitry Mottl
2023-04-11T06:17:53
Fixes test_macos_set_for_current() Previous test lacks validation of return value of `set_for_current()`
diff --git a/src/lib.rs b/src/lib.rs index 0fcf8a6..f674fdf 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -401,10 +401,8 @@ mod macos { #[test] fn test_macos_set_for_current() { let ids = get_core_ids().unwrap(); - assert!(ids.len() > 0); - - set_for_current(ids[0]);...
1
1
3
604ca58f6a56fd975462412ab2330910a6976364
Michael Gmelin
2022-12-29T14:31:04
Make stub helper for unsupported OSes return false As discussed in review
diff --git a/src/lib.rs b/src/lib.rs index 267e74f..cccbc84 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -584,7 +584,7 @@ fn get_core_ids_helper() -> Option<Vec<CoreId>> { )))] #[inline] fn set_for_current_helper(_core_id: CoreId) -> bool { - true + false } #[cfg(test)]
1
1
1
63d25fab1775b8156515d32cf83e505b3657243e
figsoda
2022-12-08T01:47:59
Don't link System framework on macos
diff --git a/src/lib.rs b/src/lib.rs index 8703cd8..0cbefc5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -342,7 +342,6 @@ mod macos { const THREAD_AFFINITY_POLICY: thread_policy_flavor_t = 4; - #[link(name = "System", kind = "framework")] extern { fn thread_policy_set( thread: thre...
1
0
1
d217f7ff731980d2f94c4d3081c13e37b73014f6
Elzair
2022-12-01T01:18:38
Bumped version
diff --git a/Cargo.toml b/Cargo.toml index faa00a9..cf09675 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "core_affinity" -version = "0.7.5" +version = "0.7.6" authors = ["Philip Woods <elzairthesorcerer@gmail.com>"] description = "Manages CPU affinities" readme = "README.md"
1
1
1
7c791d4a97685783dc9f75de686e8146da1f7b24
Stefan Lankes
2022-11-29T22:48:42
Fix set_for_current_helper `core_affinity::set_for_current(CoreId)` is not working on non-general-purpose OS due to missing return value
diff --git a/src/lib.rs b/src/lib.rs index ffec7b1..8703cd8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -415,7 +415,8 @@ fn get_core_ids_helper() -> Option<Vec<CoreId>> { #[cfg(not(any(target_os = "linux", target_os = "android", target_os = "windows", target_os = "macos")))] #[inline] -fn set_for_current_helper(cor...
1
2
1
87b3371bfd45bf5b913d988262886a887d467bee
Elzair
2022-11-29T00:54:16
Bumped version number to fix bug on OSX
diff --git a/Cargo.toml b/Cargo.toml index 99f4828..faa00a9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "core_affinity" -version = "0.7.4" +version = "0.7.5" authors = ["Philip Woods <elzairthesorcerer@gmail.com>"] description = "Manages CPU affinities" readme = "README.md"
1
1
1
19c66423031e3eb6437b83b280c7098ed666ddc0
Elzair
2022-11-24T23:08:30
Bumped version number
diff --git a/Cargo.toml b/Cargo.toml index 44c890c..99f4828 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "core_affinity" -version = "0.7.2" +version = "0.7.4" authors = ["Philip Woods <elzairthesorcerer@gmail.com>"] description = "Manages CPU affinities" readme = "README.md"
1
1
1
7503ef474eee85d44c1aad812a8abc47f0789883
Elzair
2022-11-24T23:07:14
Fixed Windows issue
diff --git a/Cargo.toml b/Cargo.toml index dad43d7..44c890c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,5 +18,4 @@ num_cpus = "^1.14.0" libc = "^0.2.30" [target.'cfg(target_os = "windows")'.dependencies] -winapi = "^0.3.9" -kernel32-sys = "^0.2.2" +winapi = { version = "^0.3.9", features = ["processthreadsapi",...
2
6
14
fd075a63096fe429b10cc502c6520666acd34ab5
N. Siplis
2022-11-24T21:50:21
Fix set_for_current_helper in macOS.
diff --git a/src/lib.rs b/src/lib.rs index 7b0ec36..74a4afa 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -320,7 +320,7 @@ fn get_core_ids_helper() -> Option<Vec<CoreId>> { #[cfg(target_os = "macos")] #[inline] fn set_for_current_helper(core_id: CoreId) -> bool { - macos::set_for_current(core_id); + macos::set_f...
1
1
1
77c8a793b13248c5de818187ca15ce5d78fc9083
Elzair
2022-11-20T16:02:40
core_affinity::set_for_current() returns bool to check if operation failed
diff --git a/Cargo.toml b/Cargo.toml index 5e1df79..7299195 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "core_affinity" -version = "0.6.1" +version = "0.7.0" authors = ["Philip Woods <elzairthesorcerer@gmail.com>"] description = "Manages CPU affinities" readme = "README.md" diff --git...
2
34
28
75c7bdae0d1ad6f93c678a360c45b8c77f0a2697
Elzair
2022-11-20T15:31:15
Added PartialEq, and Eq for CoreId
diff --git a/Cargo.toml b/Cargo.toml index 50a2622..5e1df79 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "core_affinity" -version = "0.6.0" +version = "0.6.1" authors = ["Philip Woods <elzairthesorcerer@gmail.com>"] description = "Manages CPU affinities" readme = "README.md" diff --git...
2
3
3
8c95b051add9461db38dee2082d5af17b4c1bc0d
Elzair
2022-11-20T15:13:49
Bumped dependencies and version number
diff --git a/Cargo.toml b/Cargo.toml index 1a1b117..50a2622 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "core_affinity" -version = "0.5.10" +version = "0.6.0" authors = ["Philip Woods <elzairthesorcerer@gmail.com>"] description = "Manages CPU affinities" readme = "README.md" @@ -12,11...
1
3
3
6648a7a44efd5c231f2101a715c69bf56467f0c5
s1341
2021-04-28T15:37:05
Fix missing android cfg attributes
diff --git a/Cargo.toml b/Cargo.toml index 644066d..1a1b117 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,7 +14,7 @@ categories = ["os"] [dependencies] num_cpus = "^1.6.2" -[target.'cfg(any(target_os = "linux", target_os = "macos"))'.dependencies] +[target.'cfg(any(target_os = "android", target_os = "linux", targ...
2
30
30
bfa80367813afcb440be3f0e3616a633facd8160
Philip Woods
2019-12-20T00:48:21
Bumped version number
diff --git a/Cargo.toml b/Cargo.toml index 64a6288..644066d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "core_affinity" -version = "0.5.9" +version = "0.5.10" authors = ["Philip Woods <elzairthesorcerer@gmail.com>"] description = "Manages CPU affinities" readme = "README.md"
1
1
1