Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
8 changes: 8 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,14 @@ jobs:
- name: Check License Header
uses: apache/skywalking-eyes/header@v0.6.0

- name: Install cargo-deny
uses: taiki-e/install-action@v2
with:
tool: cargo-deny@0.14.22

- name: Check dependency licenses (Apache-compatible)
run: cargo deny check licenses
Comment thread
luoyuxia marked this conversation as resolved.

- name: Install protoc
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler

Expand Down
9 changes: 9 additions & 0 deletions DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,15 @@ cargo test --features integration_tests --workspace
```


### License check (cargo-deny)

We use [cargo-deny](https://embarkstudios.github.io/cargo-deny/) to ensure all dependency licenses are Apache-compatible. When present, configuration lives in a `deny.toml` file at the repo root and should enforce an Apache-compatible license policy.

```bash
cargo install cargo-deny --locked
cargo deny check licenses
```

### Formatting and Clippy

Our CI runs cargo formatting and clippy to help keep the code base styling tidy and readable. Run the following commands and address any errors or warnings to ensure that your PR can complete CI successfully.
Expand Down
1 change: 1 addition & 0 deletions bindings/cpp/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
name = "fluss-cpp"
version = "0.1.0"
edition.workspace = true
license.workspace = true
rust-version.workspace = true
publish = false

Expand Down
2 changes: 1 addition & 1 deletion bindings/python/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
name = "fluss_python"
edition = "2024"
version = "0.1.0"
license = "apache-2.0"
license.workspace = true
rust-version = "1.85"

[lib]
Expand Down
1 change: 1 addition & 0 deletions crates/fluss/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

[package]
edition = { workspace = true }
license.workspace = true
rust-version = { workspace = true }
version = { workspace = true }
name = "fluss"
Expand Down
36 changes: 36 additions & 0 deletions deny.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

[licenses]
allow = [
"Apache-2.0",
"Apache-2.0 WITH LLVM-exception",
"BSD-2-Clause",
"BSD-3-Clause",
"CC0-1.0",
"ISC",
"MIT",
"Unicode-3.0",
"Zlib",
]

exceptions = [
# open data licenses that SHOULD be OK
{ crate = "webpki-roots", allow = [
"CDLA-Permissive-2.0",
] },
]
Loading