Sha256: 6ff9f50ccacd30fb27e1c448b26b26343e5d7372f2c7718ca8bf130c302557e0

Contents?: true

Size: 272 Bytes

Versions: 12

Compression:

Stored size: 272 Bytes

Contents

#![cfg(feature = "spin_no_std")]
#![no_std]

#[macro_use]
extern crate lazy_static;

lazy_static! {
    /// Documentation!
    pub static ref NUMBER: u32 = times_two(3);
}

fn times_two(n: u32) -> u32 {
    n * 2
}

#[test]
fn test_basic() {
    assert_eq!(*NUMBER, 6);
}

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
wasmtime-29.0.0 ./ext/cargo-vendor/lazy_static-1.5.0/tests/no_std.rs
wasmtime-28.0.0 ./ext/cargo-vendor/lazy_static-1.5.0/tests/no_std.rs
wasmtime-27.0.0 ./ext/cargo-vendor/lazy_static-1.5.0/tests/no_std.rs
wasmtime-26.0.0 ./ext/cargo-vendor/lazy_static-1.5.0/tests/no_std.rs
wasmtime-25.0.2 ./ext/cargo-vendor/lazy_static-1.5.0/tests/no_std.rs
wasmtime-25.0.1 ./ext/cargo-vendor/lazy_static-1.5.0/tests/no_std.rs
wasmtime-25.0.0 ./ext/cargo-vendor/lazy_static-1.5.0/tests/no_std.rs
wasmtime-24.0.0 ./ext/cargo-vendor/lazy_static-1.5.0/tests/no_std.rs
wasmtime-23.0.2 ./ext/cargo-vendor/lazy_static-1.5.0/tests/no_std.rs
wasmtime-22.0.0 ./ext/cargo-vendor/lazy_static-1.5.0/tests/no_std.rs
wasmtime-21.0.1 ./ext/cargo-vendor/lazy_static-1.5.0/tests/no_std.rs
wasmtime-20.0.2 ./ext/cargo-vendor/lazy_static-1.5.0/tests/no_std.rs