From 3973f3bb43304fd83fe2aeccbc6c6632526ee1ec Mon Sep 17 00:00:00 2001 From: lifegpc Date: Thu, 14 Aug 2025 19:30:35 +0800 Subject: [PATCH] Fix compile issue --- .github/workflows/github-pages.yml | 2 +- Cargo.lock | 6 +++--- Cargo.toml | 4 ++-- msg_tool_macro/Cargo.toml | 2 +- msg_tool_macro/src/lib.rs | 3 +-- src/lib.rs | 3 +-- src/main.rs | 1 + 7 files changed, 10 insertions(+), 11 deletions(-) diff --git a/.github/workflows/github-pages.yml b/.github/workflows/github-pages.yml index 0844adf..25fe4fe 100644 --- a/.github/workflows/github-pages.yml +++ b/.github/workflows/github-pages.yml @@ -55,7 +55,7 @@ jobs: curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly -y - name: Document run: | - cargo doc --features unstable --document-private-items -vv || exit 1 + cargo doc --features unstable --bins -vv || exit 1 - name: Add index files run: | echo 'Content Moved' > target/doc/index.html diff --git a/Cargo.lock b/Cargo.lock index 5ce9402..838f6ba 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -796,7 +796,7 @@ dependencies = [ [[package]] name = "msg_tool" -version = "0.1.4" +version = "0.1.5" dependencies = [ "anyhow", "byteorder", @@ -835,9 +835,9 @@ dependencies = [ [[package]] name = "msg_tool_macro" -version = "0.1.5" +version = "0.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c194c0fd349cbd1c96b3771da400464a2f1f68b82335d0043a36d9326884c8db" +checksum = "e18f79ab2d0d7a8685961a7d2007f53570ff988aa0d363503a190eef08c983a1" dependencies = [ "quote", "syn", diff --git a/Cargo.toml b/Cargo.toml index 253eba9..8d9b706 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "msg_tool" -version = "0.1.4" +version = "0.1.5" edition = "2024" repository = "https://github.com/lifegpc/msg-tool" description = "A command-line tool for exporting, importing, packing, and unpacking script files." @@ -26,7 +26,7 @@ markup5ever = { version = "0.35", optional = true } markup5ever_rcdom = { version = "0.35", optional = true } memchr = { version = "2.7", optional = true } mozjpeg = { version = "0.10", optional = true } -msg_tool_macro = { version = "0.1.5" } +msg_tool_macro = { version = "0.1.6" } overf = "0.1" png = { version = "0.17", optional = true } rand = { version = "0.9", optional = true } diff --git a/msg_tool_macro/Cargo.toml b/msg_tool_macro/Cargo.toml index 1443dc9..2fb8eda 100644 --- a/msg_tool_macro/Cargo.toml +++ b/msg_tool_macro/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "msg_tool_macro" -version = "0.1.5" +version = "0.1.6" edition = "2024" repository = "https://github.com/lifegpc/msg-tool" description = "A procedural macro for the msg-tool project." diff --git a/msg_tool_macro/src/lib.rs b/msg_tool_macro/src/lib.rs index a3fd990..3785e78 100644 --- a/msg_tool_macro/src/lib.rs +++ b/msg_tool_macro/src/lib.rs @@ -1,5 +1,4 @@ -#![cfg_attr(docsrs, feature(doc_auto_cfg))] -#![cfg_attr(feature = "unstable", feature(doc_auto_cfg))] +#![cfg_attr(any(docsrs, feature = "unstable"), feature(doc_auto_cfg))] use proc_macro::TokenStream; use syn::parse::discouraged::Speculative; use syn::spanned::Spanned; diff --git a/src/lib.rs b/src/lib.rs index dbc09aa..b8fedd1 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,8 +1,7 @@ //! A Rust library for exporting, importing, packing, and unpacking script files. //! //! For more information, please visit the [GitHub repository](https://github.com/lifegpc/msg-tool). -#![cfg_attr(docsrs, feature(doc_auto_cfg))] -#![cfg_attr(feature = "unstable", feature(doc_auto_cfg))] +#![cfg_attr(any(docsrs, feature = "unstable"), feature(doc_auto_cfg))] pub mod ext; pub mod format; pub mod output_scripts; diff --git a/src/main.rs b/src/main.rs index 7fa01ce..a0a33ac 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,4 @@ +#![cfg_attr(any(docsrs, feature = "unstable"), feature(doc_auto_cfg))] pub mod args; pub mod ext; pub mod format;