| Crates.io | fast-yaml-ffi |
| lib.rs | fast-yaml-ffi |
| version | 0.4.1 |
| created_at | 2025-12-13 22:08:06.644548+00 |
| updated_at | 2026-01-17 16:09:24.643247+00 |
| description | FFI utilities for fast-yaml bindings |
| homepage | |
| repository | https://github.com/bug-ops/fast-yaml |
| max_upload_size | |
| id | 1983485 |
| size | 12,547 |
FFI utilities for fast-yaml language bindings.
Add to your Cargo.toml:
[dependencies]
fast-yaml-ffi = "0.3"
Or with cargo-add:
cargo add fast-yaml-ffi
[!IMPORTANT] Requires Rust 1.88 or later.
This crate provides generic traits and utilities for converting between Rust types and foreign types (Python via PyO3, Node.js via NAPI-RS).
ToFfi<T> — Convert Rust types to foreign typesFromFfi<T> — Convert foreign types to Rust typesuse fast_yaml_ffi::{ToFfi, FromFfi};
// Convert Rust value to Python object
let py_obj = rust_value.to_ffi()?;
// Convert Python object to Rust value
let rust_value = RustType::from_ffi(&py_obj)?;
[!NOTE] This crate is primarily used internally by
fast-yaml(Python) andfast-yaml-nodejsbindings.
This crate is part of the fast-yaml workspace:
fast-yaml-core — Core YAML 1.2.2 parser and emitterfast-yaml-linter — YAML linting with rich diagnosticsfast-yaml-parallel — Multi-threaded YAML processingLicensed under either of Apache License, Version 2.0 or MIT License at your option.