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
9,354 downloads per month
Used in 15 crates
(8 directly)
81KB
1.5K
SLoC
axoasset
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
- Apache License, Version 2.0, (LICENSE-APACHE or apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or opensource.org/licenses/MIT)
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