forked from VOICEVOX/voicevox_core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "[project-vvm-async-api] いくつかのC関数を定数にする (VOICEVOX#503)"
This reverts commit f4b502a. # Conflicts: # Cargo.lock # Cargo.toml # crates/voicevox_core/Cargo.toml # crates/voicevox_core_c_api/Cargo.toml # crates/voicevox_core_c_api/include/voicevox_core.h # crates/voicevox_core_c_api/src/lib.rs
- Loading branch information
kasamatsu
committed
Jul 31, 2023
1 parent
f1dd63b
commit 9e50810
Showing
19 changed files
with
165 additions
and
266 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,13 @@ | ||
/// 本クレートの`package.version`。 | ||
/// | ||
/// C APIやPython API側からこの値が使われるべきではない。 | ||
/// 現在はまだRust APIを外部提供していないため、この定数はどこからも参照されていないはずである。 | ||
pub const VERSION: &str = env!("CARGO_PKG_VERSION"); | ||
pub const fn get_version() -> &'static str { | ||
env!("CARGO_PKG_VERSION") | ||
} | ||
|
||
#[cfg(test)] | ||
mod tests { | ||
use super::*; | ||
use crate::*; | ||
#[rstest] | ||
fn get_version_works() { | ||
assert_eq!("0.0.0", VERSION); | ||
assert_eq!("0.0.0", get_version()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.