| Crates.io | fynx-platform |
| lib.rs | fynx-platform |
| version | 0.1.0-alpha.1 |
| created_at | 2025-10-23 13:08:26.511638+00 |
| updated_at | 2025-10-23 13:08:26.511638+00 |
| description | Core platform and types for the Fynx security ecosystem |
| homepage | https://fynx.dev |
| repository | https://github.com/Rx947getrexp/fynx |
| max_upload_size | |
| id | 1897091 |
| size | 17,913 |
Core platform types, traits, and utilities for the Fynx security ecosystem.
fynx-platform provides the foundational types and traits used across all Fynx modules:
FynxError and FynxResult<T>SecurityModule, Scanner, AnalyzerScanResult, Finding, Match, etc.async-traitserde support[dependencies]
fynx-platform = "0.1"
# With serde support
fynx-platform = { version = "0.1", features = ["serde"] }
use fynx_platform::{FynxError, FynxResult};
fn my_function() -> FynxResult<String> {
// Return Ok
Ok("success".to_string())
// Or return an error
// Err(FynxError::Config("Invalid config".into()))
}
use fynx_platform::{SecurityModule, FynxResult};
struct MyModule;
impl SecurityModule for MyModule {
fn id(&self) -> &'static str {
"my_module"
}
fn version(&self) -> &'static str {
env!("CARGO_PKG_VERSION")
}
fn description(&self) -> &'static str {
"My custom security module"
}
fn init(&mut self) -> FynxResult<()> {
// Initialization logic
Ok(())
}
}
For detailed API documentation, see docs.rs/fynx-platform.
Licensed under either of:
at your option.