{"repo":"nathan-osman/rust-sunrise","free":true,"listed":false,"github":"https://github.com/nathan-osman/rust-sunrise","clone":"git clone https://github.com/nathan-osman/rust-sunrise.git","description":"Crate for calculating sunrise / sunset times","language":"Rust","stars":22,"topics":["rust","calendar","astronomy","sunrise","sunset"],"license":"MIT","category":"productivity","readme_excerpt":"sunrise [ ][license] [ ][crate] [ ][docs] This crate provides a function for calculating sunrise and sunset times using this method. To work in a no-std environment disable the default features and enable the libm feature. Usage In order to perform the calculation, you'll need to provide the following: - the date for which you wish to calculate the times - the latitude and longitude of the location Begin by adding this crate to Cargo.toml : You can use the SolarDay struct to perform computation of an event at a particular place and time: [crate]: https://crates.io/crates/sunrise \"crates.io\" [docs]: https://docs.rs/sunrise \"Documentation\" [license]: http://opensource.org/licenses/MIT \"MIT License\"","default_branch":null,"files":null,"tree":[],"storefront":"/r/nathan-osman","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/nathan-osman/rust-sunrise/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}