Crate js_lib

Source
Expand description

§js_lib

The js_lib crate provides simple ‘javascript-like’ functions.

§Making a http get request

use js_lib::fetch;
let result = fetch("https://www.google.com/").await;

Enums§

Error
The Errors that may occur.

Functions§

fetch
Fetches data from a url.
from_json
Deserializes a json string slice into type T.

Type Aliases§

Result
A Result alias where the Err case is js_lib::Error.