refactor: rename cortex-neuron binary and crate to neuron
All checks were successful
CI / Format, lint, build, test (push) Successful in 2m28s
CI / Build SRPM (push) Has been skipped
CI / Publish to COPR (push) Has been skipped

Package name, lib name, and binary all now just "neuron" without
the cortex- prefix.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-15 15:51:15 +03:00
parent e42e8ee81f
commit 6c238f4557
5 changed files with 35 additions and 35 deletions

View File

@@ -1,15 +1,15 @@
[package]
name = "cortex-neuron"
name = "neuron"
version.workspace = true
edition.workspace = true
license.workspace = true
[lib]
name = "cortex_neuron"
name = "neuron"
path = "src/lib.rs"
[[bin]]
name = "cortex-neuron"
name = "neuron"
path = "src/main.rs"
[dependencies]

View File

@@ -1,13 +1,13 @@
use anyhow::Result;
use clap::Parser;
use cortex_neuron::{api, config::NeuronConfig, discovery, harness::HarnessRegistry, health};
use neuron::{api, config::NeuronConfig, discovery, harness::HarnessRegistry, health};
use std::sync::Arc;
use std::time::Instant;
use tokio::sync::RwLock;
use tracing_subscriber::EnvFilter;
#[derive(Parser)]
#[command(name = "cortex-neuron")]
#[command(name = "neuron")]
#[command(about = "Per-node daemon for cortex inference clusters")]
#[command(version)]
struct Args {
@@ -25,7 +25,7 @@ async fn main() -> Result<()> {
tracing_subscriber::fmt()
.with_env_filter(
EnvFilter::try_from_default_env()
.unwrap_or_else(|_| EnvFilter::new("info,cortex_neuron=debug")),
.unwrap_or_else(|_| EnvFilter::new("info,neuron=debug")),
)
.init();
@@ -69,7 +69,7 @@ async fn main() -> Result<()> {
let app = api::neuron_routes().with_state(state);
let addr: std::net::SocketAddr = format!("0.0.0.0:{port}").parse()?;
tracing::info!("cortex-neuron listening on {addr}");
tracing::info!("neuron listening on {addr}");
let listener = tokio::net::TcpListener::bind(addr).await?;
axum::serve(listener, app).await?;

View File

@@ -1,7 +1,7 @@
use cortex_core::discovery::{DeviceInfo, DiscoveryResponse};
use cortex_neuron::api::{self, NeuronState};
use cortex_neuron::harness::HarnessRegistry;
use cortex_neuron::health::HealthCache;
use neuron::api::{self, NeuronState};
use neuron::harness::HarnessRegistry;
use neuron::health::HealthCache;
use serde_json::json;
use std::sync::Arc;
use tokio::sync::RwLock;