Crates.io | smashnet |
lib.rs | smashnet |
version | 0.2.1 |
source | src |
created_at | 2022-11-11 20:05:13.372832 |
updated_at | 2024-02-19 01:19:05.105683 |
description | A Rust crate which hooks Smash Ultimate's libcurl in order to perform https operations. |
homepage | |
repository | https://github.com/techyCoder81/smashnet |
max_upload_size | |
id | 713031 |
size | 43,315 |
This is a crate which exposes GET request and download functionality for smash ultimate plugins. Instead of using minreq, which is slow due to lack of openssl impl for the switch, and which also requires devkitpro, this crate allows you to make get requests and download files using the game's own statically linked libcurl, which is offset hooked as necessary when Curler::new()
is used.
use smashnet::types::*;
#[skyline::main(name = "your-plugin-here")]
pub fn main() {
Curler::new()
.progress_callback(|progress, total| println!("Progress: {}", progress/total))
.download("https://github.com/techyCoder81/smashnet-nro/releases/download/nightly/checksum.txt");
}