chore: license Chat2DB Rust under Apache-2.0 - #29
Merged
Merged
Conversation
Replace the modified Apache 2.0 source-available terms with the standard Apache License 2.0 text and publish the SPDX identifier across the workspace. - LICENSE: canonical Apache-2.0 text, additional conditions removed - Cargo.toml: license-file becomes license = "Apache-2.0" - 13 crates and apps inherit license.workspace - README: document the Apache-2.0 license The pinned Community submodule and third-party components keep their own terms, so packages that embed Community code remain subject to them.
The utoipa derive fills `info.license` from the crate license metadata at compile time, so switching from `license-file` to `license = "Apache-2.0"` changes the generated document. Regenerated with `make generate-contracts`; the generated TypeScript is byte-identical.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
改动
Chat2DB-Rust 自有代码从「修改版 Apache 2.0(source-available)」改为标准 Apache License 2.0。
LICENSE:替换为 Apache-2.0 canonical 全文(202 行,SHA-256cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30),移除 additional conditions 段落Cargo.toml:license-file = "LICENSE"→license = "Apache-2.0"license-file.workspace = true→license.workspace = trueREADME.md:License 段改为 Apache-2.0有意未改动
docs/architecture.md:814、docs/stages.md:392:描述的是 pinned Community 代码的LicenseRef-Chat2DB约束,改 Rust 侧许可证后依然成立。third_party/chat2db-community/LICENSE:上游许可证,不在本 PR 范围。因此内嵌 Community 代码的安装包仍受其原条款约束。执行的命令与结果
shasum -a 256 LICENSEcfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30,与 apache.org canonical 文本一致cargo metadata --no-deps --format-version 1license=Apache-2.0、license_file=Nonegrep -rn license-file --include=Cargo.toml无源码变更,仅许可证文本与 Cargo 元数据,因此未重跑编译与测试。
风险
LICENSE生成包内Chat2DB-Rust-LICENSE.txt,下次打包自动生效;包内 Community 许可证文件不受影响。Review 入口
LICENSE、Cargo.toml、README.md及 13 个*/Cargo.tomlAI assistance
由 AI 助手在用户确认后执行;许可证文本取自 apache.org canonical 文件并以 SHA-256 校验。