File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -100,4 +100,4 @@ jobs:
100
100
run : cargo rustdoc -- -D warnings
101
101
102
102
- name : ' Check documentation links in `libmimalloc-sys`'
103
- run : cargo rustdoc -p libmimalloc-sys -- -D warnings
103
+ run : cargo rustdoc -p libmimalloc-sys2 -- -D warnings
Original file line number Diff line number Diff line change @@ -488,7 +488,7 @@ pub const mi_option_show_stats: mi_option_t = 1;
488
488
pub const mi_option_verbose: mi_option_t = 2 ;
489
489
490
490
/// ### The following options are experimental
491
-
491
+ ///
492
492
/// Option (experimental) Use large OS pages (2MiB in size) if possible.
493
493
///
494
494
/// Use large OS pages (2MiB) when available; for some workloads this can
@@ -546,7 +546,7 @@ pub const mi_option_max_warnings: mi_option_t = 20;
546
546
pub const mi_option_max_segment_reclaim: mi_option_t = 21 ;
547
547
548
548
/// Last option.
549
- pub const _mi_option_last: mi_option_t = 29 ;
549
+ pub const _mi_option_last: mi_option_t = 36 ;
550
550
551
551
extern "C" {
552
552
// Note: mi_option_{enable,disable} aren't exposed because they're redundant
@@ -657,6 +657,8 @@ pub struct mi_heap_area_t {
657
657
pub block_size : usize ,
658
658
/// Size in bytes of a full block including padding and metadata.
659
659
pub full_block_size : usize ,
660
+ /// Heap tag associated with this area (see \a mi_heap_new_ex)
661
+ pub heap_tag : c_int ,
660
662
}
661
663
662
664
/// Visitor function passed to [`mi_heap_visit_blocks`]
@@ -1012,6 +1014,7 @@ extern "C" {
1012
1014
#[ cfg( test) ]
1013
1015
mod tests {
1014
1016
use super :: * ;
1017
+ use crate :: mi_malloc;
1015
1018
1016
1019
#[ test]
1017
1020
fn it_calculates_usable_size ( ) {
Original file line number Diff line number Diff line change @@ -7,6 +7,10 @@ description = "Bindings test for libmimalloc-sys"
7
7
license = " MIT"
8
8
publish = false
9
9
10
+ [features ]
11
+ secure = [" libmimalloc-sys2/secure" ]
12
+ extended = [" libmimalloc-sys2/extended" ]
13
+
10
14
[dependencies ]
11
15
libmimalloc-sys2 = { path = " .." , features = [" extended" ] }
12
16
libc = " 0.2"
You can’t perform that action at this time.
0 commit comments