rustyscript 0.12.3

Effortless JS Integration for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
import * as caches from "ext:deno_cache/01_cache.js";

import { applyToGlobal, nonEnumerable } from 'ext:rustyscript/rustyscript.js';
applyToGlobal({
    caches: {
        enumerable: true,
        configurable: true,
        get: caches.cacheStorage,
    },
    CacheStorage: nonEnumerable(caches.CacheStorage),
    Cache: nonEnumerable(caches.Cache),
});