Uses rustls instead of the default native-tls because on windows 8.1 and older it would use schannel (windows ssl library) which only supports until TLSv1.0 and that is no longer accepted by the veloren server.
Also adds a check for whether or not coloring the console output is wanted. The colored was already transitively depended by fern so there are new dependencies here (I made sure to line up the versions). There's also a bit of unsafe to call a windows api to get whether or not ansi ascii codes are supported I have wrote about why it's safe in the comment preceding the unsafe block
Uses rustls instead of the default
native-tls
because on windows 8.1 and older it would useschannel
(windows ssl library) which only supports until TLSv1.0 and that is no longer accepted by the veloren server.Also adds a check for whether or not coloring the console output is wanted. The
colored
was already transitively depended by fern so there are new dependencies here (I made sure to line up the versions). There's also a bit of unsafe to call a windows api to get whether or not ansi ascii codes are supported I have wrote about why it's safe in the comment preceding the unsafe block