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,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;