A comprehensive library and CLI tool for managing, identifying, and working with livestock breeds, growth rates, and health. Designed to support farming and ranching applications, breed registries, and livestock data processing.
Features
- 🌱 Support for over 1,000+ livestock breeds, categorized by species.
- 📊 Provides calculators for growth metrics like Average Daily Gain (ADG) and Feed Conversion Ration (FCR).
- 🐄 Includes common cattle breeds like Angus and Brahman.
- 🐐 Includes common goat breeds like Alpine and Boer.
- 🐑 Includes common sheep breeds like Dorper and St. Croix.
- 🐖 Includes common swine breeds like Duroc and Hampshire.
- 🫏 Includes common donkey breeds like Miniature and Standard.
- 🦌 Includes common reindeer breeds like Even and Nentsi.
- 🐪 Includes common camel breeds like Afar Dromedary and Somali Dromedary.
- 🐓 Includes common chicken breeds like Orpington and Rhode Island Red.
- 🐎 Includes common horse breeds like Quarter, Racking, and Appaloosa horses.
- 🛠️ Utilities for converting between enum variants and human-readable strings.
- 🔒 Serde support for serialization and deserialization.
Add the crate to your Cargo.toml
:
[dependencies]
livestock_rs = "0.12.0"
or
cargo add livestock-rs
use livestock_rs::calculators::growth::adg::calculate_adg;
let adg = calculate_adg(100.0, 150.0, 50);
For CLI, use
stocktools adg -i 100 -f 150 -d 50
use livestock_rs::calculators::feed::fcr::calculate_fcr;
use livestock_rs::calculators::feed::efficiency::{calculate_feed_efficiency, FeedEfficiency, FeedEfficiencyRating};
use livestock_rs::types::LivestockType;
let fcr = calculate_fcr(100.0, 30.0); // FCR = 3.33
let feed_efficiency = calculate_feed_efficiency(fcr, LivestockType::Swine)?; // Swine should be from 3.0 - 3.9
// feed_efficiency.rating = FeedEfficiencyRating::Average
// feed_efficiency.fcr = 3.33
// feed_efficiency.min_fcr = 3.0
// feed_efficiency.max_fcr = 3.9
For CLI, use
stocktools fcr -i 100 -g 300
use livestock_rs::breeds::GoatBreed;
let breed = GoatBreed::Caninde;
println!("{:?}", breed); // prints "Canindé"
- Covers all major cattle breeds like Angus, Brahman, Jersey, and more.
- Regional specialties, including Texas Longhorn, Deoni, and more.
- Covers all major goat breeds like Boer, Alpine, Nigerian Dwarf, and more.
- Regional specialties, including Kalahari Red, Damascus, and Golden Guernsey.
- Features a wide variety of sheep breeds including popular types like Dorper, Romney, and Merino.
- Regional and specialty breeds such as the Icelandic, Navajo Churro, and Valais Blacknose.
- Features a wide variey of swine breeds including popular types like Duroc, KuneKune, Hampshire, and more.
- Regional specialties, including Oxford Sandy & Black, Ba Xuyen, and Arapawa Island.
- Features common donkey breeds including Standard, Large Standard, Miniature, Mary, Mammoth Jack Stock, and more.
- Features common reindeer breeds including Chukotka, Even, Evenk, and Nentsi.
- Features common varieties of camel breeds like Afar Dromedary and Somali Dromedary.
- Regional specialties, including Kalmyk Bactrian and more.
- Features a wide variety of chicken breeds including popular types like Rhode Island Red, Orpington, and Leghorn.
- Regional specialties, including AC, Turken (Naked Neck), Yokohama, and more.
- Features common varieties like Quarter, Racking, and Appaloosa horses.
- Regional specialties, including Schwarzwälder Fuchs, Akhal-Teke, and more.
- 🗂️ Expand support for other livestock species (e.g., chickens, ducks, geese).
- 🌍 Localization support for breed names in multiple languages.
- 📊 Add more utilities for livestock data management.
We welcome contributions! If you’d like to add more breeds or improve the library, please follow these steps:
- Fork the repository.
- Create a new branch for your feature: git checkout -b feature-name.
- Commit your changes: git commit -m "Add feature-name".
- Push your branch and create a pull request.
This project is licensed under the MIT License.
This crate is maintained by Rowan Ranch Pasture & Pen, LLC, a small-scale regenerative family farm focusing on expanding agricultural technology solutions. We strive to build software that empowers farmers, researchers, and agricultural businesses.
- Thanks to the global farming community for inspiration.
- Inspired by real-world agricultural needs and breed registries.