diff --git a/crates/voicevox_core/Cargo.toml b/crates/voicevox_core/Cargo.toml index 02f1860cf..bd3456abb 100644 --- a/crates/voicevox_core/Cargo.toml +++ b/crates/voicevox_core/Cargo.toml @@ -56,5 +56,8 @@ humansize.workspace = true windows = { workspace = true, features = ["Win32_Foundation", "Win32_Graphics_Dxgi"] } [lints.rust] -unsafe_code = "deny" # FIXME: あまり意味が無くなっているため潔く`allow`にする。あるいはunsafeを撲滅する +# FIXME: `unsafe impl Send`のもあるが、以下2つのマージにより消える予定 +# * https://github.com/VOICEVOX/voicevox_core/pull/725 +# * https://github.com/VOICEVOX/voicevox_core/pull/772 +unsafe_code = "allow" # WindowsのGPU情報表示に、Win32を利用 rust_2018_idioms = "warn" diff --git a/crates/voicevox_core/src/infer/runtimes/onnxruntime.rs b/crates/voicevox_core/src/infer/runtimes/onnxruntime.rs index a22503055..0556b6d51 100644 --- a/crates/voicevox_core/src/infer/runtimes/onnxruntime.rs +++ b/crates/voicevox_core/src/infer/runtimes/onnxruntime.rs @@ -249,6 +249,5 @@ mod assert_send { } // SAFETY: `Session` is probably "send"able. - #[allow(unsafe_code)] unsafe impl Send for AssertSend {} } diff --git a/crates/voicevox_core/src/synthesizer.rs b/crates/voicevox_core/src/synthesizer.rs index e6ef3a9bb..b90139434 100644 --- a/crates/voicevox_core/src/synthesizer.rs +++ b/crates/voicevox_core/src/synthesizer.rs @@ -1017,7 +1017,6 @@ pub(crate) mod blocking { } fn list_windows_video_cards() -> windows::core::Result> { - #[allow(unsafe_code)] unsafe { let factory = CreateDXGIFactory::()?; (0..) diff --git a/rust-toolchain b/rust-toolchain index b1131583c..369f9966f 100644 --- a/rust-toolchain +++ b/rust-toolchain @@ -1 +1 @@ -1.77.1 +1.77.2