grift_std 1.3.2

Standard library I/O and runtime features for the Grift Scheme language (requires std)
Documentation
  • Coverage
  • 100%
    2 out of 2 items documented1 out of 1 items with examples
  • Size
  • Source code size: 16.08 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 3.23 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 15s Average build duration of successful builds.
  • all releases: 17s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • gold-silver-copper/grift
    12 3 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • gold-silver-copper

Grift Standard Library

Standard library features for the Grift R7RS-compliant Scheme implementation that require Rust's std (I/O, filesystem, etc.).

This crate implements the [IoProvider] trait from grift_core using Rust's standard I/O, giving the no_std evaluator access to real input/output when running on a hosted platform.

Quick Start

use grift_std::StdIoProvider;
use grift_core::IoProvider;

// Create a standard I/O provider
let mut io = StdIoProvider::new();

// Check port types
use grift_core::PortId;
assert!(io.is_input_port(PortId::STDIN));
assert!(io.is_output_port(PortId::STDOUT));

Crate Boundary

Crate #![no_std] Purpose
grift_core Defines [IoProvider] trait
grift_std Implements [IoProvider] with std::io
grift_eval Pure evaluator, no I/O
grift_repl Interactive REPL