Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[project-vvm-async-api] C/Python APIクレート側のバージョンを出す #507

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion crates/voicevox_core_c_api/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ pub extern "C" fn voicevox_make_default_initialize_options() -> VoicevoxInitiali
}

static VOICEVOX_VERSION: once_cell::sync::Lazy<CString> =
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でフォーマットされたバージョン
Expand Down
2 changes: 1 addition & 1 deletion crates/voicevox_core_python_api/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ static RUNTIME: Lazy<Runtime> = 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::<Synthesizer>()?;
Expand Down