refactor: rename project

This commit is contained in:
2025-06-29 13:09:12 +03:00
parent da4bffad4d
commit 7e0257b272
5 changed files with 8 additions and 8 deletions

2
Cargo.lock generated
View File

@ -1070,7 +1070,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "28d3b2b1366ec20994f1fd18c3c594f05c5dd4bc44d8bb0c1c632c8d6829481f"
[[package]]
name = "sb-ruleset-sync"
name = "sbrs"
version = "0.1.0"
dependencies = [
"anyhow",

View File

@ -1,5 +1,5 @@
[package]
name = "sb-ruleset-sync"
name = "sbrs"
version = "0.1.0"
edition = "2024"

View File

@ -1,9 +1,9 @@
services:
sb-ruleset-sync:
sbrs:
build:
context: .
dockerfile: ./docker/Dockerfile
container_name: sb-ruleset-sync
container_name: sbrs
restart: unless-stopped
volumes:

View File

@ -42,7 +42,7 @@ RUN addgroup -S -g ${PGID} app && \
adduser -S -u ${PUID} -G app -h /app app
# Copy the compiled binary from the builder stage
COPY --from=builder /app/target/release/sb-ruleset-sync /usr/local/bin/ruleset-sync
COPY --from=builder /app/target/release/sbrs /usr/local/bin/ruleset-sync
# Copy the entrypoint script
COPY ./docker/entrypoint.sh /usr/local/bin/entrypoint.sh

View File

@ -1,6 +1,6 @@
use anyhow::Result;
use clap::Parser;
use sb_ruleset_sync::cli::Args;
use sbrs::cli::Args;
use tracing::error;
use tracing_subscriber::fmt::time::LocalTime;
@ -19,7 +19,7 @@ async fn main() -> Result<()> {
// We construct a filter that applies the log level to our crate,
// but keeps other crates at a higher level (e.g., info) to reduce noise.
let filter = format!("sb_ruleset_sync={}", log_level);
let filter = format!("sbrs={}", log_level);
tracing_subscriber::fmt()
.with_env_filter(filter)
@ -28,7 +28,7 @@ async fn main() -> Result<()> {
.init();
// 3. Execute the main application logic.
if let Err(e) = sb_ruleset_sync::run(args).await {
if let Err(e) = sbrs::run(args).await {
// Log the final error in a structured way before exiting.
error!(error = ?e, "Application failed");
std::process::exit(1);