| Crates.io | yad_core |
| lib.rs | yad_core |
| version | 2.0.0 |
| created_at | 2025-08-21 19:54:42.362872+00 |
| updated_at | 2025-09-15 23:13:13.20602+00 |
| description | YAD-Core manages the lowest level of YAD, its primitive values. |
| homepage | |
| repository | https://github.com/KingsBeCattz/yad |
| max_upload_size | |
| id | 1805262 |
| size | 93,432 |
YAD Core is a Rust crate focused exclusively on the low-level Value type, supporting numbers, strings, booleans, and arrays.
⚠️ NOTE: THIS CRATE, WHICH PREVIOUSLY HANDLED FULL SERIALIZATION AND DESERIALIZATION, NOW ONLY MANAGES VALUES. The previous full functionality has been moved to
serde_yad.
This crate provides:
📖 Learn more about the YAD project here.
Add the crate to your Cargo.toml:
cargo add yad_core
use yad_core::Value;
fn main() {
println!("String: {}", Value::try_from("Hello!").unwrap());
println!("Unsigned Integer: {}", Value::from(324u16));
println!("Signed Integer: {}", Value::from(-28i8));
println!("Float: {}", Value::from(123.729304f32));
println!("Bool: {}", Value::from(false));
println!("Vector: {:?}", Value::try_from(vec![Value::from(256u64)]).unwrap());
}
The ffi module provides interoperability with other languages, exposing functions to create and manipulate Value types from external code.