Skip to content

Commit

Permalink
fix: rename brian-backend to robotica-backend
Browse files Browse the repository at this point in the history
  • Loading branch information
brianmay committed Feb 17, 2025
1 parent f771e42 commit 8667542
Show file tree
Hide file tree
Showing 38 changed files with 58 additions and 58 deletions.
82 changes: 41 additions & 41 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ members = [
"robotica-frontend",
"robotica-common",
"robotica-slint",
"brian-backend",
"robotica-backend",
"robotica-freeswitch",
"robotica-macro",
]
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Manipulate asynchronous events, using asynchronous tasks.

## Getting started

Sample backend code in the `brian-backend` directory. Sample yew based front end code in the `brian-backend` directory.
This needs to be written still.

## Rationale

Expand Down
18 changes: 9 additions & 9 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -225,13 +225,13 @@
'';
};

brian-backend =
robotica-backend =
let
common = {
src = ./.;
pname = "brian-backend";
pname = "robotica-backend";
version = "0.0.0";
cargoExtraArgs = "-p brian-backend";
cargoExtraArgs = "-p robotica-backend";
nativeBuildInputs = with pkgs; [ pkg-config ];
buildInputs = with pkgs; [
openssl
Expand Down Expand Up @@ -271,9 +271,9 @@
// build_env
);

wrapper = pkgs.writeShellScriptBin "brian-backend" ''
wrapper = pkgs.writeShellScriptBin "robotica-backend" ''
export PATH="${python_venv}/bin:$PATH"
exec ${pkg}/bin/brian-backend "$@"
exec ${pkg}/bin/robotica-backend "$@"
'';
in
{
Expand Down Expand Up @@ -562,9 +562,9 @@
robotica-slint = robotica-slint.pkg;
robotica-frontend-clippy = robotica-frontend.clippy;
robotica-frontend = robotica-frontend.pkg;
brian-backend-clippy = brian-backend.clippy;
# brian-backend-coverage = brian-backend.coverage;
brian-backend = brian-backend.pkg;
robotica-backend-clippy = robotica-backend.clippy;
# robotica-backend-coverage = robotica-backend.coverage;
robotica-backend = robotica-backend.pkg;
robotica-freeswitch-clippy = robotica-freeswitch.clippy;
# freeswitch-coverage = robotica-freeswitch.coverage;
robotica-freeswitch = robotica-freeswitch.pkg;
Expand All @@ -573,7 +573,7 @@
devShells.default = devShell;
packages = {
robotica-frontend = robotica-frontend-bindgen;
brian-backend = brian-backend.pkg;
robotica-backend = robotica-backend.pkg;
robotica-slint = robotica-slint.pkg;
robotica-freeswitch = robotica-freeswitch.pkg;
devenv-up = devShell.config.procfileScript;
Expand Down
4 changes: 2 additions & 2 deletions modules/robotica-backend.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ let
cfg = config.services.robotica-backend;

system = pkgs.system;
robotica-backend = self.packages.${system}.brian-backend;
robotica-backend = self.packages.${system}.robotica-backend;
robotica-frontend = self.packages.${system}.robotica-frontend;

robotica_config = pkgs.writeTextFile {
Expand All @@ -33,7 +33,7 @@ let
mkdir -p "${cfg.data_dir}"
mkdir -p "${cfg.data_dir}/state"
exec "${robotica-backend}/bin/brian-backend"
exec "${robotica-backend}/bin/robotica-backend"
'';

executor_type = types.submodule {
Expand Down
2 changes: 1 addition & 1 deletion brian-backend/Cargo.toml → robotica-backend/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "brian-backend"
name = "robotica-backend"
version = "0.1.0"
edition = "2021"

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ pub fn init_tracing_subscriber(config: &Config) -> Result<OtelGuard, Error> {
global::set_tracer_provider(tracer_provider.clone());
global::set_meter_provider(meter_provider.clone());

let scope = InstrumentationScope::builder("brian-backend")
let scope = InstrumentationScope::builder("robotica-backend")
.with_version("1.0")
.build();

Expand Down
2 changes: 1 addition & 1 deletion brian-backend/src/main.rs → robotica-backend/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ async fn main() -> Result<()> {
panic!("Error initializing tracing subscriber: {e}");
});

info!("Starting brian-backend",);
info!("Starting robotica-backend",);

let (mqtt, mqtt_rx) = mqtt_channel();
let subscriptions: Subscriptions = Subscriptions::new();
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion run.sh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
RUST_LOG=robotica_tokio,brian_backend cargo run -p brian-backend --bin brian-backend
RUST_LOG=robotica_tokio,robotica_backend cargo run -p robotica-backend --bin robotica-backend

0 comments on commit 8667542

Please sign in to comment.