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
1ab0962f107b842ec43223c66ef80450e5bbdb9b
gnzlbg
2018-02-26T15:16:17
add clock_priv.h
diff --git a/mach-test/build.rs b/mach-test/build.rs index ddc88f1..94ab105 100644 --- a/mach-test/build.rs +++ b/mach-test/build.rs @@ -41,6 +41,7 @@ fn main() { // Include the header files where the C APIs are defined cfg.header("mach/mach.h") .header("mach/clock.h") + .header("mach/clock_pr...
11
112
102
e03b4f6bba42d72149de80c361e6128a981a925d
gnzlbg
2018-02-26T15:07:08
complete clock_types and clock
diff --git a/mach-test/build.rs b/mach-test/build.rs index 99683f7..ddc88f1 100644 --- a/mach-test/build.rs +++ b/mach-test/build.rs @@ -40,6 +40,7 @@ fn main() { // Include the header files where the C APIs are defined cfg.header("mach/mach.h") + .header("mach/clock.h") .header("mach/clock_...
5
32
0
f096cace9c4c9897d341e98e4e1686b6ec3970a9
gnzlbg
2018-02-26T14:56:51
complete clock_types.h
diff --git a/mach-test/build.rs b/mach-test/build.rs index 9594981..99683f7 100644 --- a/mach-test/build.rs +++ b/mach-test/build.rs @@ -213,8 +213,6 @@ fn main() { }); cfg.type_name(|ty, is_struct| match ty { - // struct foo in Rust should translate to foo_ in C: - "mach_timespec" => format!(...
3
55
5
3554c8ca8c7bc891f36f82998ce9e3fa5103bb03
gnzlbg
2018-02-26T14:32:42
update bootstrap
diff --git a/mach-test/Cargo.toml b/mach-test/Cargo.toml index 15957ad..6deeda4 100644 --- a/mach-test/Cargo.toml +++ b/mach-test/Cargo.toml @@ -9,7 +9,8 @@ mach = { path = ".." } libc = "0.2" [build-dependencies] -ctest = { git = "https://github.com/alexcrichton/ctest" } +#ctest = { git = "https://github.com/alexc...
3
70
4
bd55f2dd91c87b7df48acc469f8e782a06739405
gnzlbg
2018-02-26T11:56:39
use correct TASK_BASIC_INFO value on x86
diff --git a/src/task_info.rs b/src/task_info.rs index cfcb310..f68d84b 100644 --- a/src/task_info.rs +++ b/src/task_info.rs @@ -5,7 +5,10 @@ pub const TASK_INFO_MAX: ::libc::c_uint = 1024; pub const TASK_BASIC_INFO_32: ::libc::c_uint = 4; pub const TASK_BASIC2_INFO_32: ::libc::c_uint = 6; pub const TASK_BASIC_INFO_...
1
3
0
4491d4914a16695312a0be35f80d0c3e1ac6196e
gnzlbg
2018-02-26T11:37:09
skip VM_REGION_EXTENDED_INFO in Xcode < 6.4, fix its value
diff --git a/mach-test/build.rs b/mach-test/build.rs index 397f75f..b9de0ce 100644 --- a/mach-test/build.rs +++ b/mach-test/build.rs @@ -129,14 +129,10 @@ fn main() { cfg.skip_const(move |s| { match s { - // FIXME: wrong value: byte 1: rust: 7 (0x7) != c 0 (0x0) - "VM_VOLATILE_GROU...
3
5
9
8c4524687bb1b6399a017ef36aacc3756a495d82
gnzlbg
2018-02-26T11:30:05
re-make mach_task_self unsafe
diff --git a/src/traps.rs b/src/traps.rs index 033dad1..623ddf9 100644 --- a/src/traps.rs +++ b/src/traps.rs @@ -10,11 +10,11 @@ extern "C" { tn: *mut mach_port_name_t) -> kern_return_t; } -pub fn mach_task_self() -> mach_port_t { - unsafe { mach_task_self_ } +pub unsafe fn mach_task_self...
1
3
3
963b79b3655e627037ee3d8e7bde6520f03b333e
gnzlbg
2018-02-26T11:27:32
remove ws
diff --git a/src/traps.rs b/src/traps.rs index 026335d..033dad1 100644 --- a/src/traps.rs +++ b/src/traps.rs @@ -18,7 +18,6 @@ pub fn current_task() -> mach_port_t { mach_task_self() } - #[cfg(test)] mod tests { use traps::*;
1
0
1
ffa6c8df7696c1abbd03a8006f6d6476c70d9180
gnzlbg
2018-02-26T11:26:36
fix signatures of mach_make_memory_entry, fix mach_task_self
diff --git a/mach-test/build.rs b/mach-test/build.rs index 56a055b..397f75f 100644 --- a/mach-test/build.rs +++ b/mach-test/build.rs @@ -48,6 +48,7 @@ fn main() { .header("mach/memory_object_types.h") .header("mach/message.h") .header("mach/port.h") + .header("mach/mach_init.h") ...
3
19
25
03f350e63ae323c8ab0cee110ee1b179c3106161
gnzlbg
2018-02-26T11:05:24
fix mach_vm_write signature
diff --git a/mach-test/build.rs b/mach-test/build.rs index db98618..56a055b 100644 --- a/mach-test/build.rs +++ b/mach-test/build.rs @@ -125,7 +125,7 @@ fn main() { // 'int (unsigned int, unsigned long long, unsigned long, unsigned int)' // vs // 'void (unsigned int, unsigned lon...
2
3
3
7940837a73b9bc418b2f583b46ebc0aef63e9207
gnzlbg
2018-02-26T10:59:37
white-list type-defs to structs that are not packed(4)
diff --git a/mach-test/build.rs b/mach-test/build.rs index 855f2d8..db98618 100644 --- a/mach-test/build.rs +++ b/mach-test/build.rs @@ -105,33 +105,12 @@ fn main() { // SDKs/MacOSX.sdk/System/Library/Frameworks/Kernel.framework/Versions/A/Headers/mach "ipc_port_t" | - // FIXME (x...
1
3
24
4d6d27e9e93f590a2d26e68e0d5cee02078d780b
gnzlbg
2018-02-26T10:55:36
remove duplicated task_name_t
diff --git a/mach-test/build.rs b/mach-test/build.rs index dbea13f..855f2d8 100644 --- a/mach-test/build.rs +++ b/mach-test/build.rs @@ -105,12 +105,6 @@ fn main() { // SDKs/MacOSX.sdk/System/Library/Frameworks/Kernel.framework/Versions/A/Headers/mach "ipc_port_t" | - // FIXME: ty...
2
1
9
2d85ccb85019a45913989734473eeee01b2facf9
gnzlbg
2018-02-26T10:52:55
user_addr_t is always a u64
diff --git a/mach-test/build.rs b/mach-test/build.rs index fcbfa13..dbea13f 100644 --- a/mach-test/build.rs +++ b/mach-test/build.rs @@ -108,9 +108,6 @@ fn main() { // FIXME: type duplicated multiple times inside the library. "task_name_t" | - // FIXME (i686): size: rust: 4 (0x4) ...
2
1
4
39f2fc1d4340e030e25615ee62d95e7bafbea68e
gnzlbg
2018-02-26T10:43:19
make pmap_statistics_t deprecated
diff --git a/mach-test/build.rs b/mach-test/build.rs index a889d88..fcbfa13 100644 --- a/mach-test/build.rs +++ b/mach-test/build.rs @@ -108,9 +108,6 @@ fn main() { // FIXME: type duplicated multiple times inside the library. "task_name_t" | - // FIXME: removed since MacOSX 10.3.9...
2
2
3
76fecc132459b96dce692e1f1b9b6cafaeee3bd4
gnzlbg
2018-02-26T10:35:30
add missing field to vm_region_extended_info
diff --git a/mach-test/build.rs b/mach-test/build.rs index 51c0f43..a889d88 100644 --- a/mach-test/build.rs +++ b/mach-test/build.rs @@ -92,12 +92,7 @@ fn main() { "vm_region_basic_info_64" | "vm_region_submap_info_64" | "vm_region_submap_short_info_64" | - - // FIXME (...
2
4
6
e65febda922b5ea9caa4a2f09bf518d5b8b50172
gnzlbg
2018-02-26T10:32:30
add missing field to vm_region_submap_info_64
diff --git a/mach-test/build.rs b/mach-test/build.rs index d747e68..51c0f43 100644 --- a/mach-test/build.rs +++ b/mach-test/build.rs @@ -89,22 +89,8 @@ fn main() { // FIXME: should use repr(packed(4)) "task_dyld_info" | - - // FIXME (x86_64): wrong type offsets, field types, etc. ...
2
7
14
f116a5800ec89dd9ae5fc8a363dfd47bf1182bf3
gnzlbg
2018-02-26T10:19:51
fix size and alignment of vm_statistics
diff --git a/mach-test/build.rs b/mach-test/build.rs index 75a6847..d747e68 100644 --- a/mach-test/build.rs +++ b/mach-test/build.rs @@ -87,10 +87,6 @@ fn main() { // SDKs/MacOSX.sdk/System/Library/Frameworks/Kernel.framework/Versions/A/Headers/mach "ipc_port" | - // FIXME: multip...
2
16
17
758621efbeb62d8505dee06cd67de39df92282fd
gnzlbg
2018-02-26T10:11:50
make vm_statistics repr(C)
diff --git a/mach-test/build.rs b/mach-test/build.rs index 570d0bc..75a6847 100644 --- a/mach-test/build.rs +++ b/mach-test/build.rs @@ -89,7 +89,7 @@ fn main() { // FIXME: multiple type mismatches in struct fields // FIXME: not #[repr(C)] - "vm_statistics" | + //"vm_st...
2
2
1
6a446bf50fb1008283b677e99132d666f9b36653
gnzlbg
2018-02-26T10:10:55
map task_dyld_info to struct {}
diff --git a/mach-test/build.rs b/mach-test/build.rs index a0cde59..570d0bc 100644 --- a/mach-test/build.rs +++ b/mach-test/build.rs @@ -91,8 +91,7 @@ fn main() { // FIXME: not #[repr(C)] "vm_statistics" | - // FIXME: only exposed in - // SDKs/MacOSX.sdk/System/Library/...
2
6
3
1a1e500b3861f5e57946b3c95da26f855dcfb576
gnzlbg
2018-02-26T09:52:04
make pmap_statistics repr(C) and deprecated
diff --git a/mach-test/build.rs b/mach-test/build.rs index 1a9ff1f..a0cde59 100644 --- a/mach-test/build.rs +++ b/mach-test/build.rs @@ -91,10 +91,6 @@ fn main() { // FIXME: not #[repr(C)] "vm_statistics" | - // FIXME: removed since MacOSX 10.3.9: - // FIXME: not #[repr...
2
3
4
e943da40f4a2a3694d4e966f1ee339ec62ee4197
gnzlbg
2018-02-26T09:47:03
add deprecated crate feature and enable it by default
diff --git a/Cargo.toml b/Cargo.toml index d70f68c..1796df5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,5 +16,7 @@ version = "0.2" default-features = false [features] -default = [ "use_std" ] +default = [ "use_std", "deprecated" ] use_std = [ "libc/use_std" ] +# Enables deprecated and removed APIs. +deprecated...
1
3
1
678b0de90bf81a90df18a699ab330c9ac5b691c0
gnzlbg
2018-02-26T09:45:38
make task_dyld_info repr(C)
diff --git a/mach-test/build.rs b/mach-test/build.rs index 856355e..1a9ff1f 100644 --- a/mach-test/build.rs +++ b/mach-test/build.rs @@ -49,16 +49,16 @@ fn main() { .header("mach/message.h") .header("mach/port.h") .header("mach/i386/_structs.h") - // .header("mach/task.defs") - .header...
2
7
5
431ebaab21ab49b1409dfc62cc61aa6022a1a15b
gnzlbg
2018-02-06T18:40:33
readd mach_task_send sanity test and add MACH_PORT_DEAD
diff --git a/src/port.rs b/src/port.rs index 07f63c5..9a098c2 100644 --- a/src/port.rs +++ b/src/port.rs @@ -12,6 +12,7 @@ pub type ipc_port_t = *mut ipc_port; pub type mach_port_t = ::libc::c_uint; pub const MACH_PORT_NULL: mach_port_t = 0; +pub const MACH_PORT_DEAD: mach_port_t = !0; pub type mach_port_right_t...
2
14
0
892f38c458ef74923f2b7a45ed468199eaf9ace4
gnzlbg
2018-02-06T17:42:31
enable no_std unless feature use_std is enabled
diff --git a/src/lib.rs b/src/lib.rs index b6e281c..ef5489b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,6 +1,11 @@ #![allow(non_camel_case_types)] #![allow(non_upper_case_globals)] +#![cfg_attr(not(feature = "use_std"), no_std)] + +#[cfg(feature = "use_std")] +extern crate core; + extern crate libc; pub mod ...
9
97
91
920db86334343174baf5fb4616680e5ecde27172
gnzlbg
2018-02-06T17:20:45
re-export libc's use_std feature
diff --git a/Cargo.toml b/Cargo.toml index f876c33..d70f68c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,5 +11,10 @@ repository = "https://github.com/fitzgen/mach" readme = "README.md" -[dependencies] -libc = "0.2" +[dependencies.libc] +version = "0.2" +default-features = false + +[features] +default = [ "use_s...
1
7
2
5f0c335d72751ccfc65be403f944fb6119687745
gnzlbg
2018-02-05T07:27:25
add source of ios script
diff --git a/ci/deploy_and_run_on_ios_simulator.rs b/ci/deploy_and_run_on_ios_simulator.rs index b146150..c0bc21d 100644 --- a/ci/deploy_and_run_on_ios_simulator.rs +++ b/ci/deploy_and_run_on_ios_simulator.rs @@ -15,6 +15,10 @@ // To do this through Cargo instead, use Dinghy // (https://github.com/snipsco/dinghy): ca...
1
4
0
5c06488ca6aa471ba7fc18b87059c9678010a336
gnzlbg
2018-02-04T08:42:11
update ctest to upstream master
diff --git a/mach-test/Cargo.toml b/mach-test/Cargo.toml index f792258..542df51 100644 --- a/mach-test/Cargo.toml +++ b/mach-test/Cargo.toml @@ -9,4 +9,4 @@ mach = { path = "../" } libc = "0.2" [build-dependencies] -ctest = { git = "https://github.com/gnzlbg/ctest", branch = "fix_bug" } +ctest = { git = "https://gi...
1
1
1
76c118f075521bdc3b5ebcb23011093b597e57b8
gnzlbg
2018-02-02T16:10:49
add constant VM_FLAGS_OVERWRITE
diff --git a/src/vm_statistics.rs b/src/vm_statistics.rs index ff7ba13..6471317 100644 --- a/src/vm_statistics.rs +++ b/src/vm_statistics.rs @@ -36,6 +36,7 @@ pub const VM_MEMORY_APPLICATION_SPECIFIC_16: ::libc::c_uint = 255; pub const VM_FLAGS_FIXED: ::libc::c_int = 0x0; pub const VM_FLAGS_ANYWHERE: ::libc::c_i...
1
1
0
3a7bec21dc401801761356fe43fe27ef70c0e7ab
Nick Fitzgerald
2018-01-26T16:46:59
Bump to 0.1.2
diff --git a/Cargo.toml b/Cargo.toml index 8b7c4e3..f876c33 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "mach" -version = "0.1.1" +version = "0.1.2" authors = ["Nick Fitzgerald <fitzgen@gmail.com>", "David Cuddeback <david.cuddeback@gmail.com>"] license = "BSD-2-Clause"
1
1
1
accdcb512d696b7f2e11091062ae1514b91f4c05
Julia Evans
2018-01-26T04:18:42
Add task_info definition to task module
diff --git a/src/lib.rs b/src/lib.rs index 05dc43f..b6e281c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -8,11 +8,13 @@ pub mod bootstrap; pub mod clock_types; pub mod kern_return; pub mod mach_port; +pub mod mach_types; pub mod memory_object_types; pub mod message; pub mod port; pub mod structs; pub mod task; +...
4
56
0
0b63cf2caa89f212f2a4dff5eb8e16d686a127bd
Nicolas Dusart
2017-12-08T19:04:44
Bump version to 0.1.1
diff --git a/Cargo.toml b/Cargo.toml index 8f997de..8b7c4e3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "mach" -version = "0.1.0" +version = "0.1.1" authors = ["Nick Fitzgerald <fitzgen@gmail.com>", "David Cuddeback <david.cuddeback@gmail.com>"] license = "BSD-2-Clause"
1
1
1
446d8b1949e4790db4667e71c1e568dec15cdc9c
Nicolas Dusart
2017-12-05T09:37:30
add missing vm_address_t type
diff --git a/src/vm_types.rs b/src/vm_types.rs index d446739..9a8a121 100644 --- a/src/vm_types.rs +++ b/src/vm_types.rs @@ -14,5 +14,6 @@ pub type vm_map_size_t = u64; pub type vm_map_t = ::port::mach_port_t; pub type vm_offset_t = ::libc::uintptr_t; pub type vm_size_t = ::libc::uintptr_t...
1
1
0
64ed18c7c6ad503d06dd5825fbc473104fb1359a
Ted Mielczarek
2017-03-02T17:31:29
bump version to 0.1.0
diff --git a/Cargo.toml b/Cargo.toml index fc5ad5e..8f997de 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "mach" -version = "0.0.6" +version = "0.1.0" authors = ["Nick Fitzgerald <fitzgen@gmail.com>", "David Cuddeback <david.cuddeback@gmail.com>"] license = "BSD-2-Clause"
1
1
1
c551b5675475addff33d7952db2a6d28928c6899
Ted Mielczarek
2017-03-02T17:28:03
Add a binding for bootstrap_look_up
diff --git a/src/bootstrap.rs b/src/bootstrap.rs new file mode 100644 index 0000000..2866436 --- /dev/null +++ b/src/bootstrap.rs @@ -0,0 +1,14 @@ +//! This module corresponds to `bootstrap.h` + +use kern_return::{kern_return_t}; +use libc; +use port::{mach_port_t}; + +pub const BOOTSTRAP_MAX_NAME_LEN: libc::c_uint = 1...
2
15
0
18b29d825bd39218503df05f875916502711f6d4
NanoTech
2017-01-26T03:59:06
Add more definitions from mach/mach_port.h
diff --git a/src/mach_port.rs b/src/mach_port.rs index 221d325..7a2fe6a 100644 --- a/src/mach_port.rs +++ b/src/mach_port.rs @@ -1,10 +1,22 @@ //! This module corresponds to `mach/mach_port.h` use kern_return::{kern_return_t}; -use port::{mach_port_name_t}; +use message::{mach_msg_type_name_t}; +use port::{mach_por...
1
13
1
6e2e4a6e8bdbc135421d243895e6845146756c4e
NanoTech
2017-01-26T03:58:49
Add more definitions from mach/message.h
diff --git a/src/message.rs b/src/message.rs index d09c7d6..d3b6dbf 100644 --- a/src/message.rs +++ b/src/message.rs @@ -1,5 +1,248 @@ //! This module corresponds to `mach/message.h`. -use vm_types::{natural_t}; +use std::os::raw::{c_uint, c_void}; -pub type mach_msg_type_number_t = natural_t; \ No newline at end ...
1
245
2
1e4f3bbeff99de982d52a74b71c7546de06914a3
NanoTech
2017-01-26T03:58:02
Add task_get_special_port and related constants
diff --git a/src/task.rs b/src/task.rs index 79df851..b460d98 100644 --- a/src/task.rs +++ b/src/task.rs @@ -2,12 +2,23 @@ use kern_return::{kern_return_t}; use message::{mach_msg_type_number_t}; +use port::{mach_port_t}; use types::{task_t, thread_act_array_t}; +pub type task_special_port_t = ::std::os::raw::c_...
1
12
1
897ae6f7e94d3a0bad879514d1a2656df1f373ac
NanoTech
2017-01-26T03:57:26
Add more definitions from mach/vm_map.h
diff --git a/src/vm.rs b/src/vm.rs index acde8a4..f1275e9 100644 --- a/src/vm.rs +++ b/src/vm.rs @@ -102,11 +102,10 @@ extern "C" { out: *mut vm_prot_t, inheritance: vm_inherit_t) -> kern_return_t; - // TODO: Implement 'vm_page.h' (contains definition for vm_map_...
2
12
5
0868772384de3a16665b9dba3ab0fe67a591cf7c
NanoTech
2017-01-26T03:56:15
Add port right constants
diff --git a/src/port.rs b/src/port.rs index 7805c9b..07f63c5 100644 --- a/src/port.rs +++ b/src/port.rs @@ -12,3 +12,13 @@ pub type ipc_port_t = *mut ipc_port; pub type mach_port_t = ::libc::c_uint; pub const MACH_PORT_NULL: mach_port_t = 0; + +pub type mach_port_right_t = natural_t; + +pub const MACH_PORT_RIGHT_S...
1
10
0
9ab8d822d55186fb5166d336ca4baa69076e9a66
Tae-il Lim
2016-11-07T08:14:57
Add some definitions from mach/mach_port.h
diff --git a/src/lib.rs b/src/lib.rs index 5202265..430e063 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -6,6 +6,7 @@ extern crate libc; pub mod boolean; pub mod clock_types; pub mod kern_return; +pub mod mach_port; pub mod memory_object_types; pub mod message; pub mod port; diff --git a/src/mach_port.rs b/src/mac...
2
11
0
044cdc8134f458618c2245f61aede7759f96043b
Elliott Linder
2016-10-18T09:54:12
Add definitions from mach/vm_statistics.h
diff --git a/src/lib.rs b/src/lib.rs index 9280a6b..5202265 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -23,5 +23,6 @@ pub mod vm_page_size; pub mod vm_prot; pub mod vm_purgable; pub mod vm_region; +pub mod vm_statistics; pub mod vm_sync; pub mod vm_types; diff --git a/src/vm.rs b/src/vm.rs index c0b2305..acde8a4 ...
3
61
1
59cdc8b2246a93dcf9b2deaed6f2b926ff36ced2
Elliott Linder
2016-10-18T09:32:56
Add definitions from mach/vm_page_size.h
diff --git a/src/lib.rs b/src/lib.rs index af0268b..9280a6b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -19,6 +19,7 @@ pub mod vm; pub mod vm_attributes; pub mod vm_behavior; pub mod vm_inherit; +pub mod vm_page_size; pub mod vm_prot; pub mod vm_purgable; pub mod vm_region; diff --git a/src/vm_page_size.rs b/src/...
2
28
0
7f7db10439507dcf4ae17fefcb4de62ec18860b5
Nick Fitzgerald
2016-10-17T15:42:29
Bump to 0.0.6
diff --git a/Cargo.toml b/Cargo.toml index b799e2b..fc5ad5e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "mach" -version = "0.0.5" +version = "0.0.6" authors = ["Nick Fitzgerald <fitzgen@gmail.com>", "David Cuddeback <david.cuddeback@gmail.com>"] license = "BSD-2-Clause"
1
1
1
64b998f5fb577d672460d037d2bd3d61ad804c5d
Elliott Linder
2016-10-17T11:16:13
Add definitions from mach/mach_vm.defs
diff --git a/src/lib.rs b/src/lib.rs index 51bf61a..af0268b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -15,6 +15,7 @@ pub mod thread_act; pub mod thread_status; pub mod traps; pub mod types; +pub mod vm; pub mod vm_attributes; pub mod vm_behavior; pub mod vm_inherit; diff --git a/src/vm.rs b/src/vm.rs new file m...
2
185
0
0446bef05dac56da2ab30ab307c85a2dd09f9023
Elliott Linder
2016-10-17T10:35:36
Add definitions from mach/vm_purgable.h
diff --git a/src/lib.rs b/src/lib.rs index 5a2f5c2..51bf61a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -19,6 +19,7 @@ pub mod vm_attributes; pub mod vm_behavior; pub mod vm_inherit; pub mod vm_prot; +pub mod vm_purgable; pub mod vm_region; pub mod vm_sync; pub mod vm_types; diff --git a/src/vm_purgable.rs b/src/...
2
43
0
2a98f715d10e0ae75e9164309e3de360a2aae783
Elliott Linder
2016-10-17T10:20:15
Add additional definitions to vm_types
diff --git a/src/vm_types.rs b/src/vm_types.rs index 2269d78..9f37cec 100644 --- a/src/vm_types.rs +++ b/src/vm_types.rs @@ -1,6 +1,7 @@ //! This module roughly corresponds to `mach/i386/vm_types.h`. pub type natural_t = ::libc::c_uint; +pub type integer_t = ::libc::c_int; pub type user_addr_t = usize; @@ -10,...
1
3
0
4792643700cfba934909b410786ca70088894752
Elliott Linder
2016-10-17T10:19:30
Add definitions from mach/vm_attributes.h
diff --git a/src/lib.rs b/src/lib.rs index 5f3a78e..5a2f5c2 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -15,6 +15,7 @@ pub mod thread_act; pub mod thread_status; pub mod traps; pub mod types; +pub mod vm_attributes; pub mod vm_behavior; pub mod vm_inherit; pub mod vm_prot; diff --git a/src/vm_attributes.rs b/src/...
2
19
0
63ab7020d077a61a827a7848ce9aac0f6ede875e
Elliott Linder
2016-10-17T10:16:49
Add definitions from mach/vm_sync.h
diff --git a/src/lib.rs b/src/lib.rs index 54b69c4..5f3a78e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -19,4 +19,5 @@ pub mod vm_behavior; pub mod vm_inherit; pub mod vm_prot; pub mod vm_region; +pub mod vm_sync; pub mod vm_types; diff --git a/src/vm_sync.rs b/src/vm_sync.rs new file mode 100644 index 0000000..e6d...
2
12
0
114ba97e02e3a3de7702cb070690856c3ae769cd
Elliott Linder
2016-10-16T23:46:28
Add definitions from mach/vm_region.h
diff --git a/src/lib.rs b/src/lib.rs index 5c8dc0f..54b69c4 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -18,4 +18,5 @@ pub mod types; pub mod vm_behavior; pub mod vm_inherit; pub mod vm_prot; +pub mod vm_region; pub mod vm_types; diff --git a/src/vm_region.rs b/src/vm_region.rs new file mode 100644 index 0000000..d...
2
238
0
0de1d8b127822994eaf956eef3b31494a98b50e5
Elliott Linder
2016-10-16T19:55:27
Add some definitions from mach/memory_object_types.h
diff --git a/src/lib.rs b/src/lib.rs index 977a81c..5c8dc0f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -6,6 +6,7 @@ extern crate libc; pub mod boolean; pub mod clock_types; pub mod kern_return; +pub mod memory_object_types; pub mod message; pub mod port; pub mod structs; diff --git a/src/memory_object_types.rs b...
2
10
0
8e5148165de22c71e8b0abdc3cda807ef1a6ada8
Elliott Linder
2016-10-16T16:54:59
Add definitions from mach/vm_behavior.h
diff --git a/src/lib.rs b/src/lib.rs index 9157a68..977a81c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -14,6 +14,7 @@ pub mod thread_act; pub mod thread_status; pub mod traps; pub mod types; +pub mod vm_behavior; pub mod vm_inherit; pub mod vm_prot; pub mod vm_types; diff --git a/src/vm_behavior.rs b/src/vm_beha...
2
16
0
2f0a2214b7c6ea229c469d4ab09ddc164dc33e86
Elliott Linder
2016-10-16T16:51:45
Add definitions from mach/vm_inherit.h
diff --git a/src/lib.rs b/src/lib.rs index d67b762..9157a68 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -14,5 +14,6 @@ pub mod thread_act; pub mod thread_status; pub mod traps; pub mod types; +pub mod vm_inherit; pub mod vm_prot; pub mod vm_types; diff --git a/src/vm_inherit.rs b/src/vm_inherit.rs new file mode 10...
2
11
0
40458eb4229fdc505d539dc135edff248ba0a263
Elliott Linder
2016-10-16T16:46:31
Add definitions from mach/vm_prot.h
diff --git a/src/lib.rs b/src/lib.rs index 1495945..d67b762 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -14,4 +14,5 @@ pub mod thread_act; pub mod thread_status; pub mod traps; pub mod types; +pub mod vm_prot; pub mod vm_types; diff --git a/src/vm_prot.rs b/src/vm_prot.rs new file mode 100644 index 0000000..5a9ab25...
2
15
0
434f1e5149247350f1f99b066326658d63070a9e
Dave Hylands
2016-05-02T19:39:16
Updated to work with the latest nightly. I also built with stable to verify.
diff --git a/Cargo.toml b/Cargo.toml index 0d19442..b799e2b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "mach" -version = "0.0.4" +version = "0.0.5" authors = ["Nick Fitzgerald <fitzgen@gmail.com>", "David Cuddeback <david.cuddeback@gmail.com>"] license = "BSD-2-Clause" diff --git ...
3
3
5
272d98facb054ab73e05de6b842fdb22aa51d7b1
David Cuddeback
2015-11-05T03:23:56
bumps version to 0.0.4
diff --git a/Cargo.toml b/Cargo.toml index 2879b0a..0d19442 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "mach" -version = "0.0.2" +version = "0.0.4" authors = ["Nick Fitzgerald <fitzgen@gmail.com>", "David Cuddeback <david.cuddeback@gmail.com>"] license = "BSD-2-Clause"
1
1
1
d507eaa5d762daddbc1e29a1276bf794073817f2
David Cuddeback
2015-11-04T15:52:54
upgrades libc to v0.2
diff --git a/Cargo.toml b/Cargo.toml index 1f79ff0..2879b0a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,4 +12,4 @@ repository = "https://github.com/fitzgen/mach" readme = "README.md" [dependencies] -libc = "0.1.1" \ No newline at end of file +libc = "0.2" diff --git a/examples/dump_process_registers.rs b/exampl...
11
20
40
de075ae6176e3bea43bbfe7d6690e2c5f1e8f41e
David Cuddeback
2015-10-18T23:41:57
removes unnecessary mutability
diff --git a/examples/dump_process_registers.rs b/examples/dump_process_registers.rs index f412579..851c944 100644 --- a/examples/dump_process_registers.rs +++ b/examples/dump_process_registers.rs @@ -23,7 +23,7 @@ use mach::types::{task_t, thread_act_array_t}; use std::io::prelude::*; fn read_int() -> Result<c95::...
1
1
1
4aa9e158ea6147dac683e33ec95a0fcbd15a63bf
David Cuddeback
2015-10-18T23:40:49
removes empty test
diff --git a/src/lib.rs b/src/lib.rs index 2350b1a..1495945 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -15,7 +15,3 @@ pub mod thread_status; pub mod traps; pub mod types; pub mod vm_types; - -#[test] -fn it_works() { -}
1
0
4
63e2f01bbe2c9358e71d44962fe847a42d831718
Nick Fitzgerald
2015-06-05T23:58:08
Capitalize 'Rust' in the description
diff --git a/Cargo.toml b/Cargo.toml index a00849d..1f79ff0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,7 +6,7 @@ authors = ["Nick Fitzgerald <fitzgen@gmail.com>", "David Cuddeback <david.cuddeb license = "BSD-2-Clause" -description = "A rust interface to the Mach 3.0 kernel that underlies OSX." +description = ...
1
1
1
dd3ff005e1eb79de4fe439ec01a24f2d1191c3df
Nick Fitzgerald
2015-06-05T23:57:03
Add David Cuddeback as an author
diff --git a/Cargo.toml b/Cargo.toml index 53f7790..a00849d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ name = "mach" version = "0.0.2" -authors = ["Nick Fitzgerald <fitzgen@gmail.com>"] +authors = ["Nick Fitzgerald <fitzgen@gmail.com>", "David Cuddeback <david.cuddeback@gmail.com>"] license = "BSD-...
1
1
1
33f0b43c8305218110643ad61299ed76cc51f8c2
David Cuddeback
2015-06-04T16:06:04
[closes #2] adds mach types
diff --git a/src/port.rs b/src/port.rs index 7de5edd..863b90d 100644 --- a/src/port.rs +++ b/src/port.rs @@ -1,5 +1,7 @@ //! This module corresponds to `mach/port.h` +use libc::types::os::arch::c95; + use vm_types::{natural_t}; #[repr(C)] @@ -11,5 +13,6 @@ struct ipc_port; #[repr(C)] pub type ipc_port_t = *mut...
3
89
10
e97f3c693d99f7e4c4daea9585b472059fd69aa4
David Cuddeback
2015-06-04T15:50:43
adds vm types
diff --git a/src/vm_types.rs b/src/vm_types.rs index e07fc99..1fc29a7 100644 --- a/src/vm_types.rs +++ b/src/vm_types.rs @@ -4,4 +4,13 @@ use libc::types::os::arch::c95; pub type natural_t = c95::c_uint; -pub type user_addr_t = usize; \ No newline at end of file +pub type user_addr_t = usize; + +pub type mach_vm_a...
1
10
1
63734efa265271091b932548dff43605a033c3fb
David Cuddeback
2015-06-04T15:49:58
adds clock types
diff --git a/src/clock_types.rs b/src/clock_types.rs new file mode 100644 index 0000000..d5a6707 --- /dev/null +++ b/src/clock_types.rs @@ -0,0 +1,17 @@ +//! This module roughly corresponds to `mach/clock_types.h`. + +use libc::types::os::arch::c95; + +pub type alarm_type_t = c95::c_int; +pub type sleep_type_t = c95::c...
2
18
0
28bdb829ffa033dba4fe83bd3381e914f9c22071
David Cuddeback
2015-06-04T15:49:29
adds boolean_t definition
diff --git a/src/boolean.rs b/src/boolean.rs new file mode 100644 index 0000000..a0e0e6b --- /dev/null +++ b/src/boolean.rs @@ -0,0 +1,9 @@ +//! This module corresponds to `mach/i386/boolean.h`. + +use libc::types::os::arch::c95; + +#[cfg(target_arch = "x86_64")] +pub type boolean_t = c95::c_uint; + +#[cfg(not(target_a...
2
10
0
87117536247b10a6b5829f4106e52e6043b3455d
David Cuddeback
2015-06-04T15:48:29
change kern_return values to constants
diff --git a/src/kern_return.rs b/src/kern_return.rs index c12445b..dbefcf5 100644 --- a/src/kern_return.rs +++ b/src/kern_return.rs @@ -5,56 +5,56 @@ use libc::types::os::arch::c95; pub type kern_return_t = c95::c_int; -pub static KERN_SUCCESS : kern_return_t = 0; -pub static KERN_INVALID_ADDRESS : kern_return_t ...
1
53
53
2a4e41fd13ba041bf40bb84685ea3b1c88177407
David Cuddeback
2015-06-04T15:12:52
moves dump_process_registers to examples
diff --git a/src/bin/dump_process_registers.rs b/examples/dump_process_registers.rs similarity index 100% rename from src/bin/dump_process_registers.rs rename to examples/dump_process_registers.rs diff --git a/src/structs.rs b/src/structs.rs index 67db770..9f3b95f 100644 --- a/src/structs.rs +++ b/src/structs.rs @@ -8,...
2
0
1
68b060810eb38443b4a6809c6d35fc2a965d8455
David Cuddeback
2015-06-03T15:13:30
fixes compilation on Rust 1.0.0
diff --git a/src/bin/dump_process_registers.rs b/src/bin/dump_process_registers.rs index 70413e1..f412579 100644 --- a/src/bin/dump_process_registers.rs +++ b/src/bin/dump_process_registers.rs @@ -1,15 +1,10 @@ //! A script to read and dump to stdout the current register values of a //! process. -#![feature(collect...
2
14
11
beb41e61526409857f1888a6bc3b6776223bbb21
Nick Fitzgerald
2015-02-08T01:27:04
Bump version to 0.0.2
diff --git a/Cargo.toml b/Cargo.toml index 7a039e3..53f7790 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "mach" -version = "0.0.1" +version = "0.0.2" authors = ["Nick Fitzgerald <fitzgen@gmail.com>"] license = "BSD-2-Clause"
1
1
1
628d3199dc69357627f4e8791d14bc28aa903e8b
Nick Fitzgerald
2015-02-08T00:55:27
Woops, forgot to add new files
diff --git a/src/structs.rs b/src/structs.rs new file mode 100644 index 0000000..9ca1955 --- /dev/null +++ b/src/structs.rs @@ -0,0 +1,67 @@ +//! This module corresponds to `mach/_structs.h`. + +use std::mem; + +use libc::types::os::arch::c95; + +use message::{mach_msg_type_number_t}; + +#[repr(C)] +#[derive(Copy)] +#[...
3
106
0
a5398b0c947c2bbe7fdf1aad80edde434beb5d18
Nick Fitzgerald
2015-02-08T00:51:22
Add support for task_{resume,suspend}
diff --git a/src/bin/dump_process_registers.rs b/src/bin/dump_process_registers.rs index b056ea4..70413e1 100644 --- a/src/bin/dump_process_registers.rs +++ b/src/bin/dump_process_registers.rs @@ -1,12 +1,15 @@ //! A script to read and dump to stdout the current register values of a //! process. -#![allow(unstable)...
3
58
5
86c1549115120ac783a89e7ae59a22e9a49481a5
Nick Fitzgerald
2015-02-01T22:33:22
Add support for task_threads from mach/task.defs
diff --git a/src/bin/dump_process_registers.rs b/src/bin/dump_process_registers.rs index 1aa3df0..b056ea4 100644 --- a/src/bin/dump_process_registers.rs +++ b/src/bin/dump_process_registers.rs @@ -8,12 +8,16 @@ extern crate mach; use std::io; use std::mem; +use std::ptr; use libc::types::os::arch::c95; use ma...
5
58
6
15d8636e4b23562ee8679cfb23cceaef3578a07e
Nick Fitzgerald
2015-02-01T10:37:02
Fix typo
diff --git a/src/bin/dump_process_registers.rs b/src/bin/dump_process_registers.rs index d56cc50..1aa3df0 100644 --- a/src/bin/dump_process_registers.rs +++ b/src/bin/dump_process_registers.rs @@ -48,7 +48,7 @@ fn main() { println!("Did not succeed in getting task for pid {}", pid); println!("...
1
1
1
281612731c5294d8256855149f78c8c36c2f4dd0
Nick Fitzgerald
2015-02-01T10:35:10
Add support for task_for_pid from mach/mach_traps.h
diff --git a/Cargo.toml b/Cargo.toml index fd9773b..7a039e3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,4 +9,7 @@ license = "BSD-2-Clause" description = "A rust interface to the Mach 3.0 kernel that underlies OSX." repository = "https://github.com/fitzgen/mach" -readme = "README.md" \ No newline at end of file +...
7
148
3
3b469aed822a23bfc3ed1139c7491f1b79c3b46d
Nick Fitzgerald
2015-02-01T08:31:00
Add support for mach_task_self() from mach/mach_traps.h
diff --git a/src/lib.rs b/src/lib.rs index a93251b..5fa571b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,3 +1,8 @@ +#![allow(non_camel_case_types)] + +pub mod port; +pub mod traps; + #[test] fn it_works() { } diff --git a/src/port.rs b/src/port.rs new file mode 100644 index 0000000..da43666 --- /dev/null +++ b/src...
3
31
0
f51e8c8ba148c7ad68d6a2d47c6c42633c3c4993
Nick Fitzgerald
2015-02-01T02:40:14
Fix the license ID
diff --git a/Cargo.toml b/Cargo.toml index 7e10667..fd9773b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,7 @@ name = "mach" version = "0.0.1" authors = ["Nick Fitzgerald <fitzgen@gmail.com>"] -license = "BSD" +license = "BSD-2-Clause" description = "A rust interface to the Mach 3.0 kernel that underlies O...
1
1
1
6de1b9b91dff60e41b4ace30b98dfd70b3e4c37d
Matthias Bussonnier
2023-11-11T09:23:48
Fix #124 Record iteration when recording only zeros (#125) As pointed in the comment in the corresponding issues, we want to ensure we trigger the picker logic at least once to keep the invariant of the loop, that is to say that the picking logic has been executed at least once for last_picked_index, which is not t...
diff --git a/src/iterators/mod.rs b/src/iterators/mod.rs index 973d304..db20240 100644 --- a/src/iterators/mod.rs +++ b/src/iterators/mod.rs @@ -74,7 +74,7 @@ pub struct HistogramIterator<'a, T: 'a + Counter, P: PickyIterator<T>> { count_since_last_iteration: u64, count_at_index: T, current_index: usize,...
2
11
4
bdfad2431a51b04b7ba180ec14e901196e9c4a5e
Matthias Bussonnier
2023-08-25T18:57:52
Explain why more() returns always `false`. (#126)
diff --git a/src/iterators/recorded.rs b/src/iterators/recorded.rs index f7371c4..17ac532 100644 --- a/src/iterators/recorded.rs +++ b/src/iterators/recorded.rs @@ -24,6 +24,13 @@ impl<T: Counter> PickyIterator<T> for Iter { } fn more(&mut self, _: usize) -> bool { + // more() is really more_with_zer...
1
7
0
d4d61a46a55ccc030025192e4aace402385855aa
Arthur Silva
2022-09-18T08:53:10
Add a fast-path for adding/subtracting an empty histogram
diff --git a/src/lib.rs b/src/lib.rs index 640485e..e3a4e4b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -462,6 +462,11 @@ impl<T: Counter> Histogram<T> { pub fn add<B: Borrow<Histogram<T>>>(&mut self, source: B) -> Result<(), AdditionError> { let source = source.borrow(); + // If source is empty ...
1
10
0
857870f05440f16562947c46671d8f1e17a4d313
The 8472
2022-08-11T22:12:13
optimize quantile_below OLD: test quantiles_below ... bench: 3,618 ns/iter (+/- 54) NEW: test quantiles_below ... bench: 37 ns/iter (+/- 1)
diff --git a/src/lib.rs b/src/lib.rs index da79171..96eb9a7 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1378,9 +1378,27 @@ impl<T: Counter> Histogram<T> { let target_index = self.index_for_or_last(value); // TODO use RangeInclusive when it's stable to avoid checked_add - let total_to_current...
1
21
3
b77e78fa83ba4f61efb97d5506b9a5bff39b7ca7
The 8472
2022-08-11T21:43:32
add benchmark for quantile_below
diff --git a/benches/quantiles.rs b/benches/quantiles.rs new file mode 100644 index 0000000..e356818 --- /dev/null +++ b/benches/quantiles.rs @@ -0,0 +1,19 @@ +#![feature(test)] + +extern crate test; + +use hdrhistogram::*; +use test::{black_box, Bencher}; + +#[bench] +fn quantiles_below(b: &mut Bencher) { + let mut...
1
19
0
5854b2e63f2d68727156e45c6ad5b3194d92f404
Jon Gjengset
2022-03-20T16:46:15
Maybe fix interval logs on Windows (#108) Seems the checked-in test file has `\r\n` line endings on Windows, and since we consider the encoded histogram as being everything up until the `\n`, this makes the `\r` part of the encoded, which then makes it invalid base64!
diff --git a/src/serialization/interval_log/mod.rs b/src/serialization/interval_log/mod.rs index f25ec96..3f39e50 100644 --- a/src/serialization/interval_log/mod.rs +++ b/src/serialization/interval_log/mod.rs @@ -743,6 +743,8 @@ fn interval_hist(input: &[u8]) -> IResult<&[u8], LogEntry> { let (input, max) = double...
1
2
0
c2211137f48e93ba1a8c08f4d9d647bad48af7d0
Will Cassels
2022-02-12T20:11:02
Add an auto_resize accessor to Histogram (#106)
diff --git a/src/lib.rs b/src/lib.rs index 21238bc..da79171 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -344,6 +344,11 @@ impl<T: Counter> Histogram<T> { self.bucket_count } + /// Returns true if this histogram is currently able to auto-resize as new samples are recorded. + pub fn is_auto_resize(&...
2
14
0
e3a22ff561d02baed3ab3b7c323bf5476b24b782
Jon Gjengset
2022-01-30T00:55:15
Bump clap for example
diff --git a/Cargo.toml b/Cargo.toml index 6990655..f35788a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -37,7 +37,7 @@ crossbeam-channel = { version = "0.5", optional = true } [dev-dependencies] rand = { version = "0.8", features = ["small_rng"] } ieee754 = "0.2.2" -clap = "2.26.2" +clap = "3" [target.'cfg(unix)'...
2
14
14
9c5940d67b69894b17a89bbe4824df7723880b67
xd009642
2021-10-23T16:23:08
Update nom to 7.0.0
diff --git a/Cargo.toml b/Cargo.toml index a945043..6b15121 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -34,7 +34,7 @@ default = [ "serialization", "sync" ] num-traits = "0.2" byteorder = "1.0.0" flate2 = { version = "1.0", optional = true } -nom = { version = "6.0.1", optional = true } +nom = { version = "7.0.0", o...
1
1
1
f899e81c135adc793412b43639deff08653bc464
Jon Gjengset
2021-05-05T02:20:56
Update rand
diff --git a/Cargo.toml b/Cargo.toml index 450643e..3b493c8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -39,7 +39,7 @@ base64 = { version = "0.13", optional = true } crossbeam-channel = { version = "0.5", optional = true } [dev-dependencies] -rand = { version = "0.7", features = ["small_rng"] } +rand = { version = ...
4
7
7
ca2572c7a5f9cbacab47e9a9c33b656137ed9f9a
Jon Gjengset
2021-05-05T02:20:45
Make benchmarks compile again
diff --git a/benches/interval_log.rs b/benches/interval_log.rs index 4724d79..51a9fb0 100644 --- a/benches/interval_log.rs +++ b/benches/interval_log.rs @@ -1,5 +1,7 @@ #![feature(test)] +extern crate test; + use std::time; use hdrhistogram::serialization; diff --git a/benches/record.rs b/benches/record.rs index...
5
15
6
964a05a3608beefae3fa0ad0caa0c600b2007efc
Henry de Valence
2021-05-04T04:23:45
add Add, Sub impls that take ownership This allows writing `hist1 + hist2`; because `Add` and `Sub` take receivers by value, it's no more or less efficient than the more verbose `let mut hist1 = ... ; hist1 += hist2; let sum = hist1`.
diff --git a/src/lib.rs b/src/lib.rs index a13266b..767cddb 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -204,7 +204,7 @@ extern crate nom; use num_traits::ToPrimitive; use std::borrow::Borrow; use std::cmp; -use std::ops::{AddAssign, SubAssign}; +use std::ops::{Add, AddAssign, Sub, SubAssign}; use iterators::Hist...
1
33
1
d2fa1f4c9dd984b5b3d0e852d02b8eeb803e8dbd
Jon Gjengset
2020-11-29T20:32:50
Bump serialization dependencies
diff --git a/Cargo.toml b/Cargo.toml index 9d63306..cc58b28 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -34,8 +34,8 @@ default = [ "serialization", "sync" ] num-traits = "0.2" byteorder = "1.0.0" flate2 = { version = "1.0", optional = true } -nom = { version = "5.0", optional = true } -base64 = { version = "0.12", o...
2
31
35
08c0e8ddaa8bc47bb78f0ce1584b3332bb08e025
Andrii Radyk
2020-01-27T20:28:37
fix ci: code format
diff --git a/src/serialization/interval_log/tests.rs b/src/serialization/interval_log/tests.rs index ad236b8..03d372d 100644 --- a/src/serialization/interval_log/tests.rs +++ b/src/serialization/interval_log/tests.rs @@ -152,8 +152,7 @@ fn write_interval_histo_no_tag() { .unwrap(); } - let expect...
1
1
2
ed12673e4664109f57cea01092debe355889bf99
Jon Gjengset
2019-12-20T19:32:58
Bump dependencies
diff --git a/Cargo.toml b/Cargo.toml index 739fe75..14191ea 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -35,8 +35,8 @@ num-traits = "0.2" byteorder = "1.0.0" flate2 = { version = "1.0", optional = true } nom = { version = "5.0", optional = true } -base64 = { version = "0.10", optional = true } -crossbeam-channel = {...
1
2
2
3b2b7914ac159a7072117e509d747fb8622dd35e
Andrii Radyk
2019-12-01T18:49:51
switch an inner type of some Error valriants from io::ErrorKind to io::Error
diff --git a/src/serialization/deserializer.rs b/src/serialization/deserializer.rs index 6b51736..dfe6f93 100644 --- a/src/serialization/deserializer.rs +++ b/src/serialization/deserializer.rs @@ -3,15 +3,15 @@ use crate::{Counter, Histogram, RestatState}; use byteorder::{BigEndian, ReadBytesExt}; use flate2::read::Z...
5
53
25
27635df47843ca893023ff0895449b709e390fd5
Andrii Radyk
2019-11-30T00:41:57
implement fmt::Display and std::error::Error for all internal errors
diff --git a/src/errors/mod.rs b/src/errors/mod.rs index 04b0c5c..29fc1eb 100644 --- a/src/errors/mod.rs +++ b/src/errors/mod.rs @@ -1,4 +1,6 @@ //! Error types used throughout this library +use std::error::Error; +use std::fmt; /// Errors that can occur when creating a histogram. #[derive(Debug, Eq, PartialEq, Cl...
5
145
3
1f4879c846ed834d23e7d6e190faf0e486699b2b
Andrii Radyk
2019-11-20T08:47:09
decompose complex parser into 2 additional functions
diff --git a/src/serialization/interval_log/mod.rs b/src/serialization/interval_log/mod.rs index 2b5d248..226a665 100644 --- a/src/serialization/interval_log/mod.rs +++ b/src/serialization/interval_log/mod.rs @@ -220,10 +220,9 @@ use nom::branch::alt; use nom::bytes::complete::{tag, take, take_until, take_while1}; us...
1
14
12
d9d0c06f86ae16c272dba76be620326cf73ea112
Andrii Radyk
2019-11-19T07:04:59
apply clippy suggestions
diff --git a/src/serialization/interval_log/mod.rs b/src/serialization/interval_log/mod.rs index 9218009..2b5d248 100644 --- a/src/serialization/interval_log/mod.rs +++ b/src/serialization/interval_log/mod.rs @@ -211,6 +211,7 @@ //! assert_eq!("#Comments are great\n", &str::from_utf8(&buf).unwrap()[0..20]); //! ``` ...
1
6
7
9a34ede8424f3132f776886149004cddccefe446
Andrii Radyk
2019-11-18T23:50:33
migrate to more idiomatic way
diff --git a/src/serialization/interval_log/mod.rs b/src/serialization/interval_log/mod.rs index 7eb89a0..9218009 100644 --- a/src/serialization/interval_log/mod.rs +++ b/src/serialization/interval_log/mod.rs @@ -683,81 +683,75 @@ fn system_time_as_fp_seconds(time: time::SystemTime) -> f64 { } } -fn start_time(...
1
66
75
5c6adffdb07525045b7163feb74a84486354be1f
Andrii Radyk
2019-11-18T03:03:14
migration to nom5 functions
diff --git a/src/serialization/interval_log/mod.rs b/src/serialization/interval_log/mod.rs index 96a28a7..7eb89a0 100644 --- a/src/serialization/interval_log/mod.rs +++ b/src/serialization/interval_log/mod.rs @@ -212,11 +212,17 @@ //! ``` use std::fmt::Write; +use std::str::FromStr; use std::{fmt, io, ops, str, ti...
1
97
83
67f4d1370fb8f6bd56f6332e3b624e8fce0f35e8
Andrii Radyk
2019-11-18T02:01:17
migration to nom5 macros
diff --git a/Cargo.toml b/Cargo.toml index f9f0782..739fe75 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -34,7 +34,7 @@ default = [ "serialization", "sync" ] num-traits = "0.2" byteorder = "1.0.0" flate2 = { version = "1.0", optional = true } -nom = { version = "^4.0", optional = true } +nom = { version = "5.0", opti...
2
18
12
20ac47d0e3f2c6da19f310b22e8b13b637c54f06
Jon Gjengset
2019-06-28T18:19:06
rand 0.7
diff --git a/Cargo.toml b/Cargo.toml index 97c8fdb..f9f0782 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "hdrhistogram" -version = "6.3.3" +version = "6.3.4" edition = "2018" description = "A port of HdrHistogram to Rust" @@ -39,7 +39,7 @@ base64 = { version = "0.10", optional = true ...
7
8
8
411e0bfe3e70fd38c7cae88d5b3f36f674a14457
Jon Gjengset
2019-06-27T23:18:38
Make sync things Debug
diff --git a/Cargo.toml b/Cargo.toml index 81fae0e..97c8fdb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "hdrhistogram" -version = "6.3.2" +version = "6.3.3" edition = "2018" description = "A port of HdrHistogram to Rust" diff --git a/src/sync/mod.rs b/src/sync/mod.rs index c2b3333..b...
2
3
1
b64160c4fd5f54060ad8d064ab7cac901d75b8f0
Jon Gjengset
2019-06-26T20:06:27
Provide owning Idle guard
diff --git a/Cargo.toml b/Cargo.toml index 3142567..81fae0e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "hdrhistogram" -version = "6.3.1" +version = "6.3.2" edition = "2018" description = "A port of HdrHistogram to Rust" diff --git a/src/sync/mod.rs b/src/sync/mod.rs index fa08518..c...
3
122
13