sjlj

Crates.iosjlj
lib.rssjlj
version0.1.3
sourcesrc
created_at2023-01-13 17:10:56.897958
updated_at2023-02-03 22:55:21.156034
descriptionsetjmp/longjmp for Rust
homepagehttps://github.com/jordanisaacs/sjlj
repositoryhttps://github.com/jordanisaacs/sjlj
max_upload_size
id758037
size15,093
Jordan (jordanisaacs)

documentation

README

SJLJ - setjmp & longjmp for Rust

crates.io Released API docs MIT licensed

A small no_std library that provides inline asm functions for the setjmp and longjmp functions. Also provides sigsetjmp and siglongjmp on Linux. This is for using them without requiring a libc. The functions are ported from musl.

For a great article on how setjmp and longjmp work check out Mark Mossberg's blogpost which walks through x86's assembly implementation.

Implemented Architectures:

  • x86_64
Commit count: 18

cargo fmt