chore(release): prepare public source release

This commit is contained in:
MercuryToolbox Release
2026-07-18 15:41:59 +08:00
commit e365e5df4d
508 changed files with 163373 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
[package]
name = "unitysupport"
version.workspace = true
edition.workspace = true
rust-version.workspace = true
license.workspace = true
authors.workspace = true
readme.workspace = true
publish.workspace = true
description = "Shared Unity asset, log, and bridge helpers for Mercury Toolbox."
keywords.workspace = true
categories.workspace = true
[lints]
workspace = true
[dependencies]
common = { path = "../common", default-features = false }
regex-lite.workspace = true
serde.workspace = true
serde_json.workspace = true
thiserror.workspace = true
unity-asset.workspace = true
unity-asset-binary.workspace = true
windowsupport = { path = "../windowsupport", default-features = false }
[dev-dependencies]
filetime.workspace = true
tempfile.workspace = true
File diff suppressed because it is too large Load Diff
+48
View File
@@ -0,0 +1,48 @@
//! Shared Unity-focused helpers for Mercury Toolbox commands.
#![allow(clippy::multiple_crate_versions)]
use common::CliError;
use thiserror::Error;
pub mod assets;
pub mod logs;
pub mod probe;
pub use assets::{
AssetDump, AssetDumpFieldMode, AssetExtractOutput, AssetExtractReport, AssetIndexRow,
AssetReferenceEntry, AssetReferences, ExtractionMode, dump_unity_asset, extract_unity_asset,
index_unity_assets, refs_unity_asset,
};
pub use logs::{
CountEntry, IncidentGroupMode, StackMode, UnityDiagOptions, UnityDiagReport, UnityDiagSummary,
UnityIncident, UnityLogKind, UnityLogSummary, UnitySeverity, analyze_log_paths,
analyze_log_text, discover_log_paths, parse_incident_group_mode, parse_stack_mode,
};
pub use probe::{
BRIDGE_PIPE_NAME, FindData, InspectData, InstallReport, ProbeEnvelope, RuntimeStatusData,
ScenesData, StaticData, StatusReport, UninstallReport, find_objects, inspect_object,
inspect_static, install_bridge, query_runtime_status, query_scenes, status_bridge,
uninstall_bridge,
};
/// Errors produced by the shared Unity support layer.
#[derive(Debug, Error)]
pub enum UnitySupportError {
/// Message-style runtime or validation error.
#[error("{0}")]
Message(String),
}
impl UnitySupportError {
/// Builds a new message-style error.
#[must_use]
pub fn message(message: impl Into<String>) -> Self {
Self::Message(message.into())
}
}
impl From<UnitySupportError> for CliError {
fn from(value: UnitySupportError) -> Self {
Self::runtime(value.to_string())
}
}
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff