{"repo":"mmastrac/linktime","free":true,"listed":false,"github":"https://github.com/mmastrac/linktime","clone":"git clone https://github.com/mmastrac/linktime.git","description":"Link-time initialization, destruction, scattered data collection macros for Rust","language":"Rust","stars":1065,"topics":["rust","macros","constructor","dylib","ctor","dtor","link-section","linktime"],"license":"Apache-2.0","category":"dev-tools","readme_excerpt":"linktime Cross-platform libraries for link-time initialization, finalization and collection in Rust. crate --- --- linktime Convenience crate for ctor , dtor and link-section ctor Module initialization functions before main dtor Module shutdown functions before main link-section Linker-managed typed (slices) and untyped sections scattered-collect Linker-managed collections: slices, sorted slices, maps Crates The linktime project comprises three crates, and the top-level linktime crate aggregates them all. Pick-and-choose, or import the top-level crate to get all three. ctor Module initialization functions for Rust (like attribute ((constructor)) in C/C++). Run code before main to initialize data, external resources, or other state. dtor Module shutdown functions for Rust (like attribute ((destructor)) ). Run code after main to clean up resources, or perform other final operations. link-section Typed and untyped link section support for Rust. Collect related items from an entire linked binary into a single link section. scattered-collect A crate for defining zero-allocation,linker-managed scattered collections in Rust. - ScatteredIterable : A collection of items that are available only via - ScatteredSlice : A collection of sized items that collected into a slice in an arbitrary order. - ScatteredSortedSlice : A collection of items that are available via slice, in sorted order. - ScatteredReferencedSlice : A collection of items collected into a slice (link order). - ScatteredS","default_branch":null,"files":null,"tree":[],"storefront":"/r/mmastrac","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mmastrac/linktime/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}