emotions

Crates.ioemotions
lib.rsemotions
version0.1.1
created_at2025-08-24 22:16:15.028756+00
updated_at2025-08-24 22:24:24.472095+00
descriptionEmotions from [`Emotion Wheel`](https://observablehq.com/@mbostock/emotion-wheel) available as a rust crate.
homepage
repositoryhttps://github.com/abhillman/emotions-rs
max_upload_size
id1808836
size26,585
Aryeh Hillman (abhillman)

documentation

README

emotions-rs

Emotions from Emotion Wheel available as a rust crate.

This is a recreation of Geoffrey Roberts’s Emotion Wheel using D3’s partition layout. Robert’s 2015 work appears to be based on a vocabulary wheel by Kaitlin Robbs from 2014, which in turn appears to be based on The Feeling Wheel published by Gloria Willcox in 1982.

Example usage

#[cfg(test)]
mod tests {
    use super::*;

    #[test]
    fn test_emotion_tree() {
        let tree = build_emotion_tree();
        assert_eq!(tree.name, "Emotions");
        assert_eq!(tree.children.len(), 7);
        assert_eq!(tree.nodes_at_depth(1).len(), 7);
    }
}
Commit count: 6

cargo fmt