From e503840d7d2371bd2b449dfc16390c342d38331d Mon Sep 17 00:00:00 2001 From: Ryo Yamashita Date: Sat, 3 Jun 2023 00:15:12 +0900 Subject: [PATCH] =?UTF-8?q?C/Python=20API=E3=82=AF=E3=83=AC=E3=83=BC?= =?UTF-8?q?=E3=83=88=E5=81=B4=E3=81=AE=E3=83=90=E3=83=BC=E3=82=B8=E3=83=A7?= =?UTF-8?q?=E3=83=B3=E3=82=92=E5=87=BA=E3=81=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crates/voicevox_core_c_api/src/lib.rs | 2 +- crates/voicevox_core_python_api/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/voicevox_core_c_api/src/lib.rs b/crates/voicevox_core_c_api/src/lib.rs index b9ab4c664..1391302e0 100644 --- a/crates/voicevox_core_c_api/src/lib.rs +++ b/crates/voicevox_core_c_api/src/lib.rs @@ -139,7 +139,7 @@ pub extern "C" fn voicevox_make_default_initialize_options() -> VoicevoxInitiali } static VOICEVOX_VERSION: once_cell::sync::Lazy = - once_cell::sync::Lazy::new(|| CString::new(voicevox_core::get_version()).unwrap()); + once_cell::sync::Lazy::new(|| CString::new(env!("CARGO_PKG_VERSION")).unwrap()); /// voicevoxのバージョンを取得する /// @return SemVerでフォーマットされたバージョン diff --git a/crates/voicevox_core_python_api/src/lib.rs b/crates/voicevox_core_python_api/src/lib.rs index b24862e1c..0f8469b43 100644 --- a/crates/voicevox_core_python_api/src/lib.rs +++ b/crates/voicevox_core_python_api/src/lib.rs @@ -24,7 +24,7 @@ static RUNTIME: Lazy = Lazy::new(|| Runtime::new().unwrap()); fn rust(_py: Python<'_>, module: &PyModule) -> PyResult<()> { pyo3_log::init(); - module.add("__version__", voicevox_core::get_version())?; + module.add("__version__", env!("CARGO_PKG_VERSION"))?; module.add_wrapped(wrap_pyfunction!(supported_devices))?; module.add_class::()?;