Compare commits

..

2 Commits

Author SHA1 Message Date
prplV 5a9bf795e9 gr v2 2024-12-04 11:23:42 +03:00
prplV d67e77c5cc global refactor to work as workspace 2024-12-04 11:23:18 +03:00
34 changed files with 38 additions and 22 deletions

2
.gitignore vendored
View File

@ -1,6 +1,4 @@
/target /target
.idea .idea
Dockerfile
Cargo.lock Cargo.lock
settings.json
hagent_test.sock hagent_test.sock

View File

@ -1,24 +1,12 @@
[package] [workspace]
name = "runner-rs" resolver = "2"
version = "0.10.11" members = [
edition = "2021" "noxis-rs",
"noxis-cli",
]
[profile.dev] [profile.dev]
debug = true debug = true
[profile.test] [profile.test]
debug = false debug = false
[dependencies]
anyhow = "1.0.93"
chrono = "0.4.38"
clap = { version = "4.5.21", features = ["derive"] }
env_logger = "0.11.3"
inotify = "0.10.2"
log = "0.4.22"
pcap = "2.2.0"
redis = "0.25.4"
serde = { version = "1.0.203", features = ["derive"] }
serde_json = "1.0.118"
sysinfo = "0.32.0"
tokio = { version = "1.38.0", features = ["full", "time"] }

View File

@ -1,5 +1,5 @@
# runner-rs ( with amd64 and riscv64 support ) # Monitor "Noxis" ( with amd64 and riscv64 support )
![Logo](https://blog.desdelinux.net/wp-content/uploads/2023/07/rust-logo.png) ![Logo](https://blog.desdelinux.net/wp-content/uploads/2023/07/rust-logo.png)
in-container integrating util to handle processes runtime in-container integrating util to handle processes runtime
@ -8,6 +8,9 @@ in-container integrating util to handle processes runtime
- `rustup (>=1.27.1)` - `rustup (>=1.27.1)`
- `gcc-riscv64-unknown-elf` - `gcc-riscv64-unknown-elf`
- `build-essential` - `build-essential`
- `gcc-riscv64-linux-gnu`
- `binutils-riscv64-linux-gnu`
## Setting up ## Setting up
Download and execute rustup.sh Download and execute rustup.sh
@ -29,7 +32,7 @@ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
cd runner-rs/ && rustup target add riscv64gc-unknown-linux-gnu && rustup target add x86_64-unknown-linux-gnu cd runner-rs/ && rustup target add riscv64gc-unknown-linux-gnu && rustup target add x86_64-unknown-linux-gnu
~~~ ~~~
> [!NOTE] > [!NOTE]
> Cargo is configured to build an app for amd64/linux defaultly. RISC-based compilation is optional. > Cargo is configured to build an app for amd64/linux defaultly. RISCV-based compilation is optional.
3.1. Release build of app for amd64/linux 3.1. Release build of app for amd64/linux

6
noxis-cli/Cargo.toml Normal file
View File

@ -0,0 +1,6 @@
[package]
name = "noxis-cli"
version = "0.1.0"
edition = "2021"
[dependencies]

3
noxis-cli/src/main.rs Normal file
View File

@ -0,0 +1,3 @@
fn main() {
println!("Hello, world!");
}

18
noxis-rs/Cargo.toml Normal file
View File

@ -0,0 +1,18 @@
[package]
name = "noxis-rs"
version = "0.10.11"
edition = "2021"
[dependencies]
anyhow = "1.0.93"
chrono = "0.4.38"
clap = { version = "4.5.21", features = ["derive"] }
env_logger = "0.11.3"
inotify = "0.10.2"
log = "0.4.22"
pcap = "2.2.0"
redis = "0.25.4"
serde = { version = "1.0.203", features = ["derive"] }
serde_json = "1.0.118"
sysinfo = "0.32.0"
tokio = { version = "1.38.0", features = ["full", "time"] }