Skip to content

Commit

Permalink
fixup! link-onnxruntimecargo testが通るようにする
Browse files Browse the repository at this point in the history
  • Loading branch information
qryxip committed Jul 3, 2024
1 parent f60cd0e commit c8c7813
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions crates/voicevox_core/src/infer/runtimes/onnxruntime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<()> {
Expand Down Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion crates/voicevox_core/src/synthesizer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down

0 comments on commit c8c7813

Please sign in to comment.