fake-static 0.1.0

rustc hates him! Sidestep borrow checking with this weird trick (no unsafe inside).
Documentation
  • Coverage
  • 50%
    1 out of 2 items documented0 out of 1 items with examples
  • Size
  • Source code size: 2.12 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.05 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 10s Average build duration of successful builds.
  • all releases: 10s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • meithecatte/fake-static
    106 2 2
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • meithecatte

rustc hates him! Sidestep borrow checking with this weird trick.

Note: This "may" cause undefined behavior. But it's fine, there's no unsafe in sight.

fn main() {
    let boom = fake_static::make_static(&vec![0; 1<<20]);
    println!("{:?}", boom);
}

Please don't use this in production. Or anywhere, for that matter. The only purpose of this piece of shit is to bring attention to the relevant issue, which hasn't seen any attention for over a year: https://github.com/rust-lang/rust/issues/25860