rhorizons

Crates.iorhorizons
lib.rsrhorizons
version0.5.0
sourcesrc
created_at2022-08-20 15:29:18.624405
updated_at2023-07-18 21:08:48.135504
descriptionAccess NASA JPL Horizons system. Get Solar System bodies, their positions and velocities.
homepage
repositoryhttps://github.com/podusowski/rhorizons
max_upload_size
id649372
size82,120
Piotr Podusowski (podusowski)

documentation

README

crates.io

Access NASA JPL Horizons system from Rust. This crate is written in asynchronous code, therefore you probably want to use it in conjunction with tokio.

Example

#[tokio::main]
async fn main() {
    println!("Major bodies in the Solar System.");

    for body in rhorizons::major_bodies().await {
        println!("{} ({})", body.name, body.id);
    }
}

You can check more examples in the source repository.

Useful links

Commit count: 105

cargo fmt