From 1308f58060c3da06727c55679c8307e35143213f Mon Sep 17 00:00:00 2001 From: lifegpc Date: Thu, 14 Aug 2025 17:12:46 +0800 Subject: [PATCH] Fix cfg attr --- Cargo.lock | 4 ++-- libtlg-rs/Cargo.toml | 2 +- libtlg-rs/src/lib.rs | 2 +- tlg/Cargo.toml | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 348a9fb..c1c0be4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -164,7 +164,7 @@ checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe" [[package]] name = "libtlg-rs" -version = "0.2.1" +version = "0.2.2" dependencies = [ "lazy_static", "overf", @@ -253,7 +253,7 @@ dependencies = [ [[package]] name = "tlg" -version = "0.2.1" +version = "0.2.2" dependencies = [ "clap", "libtlg-rs", diff --git a/libtlg-rs/Cargo.toml b/libtlg-rs/Cargo.toml index 02cf41f..e82ac80 100644 --- a/libtlg-rs/Cargo.toml +++ b/libtlg-rs/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "libtlg-rs" -version = "0.2.1" +version = "0.2.2" description = "Rust version of libtlg" edition = "2024" license = "MIT" diff --git a/libtlg-rs/src/lib.rs b/libtlg-rs/src/lib.rs index 2035ca9..ca559ee 100644 --- a/libtlg-rs/src/lib.rs +++ b/libtlg-rs/src/lib.rs @@ -1,5 +1,5 @@ //! A Rust library for processing TLG files. -#![feature(doc_cfg)] +#![cfg_attr(docsrs, feature(doc_cfg))] mod load_tlg; #[cfg(feature = "encode")] mod save_tlg; diff --git a/tlg/Cargo.toml b/tlg/Cargo.toml index f2bf715..8eadf62 100644 --- a/tlg/Cargo.toml +++ b/tlg/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tlg" -version = "0.2.1" +version = "0.2.2" description = "Tools to process TLG image file." edition = "2024" license = "MIT"