elemental-driver 0.2.0

Driver library for Elemental, providing implementations for interacting with different modloaders and game versions.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
mod client;
mod endpoints;
mod profile_normalize;
mod profile_parse;
mod release;

pub use client::RiftSource;
pub use endpoints::{RiftEndpoints, RiftOrigin};
pub use release::RiftRelease;

fn with_trailing_slash(url: &str) -> String {
    if url.is_empty() || url.ends_with('/') {
        return url.to_owned();
    }

    format!("{url}/")
}