Initial MetaCrate rewrite shell
This commit is contained in:
14
crates/libremetaverse-structured-data/Cargo.toml
Normal file
14
crates/libremetaverse-structured-data/Cargo.toml
Normal 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
|
||||
131
crates/libremetaverse-structured-data/src/generated.rs
Normal file
131
crates/libremetaverse-structured-data/src/generated.rs
Normal 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";
|
||||
}
|
||||
6
crates/libremetaverse-structured-data/src/lib.rs
Normal file
6
crates/libremetaverse-structured-data/src/lib.rs
Normal file
@@ -0,0 +1,6 @@
|
||||
//! Structured-data types corresponding to `LibreMetaverse.StructuredData`.
|
||||
|
||||
mod generated;
|
||||
|
||||
pub use generated::*;
|
||||
pub use libremetaverse_types as types;
|
||||
Reference in New Issue
Block a user