Crates.io | mars-t |
lib.rs | mars-t |
version | 0.2.1 |
source | src |
created_at | 2022-10-14 19:34:22.81805 |
updated_at | 2023-01-29 02:53:53.449323 |
description | Mars Sol Date & Martian Coordinated Time: a library and a CLI app |
homepage | |
repository | https://github.com/piotrbajdek/mars-t |
max_upload_size | |
id | 688497 |
size | 166,232 |
A comprehensive library and command-line interface (CLI) tool designed to aid in the colonisation of Mars, by providing reusable resources and functionalities
mars-t determines the date and time on Mars by utilising Earth's Coordinated Universal Time (UTC), International Atomic Time (TAI), or Terrestrial Time (TT).
It provides two types of time:
1. Mars Sol Date (MSD)
2. Martian Coordinated Time (MTC)/ Airy Mean Time (AMT)
It is moreover possible to link against mars-t using its library as a dependency for other astronomical projects (see public functions).
mars-t is designed to be compatible with Windows and macOS, and can be easily installed using cargo. However, the primary development and testing environment for mars-t is Fedora Linux.
The current version of mars-t (v0.2.1) has been verified to work properly on Fedora Linux 37 and Ubuntu 22.10.
[Recommended for programmers]
1. To install mars-t from crates.io, use the following cargo command:
cargo install mars-t
The executable will be saved in the hidden .cargo/bin/
directory within your home directory.
2a. For easy access, you may want to copy the mars-t file to the /usr/bin/
directory. This can be done by following the instructions in Method 2 (3a, 3b).
2b. As an alternative, you can add the ~/.cargo/bin/
directory to your system's PATH variable, which can be configured using rustup.
1. To install mars-t, first download the distro-independent binary from GitHub.
2. Then, make the file executable by running the command:
sudo chmod +x ./mars-t
3a. On most Linux distributions, install mars-t by copying the binary to /usr/bin/
:
sudo cp mars-t /usr/bin/
3b. For Fedora Silverblue / Kinoite, use this command:
sudo cp mars-t /var/usrlocal/bin/
[Recommended for most users]
Distro-specific packages for .rpm and .deb-based Linux distributions are also available for download. To install mars-t on different Linux distributions, follow these instructions:
Fedora Linux / RHEL / openSUSE:
sudo rpm -i mars-t-0.2.1-1.x86_64.rpm
Fedora Silverblue / Kinoite:
rpm-ostree install mars-t-0.2.1-1.x86_64.rpm
Ubuntu:
sudo dpkg -i mars-t_0.2.1_amd64.deb
First, download and unpack the mars-t source code from GitHub. Next, to build and install the program, use the command:
cargo build --release && sudo cp target/release/mars-t /usr/bin/