23 releases (2 stable)

1.0.1 Oct 31, 2024
1.0.0 Jul 5, 2024
0.10.1 Jun 10, 2024
0.9.0 Mar 18, 2024
0.0.1 Feb 14, 2023

#83 in Filesystem

Download history 1931/week @ 2024-07-30 2106/week @ 2024-08-06 2090/week @ 2024-08-13 2043/week @ 2024-08-20 1914/week @ 2024-08-27 2048/week @ 2024-09-03 1671/week @ 2024-09-10 1900/week @ 2024-09-17 1496/week @ 2024-09-24 1747/week @ 2024-10-01 1322/week @ 2024-10-08 1733/week @ 2024-10-15 2264/week @ 2024-10-22 2827/week @ 2024-10-29 2310/week @ 2024-11-05 1580/week @ 2024-11-12

9,354 downloads per month
Used in 15 crates (8 directly)

MIT/Apache

81KB
1.5K SLoC

axoasset

Github Actions Rust crates.io License: MPL 2.0

This library offers read, write, and copy functions, for local and remote assets given a string that contains a relative or absolute local path or a remote address using http or https.

Example

use axoasset;

let assets = vec!("https://my.co/logo.png", "./profile.jpg", "README.md");
let dest = "public";

for asset in assets {
    axoasset::copy(asset, dest)?;
}

License

Licensed under either of

at your option.

Contributions

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

If you are interested in contributing, please read our CONTRIBUTING notes and our Code of Conduct.

Copyright 2022 Axo Developer Co.

Dependencies

~4–19MB
~255K SLoC