From c8c7813c75b2ad4e26e3ee9bcdfcea04eb690f85 Mon Sep 17 00:00:00 2001 From: Ryo Yamashita Date: Thu, 4 Jul 2024 07:48:36 +0900 Subject: [PATCH] =?UTF-8?q?fixup!=20`link-onnxruntime`=E3=81=A7`cargo=20te?= =?UTF-8?q?st`=E3=81=8C=E9=80=9A=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB?= =?UTF-8?q?=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crates/voicevox_core/src/infer/runtimes/onnxruntime.rs | 4 ++-- crates/voicevox_core/src/synthesizer.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/voicevox_core/src/infer/runtimes/onnxruntime.rs b/crates/voicevox_core/src/infer/runtimes/onnxruntime.rs index db046553a..74dc8a601 100644 --- a/crates/voicevox_core/src/infer/runtimes/onnxruntime.rs +++ b/crates/voicevox_core/src/infer/runtimes/onnxruntime.rs @@ -233,7 +233,7 @@ pub(crate) mod blocking { /// Tokio版APIやvoicevox-ortを利用する他クレートともインスタンスが共有される。 /// #[cfg_attr(feature = "load-onnxruntime", doc = "```")] - #[cfg_attr(feature = "link-onnxruntime", doc = "```compile_fail")] + #[cfg_attr(not(feature = "load-onnxruntime"), doc = "```compile_fail")] /// # use voicevox_core as another_lib; /// # /// # fn main() -> anyhow::Result<()> { @@ -421,7 +421,7 @@ pub(crate) mod tokio { /// ブロッキング版APIやvoicevox-ortを利用する他クレートともインスタンスが共有される。 /// #[cfg_attr(feature = "load-onnxruntime", doc = "```")] - #[cfg_attr(feature = "link-onnxruntime", doc = "```compile_fail")] + #[cfg_attr(not(feature = "load-onnxruntime"), doc = "```compile_fail")] /// # use voicevox_core as another_lib; /// # /// # #[tokio::main] diff --git a/crates/voicevox_core/src/synthesizer.rs b/crates/voicevox_core/src/synthesizer.rs index 1d6b593dc..767d27b1c 100644 --- a/crates/voicevox_core/src/synthesizer.rs +++ b/crates/voicevox_core/src/synthesizer.rs @@ -110,7 +110,7 @@ pub(crate) mod blocking { /// # Example /// #[cfg_attr(feature = "load-onnxruntime", doc = "```")] - #[cfg_attr(feature = "link-onnxruntime", doc = "```compile_fail")] + #[cfg_attr(not(feature = "load-onnxruntime"), doc = "```compile_fail")] /// # #[tokio::main] /// # async fn main() -> anyhow::Result<()> { /// # use test_util::{ONNXRUNTIME_DYLIB_PATH, OPEN_JTALK_DIC_DIR};