Skip to content

largenumberhere/Unsafe-linked-list

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unsafe linked list

A linked list implementation in unsafe rust with super low level memory control.

It is written in primarily unsafe rust using the global allocator's alloc_zeroed and dealloc. It explores some of their uses. Features notable mentions of ManuallyDrop<T>, core::ptr::mut_ptr::drop_in_place, writing to raw memory, reading to raw memory, many raw pointers, dereferencing pointers, null pointers, among many other naughty memory tricks that you should never want or need in rust!

Build

  • Clone the repository
  • Make sure you have miri installed. You can add it with rustup +nightly component add miri
  • Use cargo miri run inside of the root folder to run the tests with miri's memory checking

About

A linked list implementation in unsafe rust with super low level memory control

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages