crabscore-core

Crates.iocrabscore-core
lib.rscrabscore-core
version0.1.1
created_at2025-07-12 20:16:18.318849+00
updated_at2025-07-12 21:39:11.242579+00
descriptionCore functionality for CrabScore - The Rust Efficiency Standard
homepagehttps://github.com/timarocks/crabscore
repositoryhttps://github.com/timarocks/crabscore
max_upload_size
id1749643
size56,222
Tima Rocks! (timarocks)

documentation

https://docs.rs/crabscore-cli

README

crabscore-core

Core functionality for CrabScore - The Rust Efficiency Standard.

Crates.io Documentation License

Overview

This crate provides the fundamental data structures and algorithms for calculating and analyzing software efficiency metrics in Rust projects.

Features

  • Scoring Engine: Calculate comprehensive efficiency scores
  • Industry Profiles: Tailored weights for different domains (WebServices, IoT, Financial, Gaming, Enterprise)
  • Metrics: Performance, energy, cost, and safety metrics
  • Certification Levels: From Verified to Pioneer status
  • Zero Unsafe Code: #![forbid(unsafe_code)] for maximum safety

Usage

use crabscore_core::{CrabScore, IndustryProfile, scoring::ScoringEngine};

let engine = ScoringEngine::new(IndustryProfile::WebServices);
let score = engine.calculate_score(&perf, &energy, &cost, &safety);

Installation

[dependencies]
crabscore-core = "0.1.0"

License

Licensed under Apache-2.0. See LICENSE for details.

Commit count: 0

cargo fmt