Skip to main content

oa/
lib.rs

1//! oa - GPU-first architecture with explicit Vulkan
2//!
3//! Experimental Rust port / successor prototype for OA.
4//!
5//! The target API is organized as a language-like semantic surface:
6//! - Semantic value types are re-exported at the root.
7//! - Runtime and, once admitted, Device and Event are runtime types.
8//! - Stateless operations live in matrix, image, audio, video, vision, render,
9//!   ml, and crypto modules.
10//!
11//! Foundational contracts live under `core`; common types are also re-exported
12//! from the crate root. Runtime machinery lives under `runtime`.
13
14pub mod runtime;
15
16mod linalg;
17
18pub mod anim;
19pub mod audio;
20pub mod compute;
21pub mod core;
22pub mod crypto;
23pub mod data;
24pub mod image;
25pub mod input;
26pub mod matrix;
27pub mod media;
28pub mod ml;
29pub mod net;
30pub mod plot;
31pub mod render;
32pub mod ui;
33pub mod video;
34pub mod viewer;
35pub mod vision;
36
37pub use core::vlm;
38
39// Re-export the common public vocabulary.
40pub use anim::{AnimClip, AnimCurve, Joint, Keyframe, SkelPose};
41pub use audio::{Audio, AudioCapture, AudioChannelLayout, AudioEncoder, AudioPlayer};
42pub use core::transform::Transform;
43pub use core::{
44	BufferAccess, COMPACT_BANNER, Callback, CallbackSet, CheckpointConfig, Cli, Color, DType,
45	Datetime, EnvFlag, Error, ErrorKind, F16, Filesystem, IteratorContext, LogConfig, LogMetrics,
46	MappedFile, NumericMode, OpAttribute, OpAttributeKind, OpAttributeSpec, OpControlFlow,
47	OpDTypeRule, OpDifferentiation, OpEffect, OpFusionClass, OpLowering, OpShapeRule, OpValueKind,
48	OperationContract, Path, PerfStat, REALM_BANNER, Result, ScopedTimer, Stopwatch, Timestamp,
49	VIEWPORT_TITLE, Validation, ValidationSeverity, apply_numeric_mode, brand_viewport,
50};
51pub use crypto::pqc::{Keypair, PublicKey, SecretKey, Signature};
52pub use crypto::{Hash, Hasher, MerkleProof, MerkleTree, SecureBuffer, Shake128, Shake256};
53pub use data::{
54	Batch, DataFrame, DataFrameView, DataLoader, DataLoaderConfig, Dataset, OhlcvDataset, OhlcvView,
55	OhlcvWindowConfig, OhlcvWindows, Sample, Series, SeriesView, SeriesViewMut, SplitResult, Subset,
56	UnixTimeUnit,
57};
58pub use image::{Image, ImageFormat, ImageLayout};
59pub use matrix::Matrix;
60pub use media::MediaPlayer;
61pub use net::{
62	MCP_LATEST_PROTOCOL_VERSION, McpArguments, McpCacheScope, McpServer, McpServerConfig,
63	McpTextResource, McpTool, McpToolResult, TcpFramed, TcpListener, TcpStream,
64};
65pub use render::{
66	Aabb, AlphaMode, Camera, CameraProjection, FlatColorMaterial, Material, MaterialId,
67	SceneMaterial, SurfaceMaterial, Texture, TextureHandle, UnlitMaterial,
68};
69pub use video::{
70	VideoDecoder, VideoDemuxer, VideoEncoder, VideoFrame, VideoMuxer, VideoPlayer, VideoRecorder,
71};
72
73pub use input::{
74	INPUT_MOD_ALT, INPUT_MOD_CTRL, INPUT_MOD_NONE, INPUT_MOD_SHIFT, INPUT_MOD_SUPER, InputEvent,
75	InputEventKind, InputModifiers, InputState, Key, MotionSpeed, PinchPhase, ScrollGesture,
76};
77pub use runtime::{
78	CapturedResourceDesc, ClockCalibration, DeviceHardwareInfo, DeviceInfo, DeviceKind,
79	DeviceSelection, DeviceSoftwareInfo, DeviceSummary, Event, ExecutionBindingDesc,
80	ExecutionBindingRole, ExecutionPlan, ExecutionPlanDiagnostics, FusionStats, HostClockDomain,
81	LogComponent, LogLevel, LogOptions, Presenter, Runtime, RuntimeBuilder, RuntimeRequirements,
82	SdlWindow, SemanticAccessMode, SemanticAliasDesc, SemanticAutogradDesc, SemanticGraph,
83	SemanticLoweringAnalysis, SemanticOpDesc, SemanticOpId, SemanticStorageBinding,
84	SemanticValueAccess, SemanticValueDesc, SemanticValueId, Timer, TimerDomain,
85};
86pub use ui::{
87	FontId, GlyphInfo, NodeCanvas, NodeCanvasGrid, NodeCanvasHit, NodeCanvasHitItem, NodeCanvasState,
88	PixelRect, PositionedGlyph, TextAtlas, TextLayout, TextLayoutConfig, Ui, UiAlign, UiDirection,
89	UiEdge, UiLayout, UiSizing, UiStyle, UiTabBarResult, UiTabBarState, UiTabItem, UiTreeRowConfig,
90	UiTreeRowResult, WorldAabb,
91};
92pub use viewer::{
93	SharedItem, TrainingPreviewFrame, TrainingViewerConfig, TrainingViewerSource, Viewer,
94	ViewerAudioView, ViewerCanvasBackground, ViewerConfig, ViewerLiveCapabilities, ViewerLiveSource,
95	ViewerMode, Workspace, WorkspaceItem, WorkspaceNode,
96};