6 releases

0.3.2 Feb 14, 2023
0.3.1 Jan 12, 2023
0.3.0 Jan 24, 2021
0.2.0 Jan 23, 2021
0.1.3 Nov 17, 2020

#518 in Memory management


Used in 2 crates

LGPL-3.0-or-later OR Apache-2…

29KB
428 lines

gharial

Gharial is a test tool for program to manipulate memory directly.

Rust usually follows the rule of RAII (Resource Acquisition is Initialization;) resources should be released on the drop, however, it is sometimes difficult to design low level code like that.

Container object, for example, sometimes allocates heap memory and build elements there. Then, the programmer could have to drop the elements and deallocate the heap manully; otherwise some trouble like memory leak could be occurred.

Gharial helps to test such program.

License: LGPL-3.0-or-later OR Apache-2.0 OR BSD-2-Clause OR MIT


lib.rs:

Gharial is a test tool for program to manipulate memory directly.

Rust usually follows the rule of RAII (Resource Acquisition is Initialization;) resources should be released on the drop, however, it is sometimes difficult to design low level code like that.

Container object, for example, sometimes allocates heap memory and build elements there. Then, the programmer could have to drop the elements and deallocate the heap manully; otherwise some trouble like memory leak could be occurred.

Gharial helps to test such program.

Dependencies

~1.4–2MB
~36K SLoC