Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/axodotdev/axoasset
📮 load, write, and copy remote and local assets
https://github.com/axodotdev/axoasset
assets async build-tools rust
Last synced: 4 days ago
JSON representation
📮 load, write, and copy remote and local assets
- Host: GitHub
- URL: https://github.com/axodotdev/axoasset
- Owner: axodotdev
- License: apache-2.0
- Created: 2022-12-24T17:10:43.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-21T10:16:19.000Z (about 1 month ago)
- Last Synced: 2024-11-24T09:33:35.600Z (28 days ago)
- Topics: assets, async, build-tools, rust
- Language: Rust
- Homepage:
- Size: 418 KB
- Stars: 25
- Watchers: 2
- Forks: 2
- Open Issues: 25
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE-APACHE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# axoasset
[![Github Actions Rust](https://github.com/axodotdev/axoasset/actions/workflows/rust.yml/badge.svg)](https://github.com/axodotdev/axoasset/actions)
[![crates.io](https://img.shields.io/crates/v/axoasset.svg)](https://crates.io/crates/axoasset)
[![License: MPL 2.0](https://img.shields.io/badge/License-MPL_2.0-brightgreen.svg)](https://opensource.org/licenses/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
```rust
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](LICENSE-APACHE) or [apache.org/licenses/LICENSE-2.0](https://www.apache.org/licenses/LICENSE-2.0))
* MIT license ([LICENSE-MIT](LICENSE-MIT) or [opensource.org/licenses/MIT](https://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.**
[CONTRIBUTING notes]: CONTRIBUTING.md
[Code of Conduct]: CODE_OF_CONDUCT.md