Split into libs

This commit is contained in:
Nevernown
2025-11-15 10:52:37 +01:00
parent 367105479e
commit 8fe00e940a
642 changed files with 2996 additions and 232 deletions

7
sigma/Cargo.toml Normal file
View File

@@ -0,0 +1,7 @@
[package]
name = "sigma"
version = "0.1.0"
edition = "2024"
[dependencies]
serde = { version = "1.0.217", features = ["derive"] }

4
sigma/src/error.rs Normal file
View File

@@ -0,0 +1,4 @@
pub enum Error {
TcpBindFailed = 1,
AxumAppExited = 2,
}

2
sigma/src/lib.rs Normal file
View File

@@ -0,0 +1,2 @@
pub mod error;
pub mod repsonse;

15
sigma/src/repsonse.rs Normal file
View File

@@ -0,0 +1,15 @@
use serde::Serialize;
#[derive(Serialize)]
pub struct SigmaInformation {
name: String,
version: String,
}
impl SigmaInformation {
pub fn new(name: &str, version: &str) -> Self {
Self {
version: version.into(),
name: name.into()
}
}
}