Skip to content

Commit

Permalink
feat: voicevox_core (Rust API)以外のクレートをMIT Licenseと宣言 (#913)
Browse files Browse the repository at this point in the history
`voicevox_core` (Rust API)以外のクレートの`package.license`を設定する。
今後crates.ioに上げる可能性のある`voicevox_core_macros`については
VOICEVOX/open_jtalk-rs#32 のようにLICENSEファイルへのシンボリックリンク
を置く。

`voicevox_core` (Rust API)についてだけは #825 の中で行う。

Refs: #332
  • Loading branch information
qryxip authored Jan 3, 2025
1 parent 5eae9c5 commit d96a6de
Show file tree
Hide file tree
Showing 10 changed files with 9 additions and 7 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ version = "0.0.0"
edition = "2021"
publish = false
rust-version = "1.81.0"
license = "MIT"

# min-sized-rustを元にrelease buildのサイズが小さくなるようにした
# https://github.com/johnthagen/min-sized-rust
Expand Down
1 change: 1 addition & 0 deletions crates/downloader/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name = "downloader"
edition.workspace = true
rust-version.workspace = true
license.workspace = true

[[bin]]
name = "download"
Expand Down
1 change: 1 addition & 0 deletions crates/test_util/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name = "test_util"
edition.workspace = true
rust-version.workspace = true
license.workspace = true

[dependencies]
libloading.workspace = true
Expand Down
1 change: 1 addition & 0 deletions crates/voicevox_core_c_api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ version.workspace = true
edition.workspace = true
publish.workspace = true
rust-version.workspace = true
license.workspace = true

[lib]
crate-type = ["cdylib"]
Expand Down
1 change: 1 addition & 0 deletions crates/voicevox_core_java_api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ version.workspace = true
edition.workspace = true
publish.workspace = true
rust-version.workspace = true
license.workspace = true

[lib]
crate-type = ["cdylib"]
Expand Down
1 change: 1 addition & 0 deletions crates/voicevox_core_macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ version.workspace = true
edition.workspace = true
publish.workspace = true
rust-version.workspace = true
license.workspace = true

[lib]
name = "macros"
Expand Down
1 change: 1 addition & 0 deletions crates/voicevox_core_macros/LICENSE
1 change: 1 addition & 0 deletions crates/voicevox_core_python_api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ version = "0.0.0"
edition.workspace = true
publish.workspace = true
rust-version.workspace = true
license.workspace = true

[lib]
crate-type = ["cdylib"]
Expand Down
1 change: 1 addition & 0 deletions crates/xtask/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name = "xtask"
edition.workspace = true
rust-version.workspace = true
license.workspace = true

[dependencies]
cbindgen.workspace = true
Expand Down
7 changes: 0 additions & 7 deletions deny.toml
Original file line number Diff line number Diff line change
Expand Up @@ -171,12 +171,5 @@ clarify = [
{ name = "ring", version = "0.17", expression = "MIT AND ISC AND OpenSSL", license-files = [{ path = "LICENSE", hash = 0xbd0eed23 }] },

# TODO: `package.license`を書く
{ name = "downloader", expression = "MIT", license-files = [] },
{ name = "test_util", expression = "MIT", license-files = [] },
{ name = "voicevox_core", expression = "MIT", license-files = [] },
{ name = "voicevox_core_c_api", expression = "MIT", license-files = [] },
{ name = "voicevox_core_java_api", expression = "MIT", license-files = [] },
{ name = "voicevox_core_macros", expression = "MIT", license-files = [] },
{ name = "voicevox_core_python_api", expression = "MIT", license-files = [] },
{ name = "xtask", expression = "MIT", license-files = [] },
]

0 comments on commit d96a6de

Please sign in to comment.