Skip to content

Commit d90697f

Browse files
committed
Update package
1 parent 6600430 commit d90697f

36 files changed

Lines changed: 167 additions & 121 deletions

.github/workflows/CI.yml

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ jobs:
165165
with:
166166
name: bindings-${{ matrix.settings.target }}
167167
path: |
168-
bridge/node/dcu.*.node
168+
bridge/node/dependency-check-updates.*.node
169169
if-no-files-found: error
170170

171171
python-build:
@@ -177,10 +177,15 @@ jobs:
177177
fail-fast: false
178178
matrix:
179179
include:
180+
# Linux manylinux
180181
- runner: ubuntu-22.04
181182
target: x86_64
182183
manylinux: auto
183184
os: linux
185+
- runner: ubuntu-22.04
186+
target: x86
187+
manylinux: auto
188+
os: linux
184189
- runner: ubuntu-22.04
185190
target: aarch64
186191
manylinux: auto
@@ -189,17 +194,38 @@ jobs:
189194
target: armv7
190195
manylinux: auto
191196
os: linux
197+
- runner: ubuntu-22.04
198+
target: ppc64le
199+
manylinux: auto
200+
os: linux
201+
202+
# Linux musllinux
192203
- runner: ubuntu-22.04
193204
target: x86_64
194205
manylinux: musllinux_1_2
195206
os: musllinux
207+
- runner: ubuntu-22.04
208+
target: x86
209+
manylinux: musllinux_1_2
210+
os: musllinux
196211
- runner: ubuntu-22.04
197212
target: aarch64
198213
manylinux: musllinux_1_2
199214
os: musllinux
215+
- runner: ubuntu-22.04
216+
target: armv7
217+
manylinux: musllinux_1_2
218+
os: musllinux
219+
220+
# Windows
200221
- runner: windows-latest
201222
target: x64
202223
os: windows
224+
- runner: windows-latest
225+
target: x86
226+
os: windows
227+
228+
# macOS
203229
- runner: macos-14
204230
target: x86_64
205231
os: macos
@@ -258,9 +284,9 @@ jobs:
258284
target: ${{ matrix.target }}
259285
components: clippy, rustfmt
260286
- name: Build Rust binary
261-
run: cargo build --release --target ${{ matrix.target }} -p dcu-cli
287+
run: cargo build --release --target ${{ matrix.target }} -p dependency-check-updates-cli
262288
- name: Rename binary
263-
run: mv target/${{ matrix.target }}/release/dcu${{ matrix.os == 'windows' && '.exe' || '' }} ${{ matrix.binary_name }}
289+
run: mv target/${{ matrix.target }}/release/dependency-check-updates${{ matrix.os == 'windows' && '.exe' || '' }} ${{ matrix.binary_name }}
264290
- name: Upload artifact
265291
uses: actions/upload-artifact@v4
266292
with:

Cargo.lock

Lines changed: 18 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ license = "MIT"
99

1010
[workspace.dependencies]
1111
# Internal
12-
dcu-core = { path = "crates/dcu-core" }
13-
dcu-node = { path = "crates/dcu-node" }
14-
dcu-rust = { path = "crates/dcu-rust" }
15-
dcu-python = { path = "crates/dcu-python" }
16-
dcu-cli = { path = "crates/dcu-cli" }
17-
dcu-testkit = { path = "crates/dcu-testkit" }
12+
dependency-check-updates-core = { path = "crates/core" }
13+
dependency-check-updates-node = { path = "crates/node" }
14+
dependency-check-updates-rust = { path = "crates/rust" }
15+
dependency-check-updates-python = { path = "crates/python" }
16+
dependency-check-updates-cli = { path = "crates/cli" }
17+
dependency-check-updates-testkit = { path = "crates/testkit" }
1818

1919
# External
2020
clap = { version = "4.6", features = ["derive"] }

bridge/node/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[package]
2-
name = "dcu-napi"
2+
name = "dependency-check-updates-napi"
33
version = "0.1.0"
44
edition.workspace = true
55
license.workspace = true
6-
description = "Node.js bridge for dcu (N-API bindings)"
6+
description = "Node.js bridge for dependency-check-updates (N-API bindings)"
77
readme = "../../README.md"
88
publish = false
99

@@ -13,7 +13,7 @@ crate-type = ["cdylib"]
1313
[dependencies]
1414
napi.workspace = true
1515
napi-derive.workspace = true
16-
dcu-cli.workspace = true
16+
dependency-check-updates-cli.workspace = true
1717
tokio = { version = "1.50" }
1818

1919
[build-dependencies]

bridge/node/package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
{
2-
"name": "@dcu/cli",
2+
"name": "@dependency-check-updates/cli",
33
"version": "0.1.0",
4-
"description": "dcu — multi-ecosystem dependency check & update CLI",
4+
"description": "dependency-check-updates — multi-ecosystem dependency check & update CLI",
55
"main": "main.js",
66
"license": "MIT",
77
"bin": {
8-
"dcu": "./main.js"
8+
"dcu": "./main.js",
9+
"dependency-check-updates": "./main.js"
910
},
1011
"napi": {
11-
"binaryName": "dcu",
12+
"binaryName": "dependency-check-updates",
1213
"targets": [
1314
"x86_64-pc-windows-msvc",
1415
"x86_64-apple-darwin",

bridge/node/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
//! N-API FFI bindings for npm distribution of dcu.
1+
//! N-API FFI bindings for npm distribution of dependency-check-updates.
22
//!
3-
//! Wraps the dcu CLI as an async N-API function callable from Node.js.
3+
//! Wraps the dependency-check-updates CLI as an async N-API function callable from Node.js.
44
55
use napi::{Error, Result};
66
use napi_derive::napi;
77

8-
/// Run the dcu CLI with the current process arguments.
8+
/// Run the dependency-check-updates CLI with the current process arguments.
99
///
1010
/// # Errors
1111
///
1212
/// Returns an error if the CLI command execution fails.
1313
#[napi]
1414
pub async fn main() -> Result<()> {
15-
dcu_cli::main(&std::env::args().collect::<Vec<String>>())
15+
dependency_check_updates_cli::main(&std::env::args().collect::<Vec<String>>())
1616
.await
1717
.map_err(|e| Error::from_reason(e.to_string()))
1818
}

bridge/python/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
[package]
2-
name = "dcu-python-bridge"
2+
name = "dependency-check-updates-python-bridge"
33
version = "0.1.0"
44
edition.workspace = true
55
license.workspace = true
6-
description = "Python bridge for dcu (standalone binary)"
6+
description = "Python bridge for dependency-check-updates (standalone binary)"
77
readme = "../../README.md"
88
publish = false
99

1010
[dependencies]
11-
dcu-cli.workspace = true
11+
dependency-check-updates-cli.workspace = true
1212
tokio.workspace = true
1313

1414
[[bin]]

bridge/python/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
//! Standalone binary for `PyPI` distribution of dcu.
1+
//! Standalone binary for `PyPI` distribution of dependency-check-updates.
22
//!
33
//! Compiled with maturin as a native executable. The Python stub locates this
44
//! binary via `sysconfig` paths and executes it with command-line arguments
55
//! forwarded from `sys.argv`.
66
77
#[tokio::main(flavor = "current_thread")]
88
async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
9-
dcu_cli::main(&std::env::args().collect::<Vec<String>>()).await
9+
dependency_check_updates_cli::main(&std::env::args().collect::<Vec<String>>()).await
1010
}
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
[package]
2-
name = "dcu-cli"
2+
name = "dependency-check-updates-cli"
33
version = "0.1.0"
44
edition.workspace = true
55
rust-version.workspace = true
66
license.workspace = true
77

88
[[bin]]
9-
name = "dcu"
9+
name = "dependency-check-updates"
1010
path = "src/main.rs"
1111

1212
[dependencies]
13-
dcu-core.workspace = true
14-
dcu-node.workspace = true
15-
dcu-rust.workspace = true
16-
dcu-python.workspace = true
13+
dependency-check-updates-core.workspace = true
14+
dependency-check-updates-node.workspace = true
15+
dependency-check-updates-rust.workspace = true
16+
dependency-check-updates-python.workspace = true
1717
rustls.workspace = true
1818
clap.workspace = true
1919
serde_json.workspace = true
Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! dcu CLI — check and update package dependencies.
1+
//! dependency-check-updates CLI — check and update package dependencies.
22
33
mod output;
44

@@ -7,21 +7,21 @@ use std::path::PathBuf;
77
use clap::Parser;
88
use tracing::{debug, info, trace, warn};
99

10-
use dcu_core::manifest::ManifestHandler;
11-
use dcu_core::{
10+
use dependency_check_updates_core::manifest::ManifestHandler;
11+
use dependency_check_updates_core::{
1212
DcuError, DependencySpec, ManifestKind, PlannedUpdate, ResolvedVersion, Scanner, TargetLevel,
1313
};
14-
use dcu_node::{NodeHandler, NpmRegistry};
15-
use dcu_python::{PyPiRegistry, PythonHandler};
16-
use dcu_rust::{CratesIoRegistry, RustHandler};
14+
use dependency_check_updates_node::{NodeHandler, NpmRegistry};
15+
use dependency_check_updates_python::{PyPiRegistry, PythonHandler};
16+
use dependency_check_updates_rust::{CratesIoRegistry, RustHandler};
1717

18-
/// dcu — check and update package dependencies
18+
/// dependency-check-updates — check and update package dependencies
1919
#[derive(Parser, Debug)]
2020
#[command(
21-
name = "dcu",
21+
name = "dependency-check-updates",
2222
version,
2323
about = "Check and update package dependencies",
24-
long_about = "dcu scans package manifests for outdated dependencies and optionally updates them.\n\nRun without flags to check for updates. Use -u to apply updates."
24+
long_about = "dependency-check-updates scans package manifests for outdated dependencies and optionally updates them.\n\nRun without flags to check for updates. Use -u to apply updates."
2525
)]
2626
pub struct Cli {
2727
/// Package names to check (acts as filter)
@@ -97,7 +97,7 @@ pub async fn main(args: &[String]) -> Result<(), Box<dyn std::error::Error + Sen
9797
Ok(())
9898
}
9999

100-
/// Run the dcu CLI with the given configuration.
100+
/// Run the dependency-check-updates CLI with the given configuration.
101101
///
102102
/// # Errors
103103
///
@@ -309,7 +309,7 @@ type ResolvedBatch = Vec<(usize, Result<ResolvedVersion, DcuError>)>;
309309

310310
/// Intermediate state for processing a single manifest.
311311
struct ManifestJob {
312-
manifest_ref: dcu_core::ManifestRef,
312+
manifest_ref: dependency_check_updates_core::ManifestRef,
313313
display_path: String,
314314
text: String,
315315
handler: Box<dyn ManifestHandler + Send + Sync>,
@@ -374,7 +374,7 @@ fn init_tracing(verbose: u8) {
374374
};
375375

376376
let filter = EnvFilter::try_from_default_env()
377-
.unwrap_or_else(|_| EnvFilter::new(format!("dcu={level}")));
377+
.unwrap_or_else(|_| EnvFilter::new(format!("dependency_check_updates={level}")));
378378

379379
fmt()
380380
.with_env_filter(filter)

0 commit comments

Comments
 (0)