buddy_client

Crates.iobuddy_client
lib.rsbuddy_client
version0.0.1
created_at2025-09-26 07:56:42.181349+00
updated_at2025-09-26 07:56:42.181349+00
descriptionA client for the Prusa Buddy Firmware http api.
homepage
repositoryhttps://github.com/jamesgopsill/buddy_client
max_upload_size
id1855548
size75,712
James Gopsill (jamesgopsill)

documentation

README

Buddy Client

This crate contains a http client for the Buddy Board Web API that exist for the Prusa 3D printers. The API features endpoints related to Octoprint and Prusa's own PrusaLink service. The functions calls feature octo and v1 in their names for the two variants respectively.

The client provides both async and sync clients. The async client is on by default and the sync client can be activated using the blocking feature flag. The async feature can be removed by setting default-features = false in your Config.toml.

Example

Please see the examples folder for more examples but the following gives the general gist.

use buddy_client::{PrusaClient, structs::V1JobState};

#[tokio::main]
async fn main() {
    let ip = "[PRINTER_IP_ADDRESS]"
    let key = "[PRINTER_API_KEY]";

    let client = PrusaClient::new_async(ip, key);

    let version = client.version().await.unwrap();
    println!("{:?}", version);
}

Support

If you find this crate useful, please consider supporting by:

  • Downloading and using the crate.
  • Raising issues and improvements on the GitHub repo.
  • Recommending the crate to others.
  • ⭐ the crate on GitHub.
  • Sponsoring the maintainers.

References

Rust and Manufacturing

Here are some more examples of Rust being used in the Manufacturing sector.

  • Meatpack - A Rust implementation of a gcode encoding algorithm that can increase the data density by a factor of two.

  • BinaryGcode - A Rust implementation of the binary gcode standard.

  • Embassy Buddy - A Board Support Crate for the embassy embedded runtime and Prusa Buddy Board.

Acknowledgements

I would like to thank the support from the UKRI Innovation Launchpad Network+ Researchers-in-Residence and Booster Award schemes.

Commit count: 0

cargo fmt