summaryrefslogtreecommitdiff
path: root/systems/asset
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-02-07 18:38:17 +0800
committer魏曹先生 <1992414357@qq.com>2026-02-07 18:38:17 +0800
commit5ad175c2532880da714e82b283770a7a2a45364f (patch)
tree5e3fc5a3f382adadf037adc54f70e8710f59bb33 /systems/asset
parent4f184a439056d2b5dff7aa2fa1b1a73a1cbe9582 (diff)
Rename asset crate to asset_system
Diffstat (limited to 'systems/asset')
-rw-r--r--systems/asset/Cargo.toml2
-rw-r--r--systems/asset/macros/src/lib.rs2
-rw-r--r--systems/asset/src/asset.rs12
-rw-r--r--systems/asset/test/Cargo.toml2
-rw-r--r--systems/asset/test/src/lib.rs2
5 files changed, 10 insertions, 10 deletions
diff --git a/systems/asset/Cargo.toml b/systems/asset/Cargo.toml
index 90ca9a7..5e86bbd 100644
--- a/systems/asset/Cargo.toml
+++ b/systems/asset/Cargo.toml
@@ -1,5 +1,5 @@
[package]
-name = "asset"
+name = "asset_system"
edition = "2024"
version.workspace = true
diff --git a/systems/asset/macros/src/lib.rs b/systems/asset/macros/src/lib.rs
index f186633..1535af0 100644
--- a/systems/asset/macros/src/lib.rs
+++ b/systems/asset/macros/src/lib.rs
@@ -16,7 +16,7 @@ pub fn rw_data_test_derive(input: TokenStream) -> TokenStream {
#[cfg(test)]
mod #test_mod_name {
use super::*;
- use asset::rw::RWData;
+ use asset_system::rw::RWData;
#[tokio::test]
async fn test() {
diff --git a/systems/asset/src/asset.rs b/systems/asset/src/asset.rs
index 247a654..78ee0e4 100644
--- a/systems/asset/src/asset.rs
+++ b/systems/asset/src/asset.rs
@@ -522,17 +522,17 @@ macro_rules! apply {
];
// Batch precheck
- if let Err(e) = asset::asset::apply_precheck_rename_operations(&rename_ops).await {
- return Err(asset::error::DataApplyError::PrecheckFailed(e));
+ if let Err(e) = asset_system::asset::apply_precheck_rename_operations(&rename_ops).await {
+ return Err(asset_system::error::DataApplyError::PrecheckFailed(e));
}
// Per-handle precheck
- if let Err(e) = asset::asset::apply_precheck(&$first).await {
- return Err(asset::error::DataApplyError::PrecheckFailed(e));
+ if let Err(e) = asset_system::asset::apply_precheck(&$first).await {
+ return Err(asset_system::error::DataApplyError::PrecheckFailed(e));
}
$(
- if let Err(e) = asset::asset::apply_precheck(&$rest).await {
- return Err(asset::error::DataApplyError::PrecheckFailed(e));
+ if let Err(e) = asset_system::asset::apply_precheck(&$rest).await {
+ return Err(asset_system::error::DataApplyError::PrecheckFailed(e));
}
)+
diff --git a/systems/asset/test/Cargo.toml b/systems/asset/test/Cargo.toml
index 07c6282..3ac0779 100644
--- a/systems/asset/test/Cargo.toml
+++ b/systems/asset/test/Cargo.toml
@@ -4,6 +4,6 @@ version.workspace = true
edition = "2024"
[dependencies]
-asset = { path = "../" }
+asset_system = { path = "../" }
tokio = { version = "1.48.0", features = ["full"] }
diff --git a/systems/asset/test/src/lib.rs b/systems/asset/test/src/lib.rs
index 79a840d..4aad777 100644
--- a/systems/asset/test/src/lib.rs
+++ b/systems/asset/test/src/lib.rs
@@ -1,6 +1,6 @@
use std::path::PathBuf;
-use asset::{
+use asset_system::{
RWDataTest, ensure_eq,
error::{DataReadError, DataWriteError},
rw::RWData,