| Crates.io | gear-mesh-core |
| lib.rs | gear-mesh-core |
| version | 0.1.1 |
| created_at | 2025-12-28 03:38:23.61487+00 |
| updated_at | 2025-12-28 04:02:24.349452+00 |
| description | Core types and intermediate representation for gear-mesh |
| homepage | https://github.com/UtakataKyosui/GearMesh |
| repository | https://github.com/UtakataKyosui/GearMesh |
| max_upload_size | |
| id | 2008188 |
| size | 35,433 |
Core types and intermediate representation for the gear-mesh type conversion system.
This crate provides the fundamental data structures used to represent Rust types in a language-agnostic format, which can then be converted to TypeScript or other target languages.
gear-mesh-core defines:
GearMeshType, TypeKind, TypeRef for representing Rust typesValidationRule for runtime validationDocComment for preserving doc commentsbranded, validate, etc.This crate is typically used as a dependency by:
gear-mesh-derive - The proc-macro that parses Rust typesgear-mesh-generator - The code generator that produces TypeScriptMost users should use the main gear-mesh crate instead of depending on this directly.
use gear_mesh_core::{GearMeshType, TypeKind, PrimitiveType};
// Manually construct a type representation
let user_type = GearMeshType {
name: "User".to_string(),
kind: TypeKind::Struct(/* ... */),
docs: None,
generics: vec![],
attributes: Default::default(),
};
serdeLicensed under either of:
at your option.