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

Rustへの移行 #126

Merged
merged 21 commits into from
May 15, 2022
Merged
Show file tree
Hide file tree
Changes from 16 commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
f5c0258
いったんC++関係のコードを削除
qwerty2501 May 8, 2022
5746d6a
とりあえずcargo initializeと関数定義だけ
qwerty2501 May 8, 2022
dc0046c
APIを既存のものに合わせて定義しなおした
qwerty2501 May 9, 2022
b6203d0
cargo projectをworkspace化
qwerty2501 May 9, 2022
4550516
テストCI追加
qwerty2501 May 9, 2022
0705f82
last_error_messageの定義が抜けていたので修正
qwerty2501 May 9, 2022
c54282c
internal関数に定義を分けた
qwerty2501 May 10, 2022
3c677b6
anyhowやめた
qwerty2501 May 10, 2022
224aa92
元あったヘッダーファイルに合わせて出力されるように定義を変更した
qwerty2501 May 10, 2022
e503ea2
result 変換方法を変更
qwerty2501 May 10, 2022
65cd37b
従来どおりの出力をするように修正
qwerty2501 May 10, 2022
adc9d65
ERROR_MESSAGEをonce cell化
qwerty2501 May 10, 2022
2893add
Succeed渡したときでもメッセージを返すように修正
qwerty2501 May 10, 2022
1987a05
VoicevoxResultCodeのエラーメッセージとErrorのベースとなる文字列を同一にするようにした
qwerty2501 May 10, 2022
a353489
output_binary_sizeの型をCのintに変更
qwerty2501 May 10, 2022
1b89743
output_binary_sizeの型をc_intに変更
qwerty2501 May 10, 2022
09339ff
不要な文言を削除
qwerty2501 May 10, 2022
c2a6ff7
今後workspace内にcrateが増えるとサブディレクトリがいっぱいできるのでrootディレクトリにディレクトリが増えすぎないようにc…
qwerty2501 May 10, 2022
f7a1077
無駄な空行を削除
qwerty2501 May 14, 2022
2288c02
不要な空白行を削除
qwerty2501 May 14, 2022
9e3ccee
現状かならずCIテストが失敗するようになっているのでbuild.ymlを削除
qwerty2501 May 14, 2022
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: 2 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[env]
CARGO_WORKSPACE_DIR = { value = "", relative = true }
5 changes: 0 additions & 5 deletions .clang-format

This file was deleted.

34 changes: 34 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: test workflow
on: [push]
jobs:
rust-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- run: cargo clippy --all-features --tests -- -D clippy::all -D warnings --no-deps
- run: cargo fmt -- --check

rust-test:
strategy:
fail-fast: false
matrix:
include:
- os: windows-2019
- os: windows-2022
- os: macos-10.15
- os: macos-11
- os: macos-12
- os: ubuntu-18.04
- os: ubuntu-20.04
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- run: cargo test --all-features .
env:
CARGO_TERM_COLOR: always
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,9 @@ release/
# Visual Studio
.vs/
packages/


# Added by cargo

target
/Cargo.lock
qwerty2501 marked this conversation as resolved.
Show resolved Hide resolved
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
[submodule "open_jtalk"]
path = open_jtalk
url = https://github.com/VOICEVOX/open_jtalk
20 changes: 0 additions & 20 deletions CMakeLists.txt

This file was deleted.

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[workspace]
members = ["voicevox_core"]
62 changes: 0 additions & 62 deletions DetermineTargetArchitecture.cmake

This file was deleted.

139 changes: 0 additions & 139 deletions core/CMakeLists.txt

This file was deleted.

Loading