Renamed library crate to rayhunter, binary to rayhunter-daemon

The produced binary is still called rayhunter though!
This commit is contained in:
Will Greenberg
2024-01-30 10:07:11 -08:00
parent 87f18c0c8b
commit ed9d2b41d7
10 changed files with 38 additions and 36 deletions

View File

@@ -1,12 +1,14 @@
[package]
name = "rayhunter"
name = "rayhunter-daemon"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[[bin]]
name = "rayhunter"
path = "src/main.rs"
[dependencies]
orca = { path = "../orca" }
rayhunter = { path = "../lib" }
toml = "0.8.8"
serde = { version = "1.0.193", features = ["derive"] }
tokio = { version = "1.35.1", features = ["full"] }

View File

@@ -2,11 +2,11 @@ use std::sync::Arc;
use axum::extract::State;
use axum::http::StatusCode;
use orca::diag_device::DiagDevice;
use orca::diag_reader::DiagReader;
use rayhunter::diag_device::DiagDevice;
use rayhunter::diag_reader::DiagReader;
use tokio::sync::RwLock;
use tokio::sync::mpsc::{Receiver, self};
use orca::qmdl::QmdlWriter;
use rayhunter::qmdl::QmdlWriter;
use log::{debug, info};
use tokio::sync::mpsc::error::TryRecvError;
use tokio::task::JoinHandle;

View File

@@ -1,5 +1,5 @@
use thiserror::Error;
use orca::diag_device::DiagDeviceError;
use rayhunter::diag_device::DiagDeviceError;
use crate::qmdl_store::QmdlStoreError;

View File

@@ -17,10 +17,10 @@ use crate::error::RayhunterError;
use axum::response::Redirect;
use diag::{DiagDeviceCtrlMessage, start_recording, stop_recording};
use log::{info, error};
use orca::diag_device::DiagDevice;
use rayhunter::diag_device::DiagDevice;
use axum::routing::{get, post};
use axum::Router;
use orca::qmdl::QmdlWriter;
use rayhunter::qmdl::QmdlWriter;
use stats::get_qmdl_manifest;
use tokio::sync::mpsc::{self, Sender};
use tokio::task::JoinHandle;

View File

@@ -1,9 +1,9 @@
use crate::ServerState;
use orca::gsmtap_parser::GsmtapParser;
use orca::pcap::GsmtapPcapWriter;
use orca::qmdl::{QmdlReader, QmdlReaderError};
use orca::diag_reader::DiagReader;
use rayhunter::gsmtap_parser::GsmtapParser;
use rayhunter::pcap::GsmtapPcapWriter;
use rayhunter::qmdl::{QmdlReader, QmdlReaderError};
use rayhunter::diag_reader::DiagReader;
use axum::body::Body;
use axum::http::header::CONTENT_TYPE;
use axum::extract::{State, Path};

View File

@@ -1,6 +1,6 @@
<html>
<head>
<title>ORCA</title>
<title>rayhunter</title>
<link rel="stylesheet" type="text/css" href="css/style.css">
<script src="js/main.js"></script>
<script>