docs.rs failed to build otter-node-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-node
Node.js API compatibility layer for Otter.
Overview
otter-node provides Node.js-compatible APIs for the Otter runtime, enabling existing Node.js code to run with minimal modifications.
Supported APIs
path- Path manipulation utilitiesbuffer- Binary data handlingfs- File system operationscrypto- Cryptographic operations (randomBytes, createHash, etc.)stream- Web Streams API (ReadableStream, WritableStream)websocket- WebSocket clientworker- Web Worker APItest- Test runner (describe, it, assert)
Usage
Add to your Cargo.toml:
[]
= "0.1"
Example
use path;
use Buffer;
// Path manipulation
let joined = join;
assert_eq!;
// Buffer operations
let buf = from_string.unwrap;
assert_eq!;
License
MIT