Skip to content

Commit 325c6d8

Browse files
committed
chore: add cargo-deny configuration
- add GitHub workflow running cargo-deny on push/PR - document cargo-deny allowlist with workspace-dep notes and advisory ignores - align workspace crates to inherit version/edition/license for consistent checks
1 parent 8f3a8be commit 325c6d8

File tree

52 files changed

+210
-101
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+210
-101
lines changed

.github/workflows/cargo-deny.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: cargo-deny
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
cargo-deny:
11+
runs-on: ubuntu-latest
12+
defaults:
13+
run:
14+
working-directory: ./codex-rs
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v6
18+
19+
- name: Install Rust toolchain
20+
uses: dtolnay/rust-toolchain@stable
21+
22+
- name: Run cargo-deny
23+
uses: EmbarkStudios/cargo-deny-action@v1
24+
with:
25+
command: check

codex-rs/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

codex-rs/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ version = "0.0.0"
5151
# crates created with `cargo new -w ...` automatically inherit the 2024
5252
# edition.
5353
edition = "2024"
54+
license = "Apache-2.0"
5455

5556
[workspace.dependencies]
5657
# Internal

codex-rs/ansi-escape/Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
[package]
2-
edition = "2024"
32
name = "codex-ansi-escape"
4-
version = { workspace = true }
3+
version.workspace = true
4+
edition.workspace = true
5+
license.workspace = true
56

67
[lib]
78
name = "codex_ansi_escape"

codex-rs/app-server-protocol/Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
[package]
2-
edition = "2024"
32
name = "codex-app-server-protocol"
4-
version = { workspace = true }
3+
version.workspace = true
4+
edition.workspace = true
5+
license.workspace = true
56

67
[lib]
78
name = "codex_app_server_protocol"

codex-rs/app-server-test-client/Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
[package]
22
name = "codex-app-server-test-client"
3-
version = { workspace = true }
4-
edition = "2024"
3+
version.workspace = true
4+
edition.workspace = true
5+
license.workspace = true
56

67
[lints]
78
workspace = true

codex-rs/app-server/Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
[package]
2-
edition = "2024"
32
name = "codex-app-server"
4-
version = { workspace = true }
3+
version.workspace = true
4+
edition.workspace = true
5+
license.workspace = true
56

67
[[bin]]
78
name = "codex-app-server"

codex-rs/app-server/tests/common/Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
[package]
2-
edition = "2024"
32
name = "app_test_support"
4-
version = { workspace = true }
3+
version.workspace = true
4+
edition.workspace = true
5+
license.workspace = true
56

67
[lib]
78
path = "lib.rs"

codex-rs/apply-patch/Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
[package]
2-
edition = "2024"
32
name = "codex-apply-patch"
4-
version = { workspace = true }
3+
version.workspace = true
4+
edition.workspace = true
5+
license.workspace = true
56

67
[lib]
78
name = "codex_apply_patch"

codex-rs/arg0/Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
[package]
2-
edition = "2024"
32
name = "codex-arg0"
4-
version = { workspace = true }
3+
version.workspace = true
4+
edition.workspace = true
5+
license.workspace = true
56

67
[lib]
78
name = "codex_arg0"

0 commit comments

Comments
 (0)