melatonin 0.9.1

A version manager for the BYOND environment
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
pub mod hub;
pub mod mirror;

use crate::byondversion::ByondVersion;
use anyhow::Result;

const REQUEST_TIMEOUT: u64 = 10;

pub fn latest_version(beta: bool) -> Result<ByondVersion> {
	if crate::should_use_mirror() {
		mirror::latest_version(beta)
	} else {
		hub::latest_version(beta)
	}
}