3 releases

0.1.2 Mar 15, 2024
0.1.1 Mar 8, 2024
0.1.0 Mar 8, 2024

#249 in Images

Download history 82/week @ 2024-03-02 257/week @ 2024-03-09 75/week @ 2024-03-16 10/week @ 2024-03-23 23/week @ 2024-03-30

206 downloads per month

MIT license

15KB
163 lines

RaysoRS

Dependencies:

Usage

Make sure you are running geckodriver in the background if you are doing downloads as this project uses the geckodriver webdriver.

You can use the library as follows:

use rayso_rs::{downloader, RaysoConfig};

const CODE: &str = r#"fn main() {
    println!("Hello, world!");
}"#;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let config = RaysoConfig::builder()
        .background(false)
        .padding(8)
        .code(CODE)
        .build();

    println!("Generated URL: {}", config.to_url());

    downloader::download(config).await?;

    Ok(())
}

Note: the downloader::download(config)... is the only part that requires geckodriver to be running in the background.

Dependencies

~13–24MB
~334K SLoC