22 releases (1 stable)

1.0.0 Jul 5, 2024
0.10.1 Jun 10, 2024
0.9.5 May 22, 2024
0.9.0 Mar 18, 2024
0.0.1 Feb 14, 2023

#72 in Filesystem

Download history 2639/week @ 2024-07-03 2363/week @ 2024-07-10 2432/week @ 2024-07-17 2625/week @ 2024-07-24 1722/week @ 2024-07-31 2192/week @ 2024-08-07 2176/week @ 2024-08-14 1982/week @ 2024-08-21 1825/week @ 2024-08-28 2111/week @ 2024-09-04 1587/week @ 2024-09-11 1960/week @ 2024-09-18 1611/week @ 2024-09-25 1586/week @ 2024-10-02 1350/week @ 2024-10-09 1949/week @ 2024-10-16

6,809 downloads per month
Used in 13 crates (8 directly)

MIT/Apache

80KB
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

~3–19MB
~294K SLoC