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]Cargo.lockファイルをgit管理対象に追加した #139

Merged

Conversation

qwerty2501
Copy link
Contributor

内容

現在Cargo.lockファイルはgit管理対象外になっているが、cargoにはCargo.lockファイルをgit管理対象に入れるべき場合とそうでない場合がある。
Cargo.lockファイルをgit管理対象に入れないべき場合はcargo.ioなどでソースファイルごとライブラリとして公開し、ユーザー側でビルドする場合
git管理対象に入れる場合は配布形態がバイナリ等ソースコードに依存しない形で配布する場合
本リポジトリはcdylib形式でdllバイナリとして配布することを目的としているのでgit管理対象に入れるべきケースになる

詳しくは公式ドキュメントを参照のこと
https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html

refs #128

現在Cargo.lockファイルはgit管理対象外になっているが、cargoにはCargo.lockファイルをgit管理対象に入れるべき場合とそうでない場合がある。
Cargo.lockファイルをgit管理対象に入れないべき場合はcargo.ioなどでソースファイルごとライブラリとして公開し、ユーザー側でビルドする場合
git管理対象に入れる場合は配布形態がバイナリ等ソースコードに依存しない形で配布する場合
本リポジトリはcdylib形式でdllバイナリとして配布することを目的としているのでgit管理対象に入れるべきケースになる

詳しくは公式ドキュメントを参照のこと
https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html

refs VOICEVOX#128
@qwerty2501 qwerty2501 changed the title Cargo.lockファイルをgit管理対象に追加した [Rust]Cargo.lockファイルをgit管理対象に追加した May 25, 2022
Copy link
Member

@Hiroshiba Hiroshiba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!!

@Hiroshiba Hiroshiba merged commit 17d6799 into VOICEVOX:rust May 28, 2022
qwerty2501 added a commit to qwerty2501/voicevox_core that referenced this pull request Jul 23, 2022
現在Cargo.lockファイルはgit管理対象外になっているが、cargoにはCargo.lockファイルをgit管理対象に入れるべき場合とそうでない場合がある。
Cargo.lockファイルをgit管理対象に入れないべき場合はcargo.ioなどでソースファイルごとライブラリとして公開し、ユーザー側でビルドする場合
git管理対象に入れる場合は配布形態がバイナリ等ソースコードに依存しない形で配布する場合
本リポジトリはcdylib形式でdllバイナリとして配布することを目的としているのでgit管理対象に入れるべきケースになる

詳しくは公式ドキュメントを参照のこと
https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html

refs VOICEVOX#128
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants