Generate wire and data model API shims

This commit is contained in:
2026-08-08 12:18:28 +02:00
parent e2889d758d
commit 7086af9a6f
13 changed files with 153952 additions and 9018 deletions

View File

@@ -7,7 +7,7 @@ pub mod codec {
pub trait IImageCreator {}
pub struct ImageCreator<T>(pub std::marker::PhantomData<T>);
pub struct InterleavedImage;
pub struct BlkImgDataSrc;
pub trait BlkImgDataSrc {}
}
mod generated;

View File

@@ -5,6 +5,9 @@ extern crate self as libremetaverse_structured_data;
mod generated;
pub mod xml {
/// Project-owned XML element boundary; external XML APIs are not copied.
pub struct Element;
/// Native XML reader boundary; external XML APIs are not copied.
pub struct Reader;

View File

@@ -57,6 +57,33 @@ pub struct StringReader(pub String);
#[derive(Clone, Debug, Eq, PartialEq)]
pub struct StreamReader(pub Vec<u8>);
#[derive(Clone, Debug, Eq, PartialEq)]
pub struct XmlTextReader(pub String);
#[derive(Clone, Debug, Eq, PartialEq)]
pub struct XmlTextWriter(pub String);
#[derive(Clone, Copy, Debug, Default, Eq, Hash, PartialEq)]
pub struct CancellationToken;
#[derive(Clone, Debug)]
pub struct FrozenDictionary<TKey, TValue>(pub std::collections::HashMap<TKey, TValue>);
#[derive(Clone, Debug)]
pub struct IDictionary<TKey, TValue>(pub std::collections::HashMap<TKey, TValue>);
#[derive(Clone, Debug)]
pub struct SortedList<TKey, TValue>(pub std::collections::BTreeMap<TKey, TValue>);
#[derive(Clone, Copy, Debug, Default, PartialEq)]
pub struct Matrix4x4(pub [f32; 16]);
#[derive(Clone, Copy, Debug, Default, PartialEq)]
pub struct Quaternion(pub [f32; 4]);
#[derive(Clone, Copy, Debug, Default, PartialEq)]
pub struct Vector3(pub [f32; 3]);
#[derive(Clone, Debug, Eq, PartialEq)]
pub struct StringWriter(pub String);

File diff suppressed because it is too large Load Diff

View File

@@ -1,14 +1,23 @@
//! Public rewrite shell corresponding to the main `LibreMetaverse` assembly.
extern crate self as libremetaverse;
mod generated;
pub use TextureEntryFace as PrimitiveTextureEntryFace;
pub use generated::*;
pub use libremetaverse_imaging as imaging_abstractions;
pub use libremetaverse_structured_data as structured_data;
pub use libremetaverse_types as types;
pub use libremetaverse_types::NotImplemented as Error;
/// Project-owned boundary types for external `MessagePack` signatures.
pub mod message_pack {
pub trait IMessagePackFormatter<T = ()> {}
pub struct MessagePackReader;
pub struct MessagePackSerializerOptions;
pub struct MessagePackWriter;
}
/// Common behavior for program shims while the network stack is unimplemented.
pub mod shim {
use std::process::ExitCode;