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