← Crates

once_cell

version 1.21.4 · crates.io

51 of 75 tests (68.0%) have the same outcome compiled to JavaScript by Limonite as natively.

pointer-width1 test

The test is #[cfg(target_pointer_width = "64")] (or not for 16 and 32 bits): a size or capacity check that doesn't exist on Limonite's 32-bit target.

The tests
  • imp::tests::test_size
threads1 test

It starts a thread; Limonite doesn't emulate threads, so spawning one fails (Unsupported) as it should on the web.

The tests
  • imp::tests::stampede_once
unwinding21 tests

It catches a panic with catch_unwind, which needs panic=unwind; Limonite builds with panic=abort, so the caught panic stops the test instead.

The tests
  • imp::tests::poison_bad
  • imp::tests::wait_for_force_to_finish
  • race::once_bool_smoke_test
  • race::once_ref_smoke_test
  • race::once_non_zero_usize_smoke_test
  • race::once_non_zero_usize_first_wins
  • race_once_box::once_box_first_wins
  • sync_lazy::lazy_new
  • sync_lazy::static_lazy
  • sync_once_cell::get_does_not_block
  • sync_once_cell::once_cell
  • sync_once_cell::once_cell_drop
  • sync_lazy::lazy_poisoning
  • sync_once_cell::get_or_try_init
  • sync_once_cell::wait
  • sync_once_cell::wait_panic
  • unsync_lazy::lazy_poisoning
  • unsync_once_cell::get_or_try_init
  • race_once_box::once_box_smoke_test
  • sync_once_cell::once_cell_does_not_leak_partially_constructed_boxes
  • sync_once_cell::get_or_init_stress
addresses1 test

It takes the address of a reference to a plain value that arrived as an argument or return value; such references are the value itself in Limonite, which refuses the address loudly (docs/PROTOTYPE.md, deferred).

The tests
  • race::once_ref_set

From the run of November 28, 2026. The full report

Limonite: MIT OR Apache-2.0. Part of lazuli-rs.

This site is a Lazuli app, compiled to JavaScript by Limonite.