Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/optozorax/quad-url
Small crate to work with URL in miniquad/macroquad.
https://github.com/optozorax/quad-url
Last synced: 3 months ago
JSON representation
Small crate to work with URL in miniquad/macroquad.
- Host: GitHub
- URL: https://github.com/optozorax/quad-url
- Owner: optozorax
- License: apache-2.0
- Created: 2021-03-22T19:27:15.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-03-19T11:52:43.000Z (over 1 year ago)
- Last Synced: 2024-07-09T03:16:05.962Z (4 months ago)
- Language: Rust
- Homepage:
- Size: 921 KB
- Stars: 5
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
- awesome-quads - quad-url - to change current url, search parameters, and open links. (Libraries / Libraries: Plugins)
README
# quad-url
[![Docs](https://docs.rs/quad-url/badge.svg?version=0.1.0)](https://docs.rs/quad-url/0.1.0/quad_url/)
[![Crates.io version](https://img.shields.io/crates/v/quad-url.svg)](https://crates.io/crates/quad-url)This is the crate to work with URL and open links in miniquad/macroquad environment.
[Web demo.](https://optozorax.github.io/quad-url/?a&b=1&cd=e+f&gh#myhash)
# Usage
Add this to your `Cargo.toml` dependencies:
```text
quad-url = "0.1.0"
```
# Usage in WASM
Add file [`quad-url/js/quad-url.js`](https://github.com/optozorax/quad-url/blob/368519c488aac55b73d3f29ed99c1afb9091d989/js/quad-url.js) to your project.Add file [`sapp-jsutils/js/sapp_jsutils.js`](https://github.com/not-fl3/sapp-jsutils/blob/4aa083662bfea725bf6e30453c009c6d02d667db/js/sapp_jsutils.js) file to your project. (version `0.1.4`, compatible with current crate)
Add this lines after loading of `gl.js` and before loading of your wasm in your `index.html`:
```html```
Done! Now you can use this crate.