docs.rs failed to build otter-engine-0.1.3
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
otter-engine
ESM module loader and capability-based security for Otter.
Overview
otter-engine provides the module loading infrastructure for the Otter runtime:
- ESM module loading from file://, node:, and https:// URLs
- Dependency graph with cycle detection
- Capability-based security model
- Automatic TypeScript transpilation
- Import maps support
Usage
Add to your Cargo.toml:
[]
= "0.1"
Module Loading
use ;
use Arc;
async
Capability-Based Security
use ;
use PathBuf;
let caps = new
.allow_read
.allow_net
.allow_env
.build;
// Check permissions
if caps.can_read
// Or require permission (returns error if denied)
caps.require_net?;
License
MIT