diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-08-04 14:44:50 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-08-04 14:51:35 +0800 |
| commit | 9a231d8c163414d462a185d955e6887b64704802 (patch) | |
| tree | c6fe3d0227ab76046b8e0c32c3665a5a9a604817 | |
| parent | b5e14df41a2b77d71e3367fe44bf466f5c8ad1b5 (diff) | |
refactor(metadata): move metadata module to core crate
| -rw-r--r-- | mingling/src/metadata.rs | 3 | ||||
| -rw-r--r-- | mingling_core/src/lib.rs | 3 | ||||
| -rw-r--r-- | mingling_core/src/metadata.rs | 2 | ||||
| -rw-r--r-- | mingling_core/src/metadata/description.rs (renamed from mingling/src/metadata/description.rs) | 0 |
4 files changed, 6 insertions, 2 deletions
diff --git a/mingling/src/metadata.rs b/mingling/src/metadata.rs index 329576c..06fcec9 100644 --- a/mingling/src/metadata.rs +++ b/mingling/src/metadata.rs @@ -1,2 +1 @@ -mod description; -pub use description::*; +pub use mingling_core::metadata::*; diff --git a/mingling_core/src/lib.rs b/mingling_core/src/lib.rs index 3a5acf4..3db3d31 100644 --- a/mingling_core/src/lib.rs +++ b/mingling_core/src/lib.rs @@ -103,3 +103,6 @@ mod private; pub mod __private { pub use crate::private::*; } + +/// Mingling's convention metadatas, which can be bound to types using `#[metadata]`, to provide identification for types +pub mod metadata; diff --git a/mingling_core/src/metadata.rs b/mingling_core/src/metadata.rs new file mode 100644 index 0000000..329576c --- /dev/null +++ b/mingling_core/src/metadata.rs @@ -0,0 +1,2 @@ +mod description; +pub use description::*; diff --git a/mingling/src/metadata/description.rs b/mingling_core/src/metadata/description.rs index 48bf095..48bf095 100644 --- a/mingling/src/metadata/description.rs +++ b/mingling_core/src/metadata/description.rs |
