artie_common

Crates.ioartie_common
lib.rsartie_common
version0.3.2
sourcesrc
created_at2024-05-20 19:44:35.597809
updated_at2024-06-03 17:19:13.870156
descriptionCommon Library for Artie Rust Projects
homepagehttps://github.com/ARTIEROCKS/artie-common-rs.git
repositoryhttps://github.com/ARTIEROCKS/artie-common-rs.git
max_upload_size
id1246108
size79,392
Luis Eduardo Imbernón (leimbernon)

documentation

https://docs.rs/artie-common-rs/latest/artie-common-rs

README

ARTIE Common Library for Artie Distance Calculation

Description

This Rust library provides functionality to calculate the "Artie distance," a measure of dissimilarity between two hierarchical structures, such as those represented by workspaces in programming environments. The Artie distance encompasses several metrics: family, block, position, and input distances, each measuring different aspects of difference.

Features

  • Family Distance: Counts the unique families present in one workspace but absent in the other.
  • Block Distance: Measures the number of uniquely named blocks that do not match between workspaces.
  • Position Distance: Aggregates positional differences for blocks with the same name but located in different places within the two workspaces.
  • Input Distance: For common blocks, this metric calculates the absolute difference in numerical fields and counts mismatches in non-numerical fields.

Installation

Include the following in your Cargo.toml file to use this library:

[dependencies]
artie_common = "0.3.0"
Commit count: 61

cargo fmt