#dont #up #mess

expand_any_lifetime

expand any lifetime to 'static with no unsafe rust

3 releases

0.1.2 Feb 20, 2024
0.1.1 Feb 20, 2024
0.1.0 Feb 20, 2024

#405 in Programming languages

MIT license

2KB

续命

Note

DO NOT USE THIS IN ANY CODE YOU DON'T WANT MESS UP

Why?

You want to expand some lifetime without either call *::leak()

How?

An issue had opened for decades

In essence, it's because static checking of multi-level lifetimes itself is inherently complex

Credits

Also check examples in cve-rs,

to find 'what kind of memory vulnerabilities we could face with unconditional lifetime expand'?

No runtime deps