Initial MetaCrate rewrite shell

This commit is contained in:
2026-08-08 09:49:22 +02:00
commit 115425cea7
66 changed files with 56984 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
[package]
name = "libremetaverse-imaging-skia"
version.workspace = true
edition.workspace = true
rust-version.workspace = true
license.workspace = true
repository.workspace = true
description = "Skia codec shims for the MetaCrate LibreMetaverse rewrite"
[dependencies]
libremetaverse-imaging = { path = "../libremetaverse-imaging" }
[lints]
workspace = true

View File

@@ -0,0 +1,11 @@
// @generated by tools/generate_surface.py; do not edit by hand.
// Source: LibreMetaverse 2aa70bb68513b39795da5d13c88f31b86e85a3ba
#![allow(non_camel_case_types)]
/// `class` shim for C# `LibreMetaverse.Imaging.Skia.SkiaTextureCodec`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct SkiaTextureCodec;
impl SkiaTextureCodec {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.Imaging.Skia.SkiaTextureCodec";
pub const CSHARP_KIND: &'static str = "class";
}

View File

@@ -0,0 +1,6 @@
//! Skia imaging adapter corresponding to `LibreMetaverse.Imaging.Skia`.
mod generated;
pub use generated::*;
pub use libremetaverse_imaging as imaging;

View File

@@ -0,0 +1,11 @@
[package]
name = "libremetaverse-imaging"
version.workspace = true
edition.workspace = true
rust-version.workspace = true
license.workspace = true
repository.workspace = true
description = "Texture codec abstractions for the MetaCrate LibreMetaverse rewrite"
[lints]
workspace = true

View File

@@ -0,0 +1,24 @@
// @generated by tools/generate_surface.py; do not edit by hand.
// Source: LibreMetaverse 2aa70bb68513b39795da5d13c88f31b86e85a3ba
#![allow(non_camel_case_types)]
/// Shim for C# `LibreMetaverse.Imaging.ITextureCodec`.
pub trait ITextureCodec {
const CSHARP_NAME: &'static str = "LibreMetaverse.Imaging.ITextureCodec";
}
/// `enum` shim for C# `LibreMetaverse.Imaging.ImageChannels`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct ImageChannels;
impl ImageChannels {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.Imaging.ImageChannels";
pub const CSHARP_KIND: &'static str = "enum";
}
/// `class` shim for C# `LibreMetaverse.Imaging.ManagedImage`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct ManagedImage;
impl ManagedImage {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.Imaging.ManagedImage";
pub const CSHARP_KIND: &'static str = "class";
}

View File

@@ -0,0 +1,5 @@
//! Imaging abstractions corresponding to `LibreMetaverse.Imaging.Abstractions`.
mod generated;
pub use generated::*;

View File

@@ -0,0 +1,11 @@
[package]
name = "libremetaverse-lsl-tools"
version.workspace = true
edition.workspace = true
rust-version.workspace = true
license.workspace = true
repository.workspace = true
description = "LSL parser-tool shims for the MetaCrate LibreMetaverse rewrite"
[lints]
workspace = true

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,5 @@
//! LSL parsing tools corresponding to `LibreMetaverse.LslTools`.
mod generated;
pub use generated::*;

View File

@@ -0,0 +1,14 @@
[package]
name = "libremetaverse-prim-mesher"
version.workspace = true
edition.workspace = true
rust-version.workspace = true
license.workspace = true
repository.workspace = true
description = "Primitive meshing shims for the MetaCrate LibreMetaverse rewrite"
[dependencies]
libremetaverse-imaging = { path = "../libremetaverse-imaging" }
[lints]
workspace = true

View File

@@ -0,0 +1,139 @@
// @generated by tools/generate_surface.py; do not edit by hand.
// Source: LibreMetaverse 2aa70bb68513b39795da5d13c88f31b86e85a3ba
#![allow(non_camel_case_types)]
/// `struct` shim for C# `LibreMetaverse.PrimMesher.Coord`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct Coord;
impl Coord {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.PrimMesher.Coord";
pub const CSHARP_KIND: &'static str = "struct";
}
/// `struct` shim for C# `LibreMetaverse.PrimMesher.Face`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct Face;
impl Face {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.PrimMesher.Face";
pub const CSHARP_KIND: &'static str = "struct";
}
/// `class` shim for C# `LibreMetaverse.PrimMesher.ObjMesh`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct ObjMesh;
impl ObjMesh {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.PrimMesher.ObjMesh";
pub const CSHARP_KIND: &'static str = "class";
}
/// `class` shim for C# `LibreMetaverse.PrimMesher.Path`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct Path;
impl Path {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.PrimMesher.Path";
pub const CSHARP_KIND: &'static str = "class";
}
/// `struct` shim for C# `LibreMetaverse.PrimMesher.PathNode`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct PathNode;
impl PathNode {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.PrimMesher.PathNode";
pub const CSHARP_KIND: &'static str = "struct";
}
/// `enum` shim for C# `LibreMetaverse.PrimMesher.PathType`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct PathType;
impl PathType {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.PrimMesher.PathType";
pub const CSHARP_KIND: &'static str = "enum";
}
/// `class` shim for C# `LibreMetaverse.PrimMesher.PrimMesh`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct PrimMesh;
impl PrimMesh {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.PrimMesher.PrimMesh";
pub const CSHARP_KIND: &'static str = "class";
}
/// `class` shim for C# `LibreMetaverse.PrimMesher.Profile`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct Profile;
impl Profile {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.PrimMesher.Profile";
pub const CSHARP_KIND: &'static str = "class";
}
/// `struct` shim for C# `LibreMetaverse.PrimMesher.Quat`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct Quat;
impl Quat {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.PrimMesher.Quat";
pub const CSHARP_KIND: &'static str = "struct";
}
/// `class` shim for C# `LibreMetaverse.PrimMesher.SculptMap`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct SculptMap;
impl SculptMap {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.PrimMesher.SculptMap";
pub const CSHARP_KIND: &'static str = "class";
}
/// `class` shim for C# `LibreMetaverse.PrimMesher.SculptMesh`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct SculptMesh;
impl SculptMesh {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.PrimMesher.SculptMesh";
pub const CSHARP_KIND: &'static str = "class";
}
/// `enum` shim for C# `LibreMetaverse.PrimMesher.SculptType`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct SculptType;
impl SculptType {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.PrimMesher.SculptType";
pub const CSHARP_KIND: &'static str = "enum";
}
/// `struct` shim for C# `LibreMetaverse.PrimMesher.UVCoord`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct UVCoord;
impl UVCoord {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.PrimMesher.UVCoord";
pub const CSHARP_KIND: &'static str = "struct";
}
/// `class` shim for C# `LibreMetaverse.PrimMesher.VertexIndexer`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct VertexIndexer;
impl VertexIndexer {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.PrimMesher.VertexIndexer";
pub const CSHARP_KIND: &'static str = "class";
}
/// `struct` shim for C# `LibreMetaverse.PrimMesher.ViewerFace`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct ViewerFace;
impl ViewerFace {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.PrimMesher.ViewerFace";
pub const CSHARP_KIND: &'static str = "struct";
}
/// `struct` shim for C# `LibreMetaverse.PrimMesher.ViewerPolygon`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct ViewerPolygon;
impl ViewerPolygon {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.PrimMesher.ViewerPolygon";
pub const CSHARP_KIND: &'static str = "struct";
}
/// `struct` shim for C# `LibreMetaverse.PrimMesher.ViewerVertex`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct ViewerVertex;
impl ViewerVertex {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.PrimMesher.ViewerVertex";
pub const CSHARP_KIND: &'static str = "struct";
}

View File

@@ -0,0 +1,6 @@
//! Primitive mesher corresponding to `LibreMetaverse.PrimMesher`.
mod generated;
pub use generated::*;
pub use libremetaverse_imaging as imaging;

View File

@@ -0,0 +1,18 @@
[package]
name = "libremetaverse-rendering-mesh-foundry"
version.workspace = true
edition.workspace = true
rust-version.workspace = true
license.workspace = true
repository.workspace = true
description = "MeshFoundry renderer shims for the MetaCrate LibreMetaverse rewrite"
[dependencies]
libremetaverse = { path = "../libremetaverse" }
libremetaverse-imaging = { path = "../libremetaverse-imaging" }
libremetaverse-prim-mesher = { path = "../libremetaverse-prim-mesher" }
libremetaverse-structured-data = { path = "../libremetaverse-structured-data" }
libremetaverse-types = { path = "../libremetaverse-types" }
[lints]
workspace = true

View File

@@ -0,0 +1,11 @@
// @generated by tools/generate_surface.py; do not edit by hand.
// Source: LibreMetaverse 2aa70bb68513b39795da5d13c88f31b86e85a3ba
#![allow(non_camel_case_types)]
/// `class` shim for C# `LibreMetaverse.Rendering.MeshFoundry`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct MeshFoundry;
impl MeshFoundry {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.Rendering.MeshFoundry";
pub const CSHARP_KIND: &'static str = "class";
}

View File

@@ -0,0 +1,10 @@
//! MeshFoundry renderer corresponding to `LibreMetaverse.Rendering.MeshFoundry`.
mod generated;
pub use generated::*;
pub use libremetaverse as core;
pub use libremetaverse_imaging as imaging;
pub use libremetaverse_prim_mesher as prim_mesher;
pub use libremetaverse_structured_data as structured_data;
pub use libremetaverse_types as types;

View File

@@ -0,0 +1,15 @@
[package]
name = "libremetaverse-rendering-simple"
version.workspace = true
edition.workspace = true
rust-version.workspace = true
license.workspace = true
repository.workspace = true
description = "Simple renderer shims for the MetaCrate LibreMetaverse rewrite"
[dependencies]
libremetaverse = { path = "../libremetaverse" }
libremetaverse-types = { path = "../libremetaverse-types" }
[lints]
workspace = true

View File

@@ -0,0 +1,11 @@
// @generated by tools/generate_surface.py; do not edit by hand.
// Source: LibreMetaverse 2aa70bb68513b39795da5d13c88f31b86e85a3ba
#![allow(non_camel_case_types)]
/// `class` shim for C# `LibreMetaverse.Rendering.SimpleRenderer`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct SimpleRenderer;
impl SimpleRenderer {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.Rendering.SimpleRenderer";
pub const CSHARP_KIND: &'static str = "class";
}

View File

@@ -0,0 +1,7 @@
//! Simple renderer corresponding to `LibreMetaverse.Rendering.Simple`.
mod generated;
pub use generated::*;
pub use libremetaverse as core;
pub use libremetaverse_types as types;

View File

@@ -0,0 +1,11 @@
[package]
name = "libremetaverse-rlv"
version.workspace = true
edition.workspace = true
rust-version.workspace = true
license.workspace = true
repository.workspace = true
description = "RLV protocol shims for the MetaCrate LibreMetaverse rewrite"
[lints]
workspace = true

View File

@@ -0,0 +1,224 @@
// @generated by tools/generate_surface.py; do not edit by hand.
// Source: LibreMetaverse 2aa70bb68513b39795da5d13c88f31b86e85a3ba
#![allow(non_camel_case_types)]
/// `class` shim for C# `LibreMetaverse.RLV.AttachmentRequest`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct AttachmentRequest;
impl AttachmentRequest {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.RLV.AttachmentRequest";
pub const CSHARP_KIND: &'static str = "class";
}
/// `class` shim for C# `LibreMetaverse.RLV.CameraRestrictions`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct CameraRestrictions;
impl CameraRestrictions {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.RLV.CameraRestrictions";
pub const CSHARP_KIND: &'static str = "class";
}
/// `class` shim for C# `LibreMetaverse.RLV.CameraSettings`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct CameraSettings;
impl CameraSettings {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.RLV.CameraSettings";
pub const CSHARP_KIND: &'static str = "class";
}
/// `enum` shim for C# `LibreMetaverse.RLV.HoverTextLocation`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct HoverTextLocation;
impl HoverTextLocation {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.RLV.HoverTextLocation";
pub const CSHARP_KIND: &'static str = "enum";
}
/// Shim for C# `LibreMetaverse.RLV.IRlvActionCallbacks`.
pub trait IRlvActionCallbacks {
const CSHARP_NAME: &'static str = "LibreMetaverse.RLV.IRlvActionCallbacks";
}
/// Shim for C# `LibreMetaverse.RLV.IRlvQueryCallbacks`.
pub trait IRlvQueryCallbacks {
const CSHARP_NAME: &'static str = "LibreMetaverse.RLV.IRlvQueryCallbacks";
}
/// `class` shim for C# `LibreMetaverse.RLV.InventoryMap`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct InventoryMap;
impl InventoryMap {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.RLV.InventoryMap";
pub const CSHARP_KIND: &'static str = "class";
}
/// `class` shim for C# `LibreMetaverse.RLV.LockedFolderPublic`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct LockedFolderPublic;
impl LockedFolderPublic {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.RLV.LockedFolderPublic";
pub const CSHARP_KIND: &'static str = "class";
}
/// `enum` shim for C# `LibreMetaverse.RLV.ObjectLocation`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct ObjectLocation;
impl ObjectLocation {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.RLV.ObjectLocation";
pub const CSHARP_KIND: &'static str = "enum";
}
/// `class` shim for C# `LibreMetaverse.RLV.RlvActionCallbacksDefault`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct RlvActionCallbacksDefault;
impl RlvActionCallbacksDefault {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.RLV.RlvActionCallbacksDefault";
pub const CSHARP_KIND: &'static str = "class";
}
/// `enum` shim for C# `LibreMetaverse.RLV.RlvAttachmentPoint`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct RlvAttachmentPoint;
impl RlvAttachmentPoint {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.RLV.RlvAttachmentPoint";
pub const CSHARP_KIND: &'static str = "enum";
}
/// `class` shim for C# `LibreMetaverse.RLV.RlvBlacklist`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct RlvBlacklist;
impl RlvBlacklist {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.RLV.RlvBlacklist";
pub const CSHARP_KIND: &'static str = "class";
}
/// `class` shim for C# `LibreMetaverse.RLV.RlvCallbacksDefault`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct RlvCallbacksDefault;
impl RlvCallbacksDefault {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.RLV.RlvCallbacksDefault";
pub const CSHARP_KIND: &'static str = "class";
}
/// `class` shim for C# `LibreMetaverse.RLV.RlvCommandProcessor`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct RlvCommandProcessor;
impl RlvCommandProcessor {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.RLV.RlvCommandProcessor";
pub const CSHARP_KIND: &'static str = "class";
}
/// `class` shim for C# `LibreMetaverse.RLV.RlvCommon`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct RlvCommon;
impl RlvCommon {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.RLV.RlvCommon";
pub const CSHARP_KIND: &'static str = "class";
}
/// `enum` shim for C# `LibreMetaverse.RLV.RlvGestureState`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct RlvGestureState;
impl RlvGestureState {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.RLV.RlvGestureState";
pub const CSHARP_KIND: &'static str = "enum";
}
/// `enum` shim for C# `LibreMetaverse.RLV.RlvGetDebugType`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct RlvGetDebugType;
impl RlvGetDebugType {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.RLV.RlvGetDebugType";
pub const CSHARP_KIND: &'static str = "enum";
}
/// `enum` shim for C# `LibreMetaverse.RLV.RlvGetEnvType`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct RlvGetEnvType;
impl RlvGetEnvType {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.RLV.RlvGetEnvType";
pub const CSHARP_KIND: &'static str = "enum";
}
/// `class` shim for C# `LibreMetaverse.RLV.RlvInventoryItem`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct RlvInventoryItem;
impl RlvInventoryItem {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.RLV.RlvInventoryItem";
pub const CSHARP_KIND: &'static str = "class";
}
/// `class` shim for C# `LibreMetaverse.RLV.RlvPermissionsService`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct RlvPermissionsService;
impl RlvPermissionsService {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.RLV.RlvPermissionsService";
pub const CSHARP_KIND: &'static str = "class";
}
/// `class` shim for C# `LibreMetaverse.RLV.RlvRestriction`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct RlvRestriction;
impl RlvRestriction {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.RLV.RlvRestriction";
pub const CSHARP_KIND: &'static str = "class";
}
/// `class` shim for C# `LibreMetaverse.RLV.RlvRestrictionManager`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct RlvRestrictionManager;
impl RlvRestrictionManager {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.RLV.RlvRestrictionManager";
pub const CSHARP_KIND: &'static str = "class";
}
/// `enum` shim for C# `LibreMetaverse.RLV.RlvRestrictionType`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct RlvRestrictionType;
impl RlvRestrictionType {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.RLV.RlvRestrictionType";
pub const CSHARP_KIND: &'static str = "enum";
}
/// `class` shim for C# `LibreMetaverse.RLV.RlvService`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct RlvService;
impl RlvService {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.RLV.RlvService";
pub const CSHARP_KIND: &'static str = "class";
}
/// `class` shim for C# `LibreMetaverse.RLV.RlvSharedFolder`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct RlvSharedFolder;
impl RlvSharedFolder {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.RLV.RlvSharedFolder";
pub const CSHARP_KIND: &'static str = "class";
}
/// `enum` shim for C# `LibreMetaverse.RLV.RlvWearableType`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct RlvWearableType;
impl RlvWearableType {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.RLV.RlvWearableType";
pub const CSHARP_KIND: &'static str = "enum";
}
/// `enum` shim for C# `LibreMetaverse.RLV.TouchLocation`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct TouchLocation;
impl TouchLocation {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.RLV.TouchLocation";
pub const CSHARP_KIND: &'static str = "enum";
}
pub mod event_arguments {
/// `class` shim for C# `LibreMetaverse.RLV.EventArguments.RestrictionUpdatedEventArgs`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct RestrictionUpdatedEventArgs;
impl RestrictionUpdatedEventArgs {
pub const CSHARP_NAME: &'static str =
"LibreMetaverse.RLV.EventArguments.RestrictionUpdatedEventArgs";
pub const CSHARP_KIND: &'static str = "class";
}
}

View File

@@ -0,0 +1,5 @@
//! Restrained Love Viewer support corresponding to `LibreMetaverse.RLV`.
mod generated;
pub use generated::*;

View File

@@ -0,0 +1,14 @@
[package]
name = "libremetaverse-structured-data"
version.workspace = true
edition.workspace = true
rust-version.workspace = true
license.workspace = true
repository.workspace = true
description = "OSD and LLSD shims for the MetaCrate LibreMetaverse rewrite"
[dependencies]
libremetaverse-types = { path = "../libremetaverse-types" }
[lints]
workspace = true

View File

@@ -0,0 +1,131 @@
// @generated by tools/generate_surface.py; do not edit by hand.
// Source: LibreMetaverse 2aa70bb68513b39795da5d13c88f31b86e85a3ba
#![allow(non_camel_case_types)]
/// `class` shim for C# `LibreMetaverse.StructuredData.OSD`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct OSD;
impl OSD {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.StructuredData.OSD";
pub const CSHARP_KIND: &'static str = "class";
}
/// `class` shim for C# `LibreMetaverse.StructuredData.OSDArray`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct OSDArray;
impl OSDArray {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.StructuredData.OSDArray";
pub const CSHARP_KIND: &'static str = "class";
}
/// `class` shim for C# `LibreMetaverse.StructuredData.OSDBinary`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct OSDBinary;
impl OSDBinary {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.StructuredData.OSDBinary";
pub const CSHARP_KIND: &'static str = "class";
}
/// `class` shim for C# `LibreMetaverse.StructuredData.OSDBoolean`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct OSDBoolean;
impl OSDBoolean {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.StructuredData.OSDBoolean";
pub const CSHARP_KIND: &'static str = "class";
}
/// `class` shim for C# `LibreMetaverse.StructuredData.OSDDate`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct OSDDate;
impl OSDDate {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.StructuredData.OSDDate";
pub const CSHARP_KIND: &'static str = "class";
}
/// `class` shim for C# `LibreMetaverse.StructuredData.OSDException`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct OSDException;
impl OSDException {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.StructuredData.OSDException";
pub const CSHARP_KIND: &'static str = "class";
}
/// `enum` shim for C# `LibreMetaverse.StructuredData.OSDFormat`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct OSDFormat;
impl OSDFormat {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.StructuredData.OSDFormat";
pub const CSHARP_KIND: &'static str = "enum";
}
/// `class` shim for C# `LibreMetaverse.StructuredData.OSDInteger`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct OSDInteger;
impl OSDInteger {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.StructuredData.OSDInteger";
pub const CSHARP_KIND: &'static str = "class";
}
/// `class` shim for C# `LibreMetaverse.StructuredData.OSDLlsdXml`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct OSDLlsdXml;
impl OSDLlsdXml {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.StructuredData.OSDLlsdXml";
pub const CSHARP_KIND: &'static str = "class";
}
/// `class` shim for C# `LibreMetaverse.StructuredData.OSDMap`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct OSDMap;
impl OSDMap {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.StructuredData.OSDMap";
pub const CSHARP_KIND: &'static str = "class";
}
/// `class` shim for C# `LibreMetaverse.StructuredData.OSDParser`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct OSDParser;
impl OSDParser {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.StructuredData.OSDParser";
pub const CSHARP_KIND: &'static str = "class";
}
/// `class` shim for C# `LibreMetaverse.StructuredData.OSDReal`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct OSDReal;
impl OSDReal {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.StructuredData.OSDReal";
pub const CSHARP_KIND: &'static str = "class";
}
/// `class` shim for C# `LibreMetaverse.StructuredData.OSDString`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct OSDString;
impl OSDString {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.StructuredData.OSDString";
pub const CSHARP_KIND: &'static str = "class";
}
/// `enum` shim for C# `LibreMetaverse.StructuredData.OSDType`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct OSDType;
impl OSDType {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.StructuredData.OSDType";
pub const CSHARP_KIND: &'static str = "enum";
}
/// `class` shim for C# `LibreMetaverse.StructuredData.OSDUUID`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct OSDUUID;
impl OSDUUID {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.StructuredData.OSDUUID";
pub const CSHARP_KIND: &'static str = "class";
}
/// `class` shim for C# `LibreMetaverse.StructuredData.OSDUri`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct OSDUri;
impl OSDUri {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.StructuredData.OSDUri";
pub const CSHARP_KIND: &'static str = "class";
}

View File

@@ -0,0 +1,6 @@
//! Structured-data types corresponding to `LibreMetaverse.StructuredData`.
mod generated;
pub use generated::*;
pub use libremetaverse_types as types;

View File

@@ -0,0 +1,11 @@
[package]
name = "libremetaverse-types"
version.workspace = true
edition.workspace = true
rust-version.workspace = true
license.workspace = true
repository.workspace = true
description = "Core value-type shims for the MetaCrate LibreMetaverse rewrite"
[lints]
workspace = true

View File

@@ -0,0 +1,360 @@
// @generated by tools/generate_surface.py; do not edit by hand.
// Source: LibreMetaverse 2aa70bb68513b39795da5d13c88f31b86e85a3ba
#![allow(non_camel_case_types)]
/// `enum` shim for C# `LibreMetaverse.AssetType`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct AssetType;
impl AssetType {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.AssetType";
pub const CSHARP_KIND: &'static str = "enum";
}
/// `enum` shim for C# `LibreMetaverse.AttachmentPoint`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct AttachmentPoint;
impl AttachmentPoint {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.AttachmentPoint";
pub const CSHARP_KIND: &'static str = "enum";
}
/// `class` shim for C# `LibreMetaverse.CRC32`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct CRC32;
impl CRC32 {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.CRC32";
pub const CSHARP_KIND: &'static str = "class";
}
/// `class` shim for C# `LibreMetaverse.CacheDictionary`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct CacheDictionary<T0 = (), T1 = ()>(std::marker::PhantomData<(T0, T1)>);
impl<T0, T1> CacheDictionary<T0, T1> {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.CacheDictionary";
pub const CSHARP_KIND: &'static str = "class";
}
/// `class` shim for C# `LibreMetaverse.CacheDictionaryEnumerator`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct CacheDictionaryEnumerator;
impl CacheDictionaryEnumerator {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.CacheDictionaryEnumerator";
pub const CSHARP_KIND: &'static str = "class";
}
/// `enum` shim for C# `LibreMetaverse.ClickAction`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct ClickAction;
impl ClickAction {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.ClickAction";
pub const CSHARP_KIND: &'static str = "enum";
}
/// `struct` shim for C# `LibreMetaverse.Color4`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct Color4;
impl Color4 {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.Color4";
pub const CSHARP_KIND: &'static str = "struct";
}
/// `class` shim for C# `LibreMetaverse.DoubleDictionary`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct DoubleDictionary<T0 = (), T1 = (), T2 = ()>(std::marker::PhantomData<(T0, T1, T2)>);
impl<T0, T1, T2> DoubleDictionary<T0, T1, T2> {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.DoubleDictionary";
pub const CSHARP_KIND: &'static str = "class";
}
/// `class` shim for C# `LibreMetaverse.EmptyRemovalStrategy`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct EmptyRemovalStrategy<T0 = ()>(std::marker::PhantomData<(T0,)>);
impl<T0> EmptyRemovalStrategy<T0> {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.EmptyRemovalStrategy";
pub const CSHARP_KIND: &'static str = "class";
}
/// `class` shim for C# `LibreMetaverse.EnumInfoAttribute`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct EnumInfoAttribute;
impl EnumInfoAttribute {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.EnumInfoAttribute";
pub const CSHARP_KIND: &'static str = "class";
}
/// `class` shim for C# `LibreMetaverse.EnumInfoExtensions`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct EnumInfoExtensions;
impl EnumInfoExtensions {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.EnumInfoExtensions";
pub const CSHARP_KIND: &'static str = "class";
}
/// `class` shim for C# `LibreMetaverse.ExpiringCache`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct ExpiringCache<T0 = (), T1 = ()>(std::marker::PhantomData<(T0, T1)>);
impl<T0, T1> ExpiringCache<T0, T1> {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.ExpiringCache";
pub const CSHARP_KIND: &'static str = "class";
}
/// `enum` shim for C# `LibreMetaverse.ExtraParamType`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct ExtraParamType;
impl ExtraParamType {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.ExtraParamType";
pub const CSHARP_KIND: &'static str = "enum";
}
/// `enum` shim for C# `LibreMetaverse.FaceType`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct FaceType;
impl FaceType {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.FaceType";
pub const CSHARP_KIND: &'static str = "enum";
}
/// `enum` shim for C# `LibreMetaverse.FolderType`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct FolderType;
impl FolderType {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.FolderType";
pub const CSHARP_KIND: &'static str = "enum";
}
/// `enum` shim for C# `LibreMetaverse.HoleType`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct HoleType;
impl HoleType {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.HoleType";
pub const CSHARP_KIND: &'static str = "enum";
}
/// Shim for C# `LibreMetaverse.ICacheDictionaryRemovalStrategy`.
pub trait ICacheDictionaryRemovalStrategy<T0 = ()> {
const CSHARP_NAME: &'static str = "LibreMetaverse.ICacheDictionaryRemovalStrategy";
}
/// `enum` shim for C# `LibreMetaverse.InventoryType`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct InventoryType;
impl InventoryType {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.InventoryType";
pub const CSHARP_KIND: &'static str = "enum";
}
/// `enum` shim for C# `LibreMetaverse.JointType`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct JointType;
impl JointType {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.JointType";
pub const CSHARP_KIND: &'static str = "enum";
}
/// `class` shim for C# `LibreMetaverse.LruRemovalStrategy`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct LruRemovalStrategy<T0 = ()>(std::marker::PhantomData<(T0,)>);
impl<T0> LruRemovalStrategy<T0> {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.LruRemovalStrategy";
pub const CSHARP_KIND: &'static str = "class";
}
/// `enum` shim for C# `LibreMetaverse.Material`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct Material;
impl Material {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.Material";
pub const CSHARP_KIND: &'static str = "enum";
}
/// `struct` shim for C# `LibreMetaverse.Matrix4`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct Matrix4;
impl Matrix4 {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.Matrix4";
pub const CSHARP_KIND: &'static str = "struct";
}
/// `class` shim for C# `LibreMetaverse.MruRemovalStrategy`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct MruRemovalStrategy<T0 = ()>(std::marker::PhantomData<(T0,)>);
impl<T0> MruRemovalStrategy<T0> {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.MruRemovalStrategy";
pub const CSHARP_KIND: &'static str = "class";
}
/// `class` shim for C# `LibreMetaverse.MultiValueDictionary`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct MultiValueDictionary<T0 = (), T1 = ()>(std::marker::PhantomData<(T0, T1)>);
impl<T0, T1> MultiValueDictionary<T0, T1> {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.MultiValueDictionary";
pub const CSHARP_KIND: &'static str = "class";
}
/// `enum` shim for C# `LibreMetaverse.ObjectCategory`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct ObjectCategory;
impl ObjectCategory {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.ObjectCategory";
pub const CSHARP_KIND: &'static str = "enum";
}
/// `enum` shim for C# `LibreMetaverse.PCode`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct PCode;
impl PCode {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.PCode";
pub const CSHARP_KIND: &'static str = "enum";
}
/// `enum` shim for C# `LibreMetaverse.PathCurve`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct PathCurve;
impl PathCurve {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.PathCurve";
pub const CSHARP_KIND: &'static str = "enum";
}
/// `enum` shim for C# `LibreMetaverse.PhysicsShapeType`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct PhysicsShapeType;
impl PhysicsShapeType {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.PhysicsShapeType";
pub const CSHARP_KIND: &'static str = "enum";
}
/// `enum` shim for C# `LibreMetaverse.Platform`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct Platform;
impl Platform {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.Platform";
pub const CSHARP_KIND: &'static str = "enum";
}
/// `enum` shim for C# `LibreMetaverse.PrimFlags`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct PrimFlags;
impl PrimFlags {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.PrimFlags";
pub const CSHARP_KIND: &'static str = "enum";
}
/// `enum` shim for C# `LibreMetaverse.PrimType`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct PrimType;
impl PrimType {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.PrimType";
pub const CSHARP_KIND: &'static str = "enum";
}
/// `enum` shim for C# `LibreMetaverse.ProfileCurve`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct ProfileCurve;
impl ProfileCurve {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.ProfileCurve";
pub const CSHARP_KIND: &'static str = "enum";
}
/// `struct` shim for C# `LibreMetaverse.Quaternion`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct Quaternion;
impl Quaternion {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.Quaternion";
pub const CSHARP_KIND: &'static str = "struct";
}
/// `struct` shim for C# `LibreMetaverse.Ray`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct Ray;
impl Ray {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.Ray";
pub const CSHARP_KIND: &'static str = "struct";
}
/// `enum` shim for C# `LibreMetaverse.SaleType`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct SaleType;
impl SaleType {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.SaleType";
pub const CSHARP_KIND: &'static str = "enum";
}
/// `enum` shim for C# `LibreMetaverse.SculptType`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct SculptType;
impl SculptType {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.SculptType";
pub const CSHARP_KIND: &'static str = "enum";
}
/// `enum` shim for C# `LibreMetaverse.SoundFlags`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct SoundFlags;
impl SoundFlags {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.SoundFlags";
pub const CSHARP_KIND: &'static str = "enum";
}
/// `class` shim for C# `LibreMetaverse.TokenBucket`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct TokenBucket;
impl TokenBucket {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.TokenBucket";
pub const CSHARP_KIND: &'static str = "class";
}
/// `record struct` shim for C# `LibreMetaverse.UUID`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct UUID;
impl UUID {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.UUID";
pub const CSHARP_KIND: &'static str = "record_struct";
}
/// `class` shim for C# `LibreMetaverse.Utils`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct Utils;
impl Utils {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.Utils";
pub const CSHARP_KIND: &'static str = "class";
}
/// `struct` shim for C# `LibreMetaverse.Vector2`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct Vector2;
impl Vector2 {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.Vector2";
pub const CSHARP_KIND: &'static str = "struct";
}
/// `struct` shim for C# `LibreMetaverse.Vector3`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct Vector3;
impl Vector3 {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.Vector3";
pub const CSHARP_KIND: &'static str = "struct";
}
/// `struct` shim for C# `LibreMetaverse.Vector3d`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct Vector3d;
impl Vector3d {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.Vector3d";
pub const CSHARP_KIND: &'static str = "struct";
}
/// `struct` shim for C# `LibreMetaverse.Vector4`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct Vector4;
impl Vector4 {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.Vector4";
pub const CSHARP_KIND: &'static str = "struct";
}
/// `enum` shim for C# `LibreMetaverse.WearableType`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct WearableType;
impl WearableType {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.WearableType";
pub const CSHARP_KIND: &'static str = "enum";
}

View File

@@ -0,0 +1,5 @@
//! Core value types corresponding to `LibreMetaverse.Types`.
mod generated;
pub use generated::*;

View File

@@ -0,0 +1,16 @@
[package]
name = "libremetaverse-utilities"
version.workspace = true
edition.workspace = true
rust-version.workspace = true
license.workspace = true
repository.workspace = true
description = "Utility shims for the MetaCrate LibreMetaverse rewrite"
[dependencies]
libremetaverse = { path = "../libremetaverse" }
libremetaverse-structured-data = { path = "../libremetaverse-structured-data" }
libremetaverse-types = { path = "../libremetaverse-types" }
[lints]
workspace = true

View File

@@ -0,0 +1,27 @@
// @generated by tools/generate_surface.py; do not edit by hand.
// Source: LibreMetaverse 2aa70bb68513b39795da5d13c88f31b86e85a3ba
#![allow(non_camel_case_types)]
/// `class` shim for C# `LibreMetaverse.Utilities.ConnectionManager`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct ConnectionManager;
impl ConnectionManager {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.Utilities.ConnectionManager";
pub const CSHARP_KIND: &'static str = "class";
}
/// `class` shim for C# `LibreMetaverse.Utilities.Realism`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct Realism;
impl Realism {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.Utilities.Realism";
pub const CSHARP_KIND: &'static str = "class";
}
/// `enum` shim for C# `LibreMetaverse.Utilities.WaterType`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct WaterType;
impl WaterType {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.Utilities.WaterType";
pub const CSHARP_KIND: &'static str = "enum";
}

View File

@@ -0,0 +1,8 @@
//! Utilities corresponding to `LibreMetaverse.Utilities`.
mod generated;
pub use generated::*;
pub use libremetaverse as core;
pub use libremetaverse_structured_data as structured_data;
pub use libremetaverse_types as types;

View File

@@ -0,0 +1,16 @@
[package]
name = "libremetaverse-voice-vivox"
version.workspace = true
edition.workspace = true
rust-version.workspace = true
license.workspace = true
repository.workspace = true
description = "Vivox voice shims for the MetaCrate LibreMetaverse rewrite"
[dependencies]
libremetaverse = { path = "../libremetaverse" }
libremetaverse-structured-data = { path = "../libremetaverse-structured-data" }
libremetaverse-types = { path = "../libremetaverse-types" }
[lints]
workspace = true

View File

@@ -0,0 +1,342 @@
// @generated by tools/generate_surface.py; do not edit by hand.
// Source: LibreMetaverse 2aa70bb68513b39795da5d13c88f31b86e85a3ba
#![allow(non_camel_case_types)]
/// `class` shim for C# `LibreMetaverse.Voice.Vivox.AccountLoginStateChangeEventArgs`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct AccountLoginStateChangeEventArgs;
impl AccountLoginStateChangeEventArgs {
pub const CSHARP_NAME: &'static str =
"LibreMetaverse.Voice.Vivox.AccountLoginStateChangeEventArgs";
pub const CSHARP_KIND: &'static str = "class";
}
/// `class` shim for C# `LibreMetaverse.Voice.Vivox.AudioPropertiesEventArgs`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct AudioPropertiesEventArgs;
impl AudioPropertiesEventArgs {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.Voice.Vivox.AudioPropertiesEventArgs";
pub const CSHARP_KIND: &'static str = "class";
}
/// `class` shim for C# `LibreMetaverse.Voice.Vivox.CaptureDevice`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct CaptureDevice;
impl CaptureDevice {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.Voice.Vivox.CaptureDevice";
pub const CSHARP_KIND: &'static str = "class";
}
/// `enum` shim for C# `LibreMetaverse.Voice.Vivox.ConnectionState`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct ConnectionState;
impl ConnectionState {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.Voice.Vivox.ConnectionState";
pub const CSHARP_KIND: &'static str = "enum";
}
/// `enum` shim for C# `LibreMetaverse.Voice.Vivox.LoginState`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct LoginState;
impl LoginState {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.Voice.Vivox.LoginState";
pub const CSHARP_KIND: &'static str = "enum";
}
/// `class` shim for C# `LibreMetaverse.Voice.Vivox.NewSessionEventArgs`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct NewSessionEventArgs;
impl NewSessionEventArgs {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.Voice.Vivox.NewSessionEventArgs";
pub const CSHARP_KIND: &'static str = "class";
}
/// `class` shim for C# `LibreMetaverse.Voice.Vivox.ParticipantAddedEventArgs`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct ParticipantAddedEventArgs;
impl ParticipantAddedEventArgs {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.Voice.Vivox.ParticipantAddedEventArgs";
pub const CSHARP_KIND: &'static str = "class";
}
/// `class` shim for C# `LibreMetaverse.Voice.Vivox.ParticipantPropertiesEventArgs`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct ParticipantPropertiesEventArgs;
impl ParticipantPropertiesEventArgs {
pub const CSHARP_NAME: &'static str =
"LibreMetaverse.Voice.Vivox.ParticipantPropertiesEventArgs";
pub const CSHARP_KIND: &'static str = "class";
}
/// `class` shim for C# `LibreMetaverse.Voice.Vivox.ParticipantRemovedEventArgs`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct ParticipantRemovedEventArgs;
impl ParticipantRemovedEventArgs {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.Voice.Vivox.ParticipantRemovedEventArgs";
pub const CSHARP_KIND: &'static str = "class";
}
/// `enum` shim for C# `LibreMetaverse.Voice.Vivox.ParticipantState`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct ParticipantState;
impl ParticipantState {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.Voice.Vivox.ParticipantState";
pub const CSHARP_KIND: &'static str = "enum";
}
/// `class` shim for C# `LibreMetaverse.Voice.Vivox.ParticipantStateChangeEventArgs`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct ParticipantStateChangeEventArgs;
impl ParticipantStateChangeEventArgs {
pub const CSHARP_NAME: &'static str =
"LibreMetaverse.Voice.Vivox.ParticipantStateChangeEventArgs";
pub const CSHARP_KIND: &'static str = "class";
}
/// `enum` shim for C# `LibreMetaverse.Voice.Vivox.ParticipantType`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct ParticipantType;
impl ParticipantType {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.Voice.Vivox.ParticipantType";
pub const CSHARP_KIND: &'static str = "enum";
}
/// `class` shim for C# `LibreMetaverse.Voice.Vivox.ParticipantUpdatedEventArgs`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct ParticipantUpdatedEventArgs;
impl ParticipantUpdatedEventArgs {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.Voice.Vivox.ParticipantUpdatedEventArgs";
pub const CSHARP_KIND: &'static str = "class";
}
/// `class` shim for C# `LibreMetaverse.Voice.Vivox.RenderDevice`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct RenderDevice;
impl RenderDevice {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.Voice.Vivox.RenderDevice";
pub const CSHARP_KIND: &'static str = "class";
}
/// `enum` shim for C# `LibreMetaverse.Voice.Vivox.ResponseType`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct ResponseType;
impl ResponseType {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.Voice.Vivox.ResponseType";
pub const CSHARP_KIND: &'static str = "enum";
}
/// `class` shim for C# `LibreMetaverse.Voice.Vivox.SessionAddedEventArgs`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct SessionAddedEventArgs;
impl SessionAddedEventArgs {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.Voice.Vivox.SessionAddedEventArgs";
pub const CSHARP_KIND: &'static str = "class";
}
/// `class` shim for C# `LibreMetaverse.Voice.Vivox.SessionGroupAddedEventArgs`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct SessionGroupAddedEventArgs;
impl SessionGroupAddedEventArgs {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.Voice.Vivox.SessionGroupAddedEventArgs";
pub const CSHARP_KIND: &'static str = "class";
}
/// `class` shim for C# `LibreMetaverse.Voice.Vivox.SessionMediaEventArgs`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct SessionMediaEventArgs;
impl SessionMediaEventArgs {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.Voice.Vivox.SessionMediaEventArgs";
pub const CSHARP_KIND: &'static str = "class";
}
/// `class` shim for C# `LibreMetaverse.Voice.Vivox.SessionRemovedEventArgs`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct SessionRemovedEventArgs;
impl SessionRemovedEventArgs {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.Voice.Vivox.SessionRemovedEventArgs";
pub const CSHARP_KIND: &'static str = "class";
}
/// `enum` shim for C# `LibreMetaverse.Voice.Vivox.SessionState`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct SessionState;
impl SessionState {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.Voice.Vivox.SessionState";
pub const CSHARP_KIND: &'static str = "enum";
}
/// `class` shim for C# `LibreMetaverse.Voice.Vivox.SessionStateChangeEventArgs`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct SessionStateChangeEventArgs;
impl SessionStateChangeEventArgs {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.Voice.Vivox.SessionStateChangeEventArgs";
pub const CSHARP_KIND: &'static str = "class";
}
/// `class` shim for C# `LibreMetaverse.Voice.Vivox.SessionUpdatedEventArgs`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct SessionUpdatedEventArgs;
impl SessionUpdatedEventArgs {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.Voice.Vivox.SessionUpdatedEventArgs";
pub const CSHARP_KIND: &'static str = "class";
}
/// `class` shim for C# `LibreMetaverse.Voice.Vivox.TCPPipe`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct TCPPipe;
impl TCPPipe {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.Voice.Vivox.TCPPipe";
pub const CSHARP_KIND: &'static str = "class";
}
/// `class` shim for C# `LibreMetaverse.Voice.Vivox.VoiceAccountEventArgs`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct VoiceAccountEventArgs;
impl VoiceAccountEventArgs {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.Voice.Vivox.VoiceAccountEventArgs";
pub const CSHARP_KIND: &'static str = "class";
}
/// `class` shim for C# `LibreMetaverse.Voice.Vivox.VoiceConnectorEventArgs`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct VoiceConnectorEventArgs;
impl VoiceConnectorEventArgs {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.Voice.Vivox.VoiceConnectorEventArgs";
pub const CSHARP_KIND: &'static str = "class";
}
/// `class` shim for C# `LibreMetaverse.Voice.Vivox.VoiceDevicesEventArgs`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct VoiceDevicesEventArgs;
impl VoiceDevicesEventArgs {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.Voice.Vivox.VoiceDevicesEventArgs";
pub const CSHARP_KIND: &'static str = "class";
}
/// `class` shim for C# `LibreMetaverse.Voice.Vivox.VoiceEvent`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct VoiceEvent;
impl VoiceEvent {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.Voice.Vivox.VoiceEvent";
pub const CSHARP_KIND: &'static str = "class";
}
/// `class` shim for C# `LibreMetaverse.Voice.Vivox.VoiceGateway`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct VoiceGateway;
impl VoiceGateway {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.Voice.Vivox.VoiceGateway";
pub const CSHARP_KIND: &'static str = "class";
}
/// `class` shim for C# `LibreMetaverse.Voice.Vivox.VoiceInputXml`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct VoiceInputXml;
impl VoiceInputXml {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.Voice.Vivox.VoiceInputXml";
pub const CSHARP_KIND: &'static str = "class";
}
/// `class` shim for C# `LibreMetaverse.Voice.Vivox.VoiceLoggingSettings`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct VoiceLoggingSettings;
impl VoiceLoggingSettings {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.Voice.Vivox.VoiceLoggingSettings";
pub const CSHARP_KIND: &'static str = "class";
}
/// `class` shim for C# `LibreMetaverse.Voice.Vivox.VoiceManager`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct VoiceManager;
impl VoiceManager {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.Voice.Vivox.VoiceManager";
pub const CSHARP_KIND: &'static str = "class";
}
/// `class` shim for C# `LibreMetaverse.Voice.Vivox.VoiceParticipant`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct VoiceParticipant;
impl VoiceParticipant {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.Voice.Vivox.VoiceParticipant";
pub const CSHARP_KIND: &'static str = "class";
}
/// `class` shim for C# `LibreMetaverse.Voice.Vivox.VoicePosition`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct VoicePosition;
impl VoicePosition {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.Voice.Vivox.VoicePosition";
pub const CSHARP_KIND: &'static str = "class";
}
/// `class` shim for C# `LibreMetaverse.Voice.Vivox.VoiceRequest`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct VoiceRequest;
impl VoiceRequest {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.Voice.Vivox.VoiceRequest";
pub const CSHARP_KIND: &'static str = "class";
}
/// `class` shim for C# `LibreMetaverse.Voice.Vivox.VoiceResponse`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct VoiceResponse;
impl VoiceResponse {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.Voice.Vivox.VoiceResponse";
pub const CSHARP_KIND: &'static str = "class";
}
/// `class` shim for C# `LibreMetaverse.Voice.Vivox.VoiceResponseEventArgs`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct VoiceResponseEventArgs;
impl VoiceResponseEventArgs {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.Voice.Vivox.VoiceResponseEventArgs";
pub const CSHARP_KIND: &'static str = "class";
}
/// `class` shim for C# `LibreMetaverse.Voice.Vivox.VoiceResponseResults`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct VoiceResponseResults;
impl VoiceResponseResults {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.Voice.Vivox.VoiceResponseResults";
pub const CSHARP_KIND: &'static str = "class";
}
/// `enum` shim for C# `LibreMetaverse.Voice.Vivox.VoiceServiceType`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct VoiceServiceType;
impl VoiceServiceType {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.Voice.Vivox.VoiceServiceType";
pub const CSHARP_KIND: &'static str = "enum";
}
/// `class` shim for C# `LibreMetaverse.Voice.Vivox.VoiceSession`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct VoiceSession;
impl VoiceSession {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.Voice.Vivox.VoiceSession";
pub const CSHARP_KIND: &'static str = "class";
}
/// `class` shim for C# `LibreMetaverse.Voice.Vivox.VoiceSessionEventArgs`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct VoiceSessionEventArgs;
impl VoiceSessionEventArgs {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.Voice.Vivox.VoiceSessionEventArgs";
pub const CSHARP_KIND: &'static str = "class";
}
/// `enum` shim for C# `LibreMetaverse.Voice.Vivox.VoiceStatus`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct VoiceStatus;
impl VoiceStatus {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.Voice.Vivox.VoiceStatus";
pub const CSHARP_KIND: &'static str = "enum";
}
/// `delegate` shim for C# `LibreMetaverse.Voice.Vivox.void`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct void;
impl void {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.Voice.Vivox.void";
pub const CSHARP_KIND: &'static str = "delegate";
}

View File

@@ -0,0 +1,8 @@
//! Vivox adapter corresponding to `LibreMetaverse.Voice.Vivox`.
mod generated;
pub use generated::*;
pub use libremetaverse as core;
pub use libremetaverse_structured_data as structured_data;
pub use libremetaverse_types as types;

View File

@@ -0,0 +1,15 @@
[package]
name = "libremetaverse-voice-webrtc"
version.workspace = true
edition.workspace = true
rust-version.workspace = true
license.workspace = true
repository.workspace = true
description = "WebRTC voice shims for the MetaCrate LibreMetaverse rewrite"
[dependencies]
libremetaverse = { path = "../libremetaverse" }
libremetaverse-structured-data = { path = "../libremetaverse-structured-data" }
[lints]
workspace = true

View File

@@ -0,0 +1,106 @@
// @generated by tools/generate_surface.py; do not edit by hand.
// Source: LibreMetaverse 2aa70bb68513b39795da5d13c88f31b86e85a3ba
#![allow(non_camel_case_types)]
/// `class` shim for C# `LibreMetaverse.Voice.WebRTC.AvatarPosition`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct AvatarPosition;
impl AvatarPosition {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.Voice.WebRTC.AvatarPosition";
pub const CSHARP_KIND: &'static str = "class";
}
/// `enum` shim for C# `LibreMetaverse.Voice.WebRTC.ESessionType`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct ESessionType;
impl ESessionType {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.Voice.WebRTC.ESessionType";
pub const CSHARP_KIND: &'static str = "enum";
}
/// Shim for C# `LibreMetaverse.Voice.WebRTC.IVoiceLogger`.
pub trait IVoiceLogger {
const CSHARP_NAME: &'static str = "LibreMetaverse.Voice.WebRTC.IVoiceLogger";
}
/// `struct` shim for C# `LibreMetaverse.Voice.WebRTC.Int3`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct Int3;
impl Int3 {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.Voice.WebRTC.Int3";
pub const CSHARP_KIND: &'static str = "struct";
}
/// `struct` shim for C# `LibreMetaverse.Voice.WebRTC.Int4`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct Int4;
impl Int4 {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.Voice.WebRTC.Int4";
pub const CSHARP_KIND: &'static str = "struct";
}
/// `class` shim for C# `LibreMetaverse.Voice.WebRTC.LibreMetaverseVoiceLogger`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct LibreMetaverseVoiceLogger;
impl LibreMetaverseVoiceLogger {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.Voice.WebRTC.LibreMetaverseVoiceLogger";
pub const CSHARP_KIND: &'static str = "class";
}
/// `class` shim for C# `LibreMetaverse.Voice.WebRTC.OpusDecoderContext`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct OpusDecoderContext;
impl OpusDecoderContext {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.Voice.WebRTC.OpusDecoderContext";
pub const CSHARP_KIND: &'static str = "class";
}
/// `class` shim for C# `LibreMetaverse.Voice.WebRTC.PeerAudioState`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct PeerAudioState;
impl PeerAudioState {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.Voice.WebRTC.PeerAudioState";
pub const CSHARP_KIND: &'static str = "class";
}
/// `class` shim for C# `LibreMetaverse.Voice.WebRTC.PeerManager`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct PeerManager;
impl PeerManager {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.Voice.WebRTC.PeerManager";
pub const CSHARP_KIND: &'static str = "class";
}
/// `class` shim for C# `LibreMetaverse.Voice.WebRTC.VoiceException`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct VoiceException;
impl VoiceException {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.Voice.WebRTC.VoiceException";
pub const CSHARP_KIND: &'static str = "class";
}
/// `class` shim for C# `LibreMetaverse.Voice.WebRTC.VoiceManager`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct VoiceManager;
impl VoiceManager {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.Voice.WebRTC.VoiceManager";
pub const CSHARP_KIND: &'static str = "class";
}
/// `class` shim for C# `LibreMetaverse.Voice.WebRTC.VoiceSession`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct VoiceSession;
impl VoiceSession {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.Voice.WebRTC.VoiceSession";
pub const CSHARP_KIND: &'static str = "class";
}
pub mod libre_metaverse {
/// `class` shim for C# `LibreMetaverse.AudioDevice`; members remain intentionally unimplemented.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct AudioDevice;
impl AudioDevice {
pub const CSHARP_NAME: &'static str = "LibreMetaverse.AudioDevice";
pub const CSHARP_KIND: &'static str = "class";
}
}

View File

@@ -0,0 +1,7 @@
//! WebRTC voice adapter corresponding to `LibreMetaverse.Voice.WebRTC`.
mod generated;
pub use generated::*;
pub use libremetaverse as core;
pub use libremetaverse_structured_data as structured_data;

View File

@@ -0,0 +1,16 @@
[package]
name = "libremetaverse"
version.workspace = true
edition.workspace = true
rust-version.workspace = true
license.workspace = true
repository.workspace = true
description = "Rust rewrite shell for the LibreMetaverse client library"
[dependencies]
libremetaverse-imaging = { path = "../libremetaverse-imaging" }
libremetaverse-structured-data = { path = "../libremetaverse-structured-data" }
libremetaverse-types = { path = "../libremetaverse-types" }
[lints]
workspace = true

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,20 @@
//! Public rewrite shell corresponding to the main `LibreMetaverse` assembly.
mod generated;
pub use generated::*;
pub use libremetaverse_imaging as imaging_abstractions;
pub use libremetaverse_structured_data as structured_data;
pub use libremetaverse_types as types;
/// Common behavior for program shims while the network stack is unimplemented.
pub mod shim {
use std::process::ExitCode;
/// Reports that an upstream sample has a target but no implementation yet.
#[must_use]
pub fn pending_program(name: &str) -> ExitCode {
eprintln!("{name}: LibreMetaverse Rust port is not implemented yet");
ExitCode::FAILURE
}
}